I used Pine script to create realistic trading scenarios for SL users. Now your scripts will reflect what you see on the order book.
a := (*Insert buy condition*)? close: nz (a)
plot(0.98*a, color= green) //2%SL for BUY
b:= (*Insert Short condition*) ? close: nz (b)
plot(1.02*b, color= red) //2% SL for Short
Please check the script on how to implement this :)