SL not working, what am i missing?

Forums ProRealTime English forum ProOrder support SL not working, what am i missing?

Viewing 3 posts - 1 through 3 (of 3 total)
  • #229408

    Hi, I have created this code, however what i see is that the stop loss moves 30 points into profit, but then stays there, it does not move any more until the price hits TP or SL. I want it to continue to move with 30 points intervalls, what am i doing wrong here?

     

    #229416

    Replace lines 8-9 with these ones:

    It’s because you always reset those variables to zero, thus they always restart from scratch every bar, i.e. from 30.

     

     

    #229421

    Thank you so much for the fast reply! I will implement.

Viewing 3 posts - 1 through 3 (of 3 total)

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