ATR trailing stop exit problem

Forums ProRealTime English forum ProOrder support ATR trailing stop exit problem

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

    Hi,

    I have been learning the PRT-language for coding a proven system that i currently trade manually on daily bars. I have done a Montecarlo and it should work on other timeframes hence the need for automated trading . I use an ATR-trailing stop and when price during the day touches the ATR-trail it gets out of the position. The problem i have is that ProOrder always exits on the next candle, which is a big problem since it can lead to bigger losses. I know there is no way around this when using the EXIT command, but i think there might be a solution with some sort of adaptive stop (or trailing stop) that changes as the trade progresses, I just haven’t been able to work around it. Please have a look at the attached graph for better understanding.

    Any help will be greatly appreciated. Thank you.

    This is a simplified sample code for reference.

     

     

    #57609

    Use a SELL STOP at the chosen price.

     

    #57670

    Hi Vonasi:

    It worked! and so simple… Thanks a lot.

    Cheers,

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