CumulateOrder=True not compatible with $Loss or $Profit

Forums ProRealTime English forum ProOrder support CumulateOrder=True not compatible with $Loss or $Profit

Viewing 4 posts - 1 through 4 (of 4 total)
  • #174301

    Hi,

    Hoping someone knows a work around for this.  Am running a strategy that can take up to 2 positions, so I set CumulateOrder to True and Max Position to 2 x N contracts.  No issues back testing however, when I go to launch in production I get an error saying CumulateOrder not compatible with $LOSS stops or $PROFIT targets.  The strategy uses a $Loss stop, as well as a %Loss.

    Does anyone know of any workaround for this please?

    Thanks very much

    1 user thanked author for this post.
    #174304

    I got this piece of code from Robo Futures Trader (one of the best sites – check it out) and it comes surprisingly close, but I’d still like to use $LOSS with CumulativeOrders.  Appreciate any ideas to try, thank you

    1 user thanked author for this post.
    #174307

    You should convert the currency amount in a percentage or pips.

    I you have a 1K amount you can convert to % with this snippet:

    to convert it to Pips:

    I did not test them, though.

    #174340

    Grazie mille Roberto!  Will give that a try

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

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