controlling number of cumulative orders

Forums ProRealTime English forum ProOrder support controlling number of cumulative orders

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

    I have a cumulative algo running that uses the following code (in theory) to allow the total position to be 3 x positionsize, where positionsize is variable and set by the MM code.

    But what I find in practice is that once positionsize goes above 3 contracts, then no additional positions are opened. So at present positionsize  is 5.79 and that initial position opens as it should, but there is no 2nd or third entry, even though the conditions are met. So after it gets to 3 it’s as if cumulative orders = false.

    Is there any other way to code this, to allow for 3 entries regardless of positionsize ?

    #160170

    Remove ONCE from line 1, otherwise it’s only executed the first time, when POSITIONSIZE is likely to be 1.

     

    1 user thanked author for this post.
    #160178

    Excellent, I thought it would be something simple like that – thanks again!

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