Hi Everyone
I would like to have a stop loss of say 250 points and then once my current position is making a profit of 100 points, set a trailing stop loss of 100 points.
Has anyone already coded such a stop?
If not, my question for the boffins out there is: Does the code “positionperf(0)” measure the real time Point loss or point gain of my current open position? Or only once it is closed?
As then I can imagine my solution would be quite simple:
SET STOP pLOSS 250
if positioneperf(0)> 100 then
SET STOP pTRAILING 100
endif
Have a happy trading day!