Prevent netting of positions

Forums ProRealTime English forum ProOrder support Prevent netting of positions

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

    Hello all, hope that you’re well.

    I use the simplified creation ProOrder builder on PRT that I get with my IG Index account. I have a coded strategy that I’m happy with, BUT, only when the system doesn’t close your positions early if there’s a signal to take a position in the opposite direction.

    I’ve deactivated position netting on IG, but all this does is force open of multiple positions, which I have combated using:

    My question to the forum is simply, how do I prevent the strategy from closing my trade and taking the opposite direction if/when a new signal comes along? This strategy needs to give positions time to play out.

    Here’s the code as it stands:

    (I use it on GBP/USD on the 5 min time frame)

    I appreciate any help, thanks guys.

    Matt

    #141555

    At line 22 and line 36 add this before the final THEN:

     

    1 user thanked author for this post.
    #141556

    Roberto, as always, thank you for the rapid reply. That has worked!

    I love this community, I think it’s the best forum I’ve ever been a part of. I just wish that I were able to also be helpful to users haha. I need to go through doing all the courses properly.

    Thanks again!!

    1 user thanked author for this post.
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