Hello,
is it possible to use GRAPHONPRICE with instruction such as a STOP %TRAILING ?
Thanks
Hello. You should create a trail stop variable and from there you could even play with the transparency so that it only draws when you are inside the operation. Here is an example
sma=average[50,0](close)
// This will control the STOP LOSS transparency
if not onmarket then
transparency=0 //transparency
else
transparency=255
endif
// Long Trades
if not onmarket and close crosses over sma then
stopLoss=close-2*averagetruerange[14](close)
targetProf=close+2*(-stopLoss+close)
buy 1 contracts at market
endif
set stop price stopLoss
set target price targetProf
graphonprice stopLoss coloured(255,0,0,transparency)