If strategy stops on max contracts, will the code still run to exit?

Forums ProRealTime English forum ProOrder support If strategy stops on max contracts, will the code still run to exit?

Viewing 2 posts - 1 through 2 (of 2 total)
  • #89025

    If I set max contracts to 3, and cumulate orders is true but no code to limit it, I’m assuming ProOrder will stop it at 3, but what happens to the code then – will it still trigger exit conditions?

    I have a strategy running where this is the case. For the future I think it’s better if I code max orders but I’m still curious what happens to an onmarket running strategy’s exit conditions if ProOrder stops it but it continues to run…

    #89029

    I’m guessing that it just stops opening additional positions until one is closed to allow space to do so rather than stop the strategy or orphan the positions that are open. The simplest way is to test it with a dummy strategy on demo that tries to open three positions in a row with max positions set to 2 and see what happens.

    1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

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