Set Stop Loss from HI or Lo in breakout strategy

Forums ProRealTime English forum ProOrder support Set Stop Loss from HI or Lo in breakout strategy

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

    Hi all,

    I am currently working an a Breakout strategy. It all seams to work fine but I am struggeling with the Stop loss and Take profit. I want the take profit to be set from my “HI” or “LO” in the breakout range instead of from the price that I get when the order is set.

    The reason for this is that when there is a slippage, the order price will be different from the HI or LO. I still want to have the same profit target.

    Regards

     

    #71693

    Remove your lines 41 and 42 and replace them with the ones below: (not tested)

     

    1 user thanked author for this post.
    #72199

    Thanks Nicolas!

    That worked great. I used your code (only changed takeprofit to limit and stoploss to stop entry order) and it worked perfectly.

    Thanks!

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