trailing Stop Loss once in the money

Forums ProRealTime English forum ProRealTime platform support trailing Stop Loss once in the money

  • This topic has 0 replies, 1 voice, and was last updated 8 years ago by avatargm74.
Viewing 1 post (of 1 total)
  • #12158

    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!

Viewing 1 post (of 1 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login