Increase position size after certain number of trades

Forums ProRealTime English forum ProOrder support Increase position size after certain number of trades

Viewing 4 posts - 16 through 19 (of 19 total)
  • #73908

    This is a workaround I’m now used to because of many debugs sessions.. but preloading bars could also possibly be necessary in some cases, like calling long periods indicators.

    #73912

    I tried on the live demo and I got an error because of the defparam preloadbars=0 – it is on the first attachment.

    After, I tested the same strategy with 3 variations: first with defparam preloadbars=0, second with defparam preloadbars=100 and third with defparam preloadbars=2000.

    The results are in the second attachment and are strange.

    Now, with defparam preloadbars=0 is missing from time to time the correct trading size – from size 2 goes to size 5 and sometimes it does one trade at a certain size, sometimes 2 trades.

    And the same is with defparam preloadbars=100.

     

    #73915

    I now tried with DEFPARAM CumulateOrders = true, and it has traded with the correct size. However, it is not possible to do live trading this way. Maybe there is a way to limit the number of Cumulate Orders to 1 or 2? Maybe it could work?

    #73933

    You must have changed something else because I can set this code running in my live demo:

     

Viewing 4 posts - 16 through 19 (of 19 total)

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