dacParticipant
New
hello
my code is not accumulating orders when actually putting a order on top of another one with real money.
Let me explain more . My code works fine (DEFPARAM CumulateOrders = True // Cumulating positions deactivated) on the test screen in real time and the trade shows up at the exact time it should. But
when I check if actual order was placed, it wasn’t . Its the same code exactly as I only have a single code .
So the code shows me the trade but the actual order is not placed on the second,third order etc. .
Thanks in advance .
When you launched your strategy, how many contracts did you allow?
If you wrote 1, no matter what your strategy does just 1 contract at most will be allowed. If youe strategy wants to buy, say, 100 contracts, then you can reduce that limit at runtime by setting a lower number when you launch the strategy.
dacParticipant
New
thanking you .
yes I put in 1 contract as I only trade a single contract at a time i.e. 10 dollars ,not 20 dollars etc.
I thought it was a failsafe on an individual contract , not a number of trades over a set code cycle .
When contracts is both the value of a trade and how many trades per code cycle, i was confused.
Maybe it’s just me!
I will adjust .
Thanks again for your fast response .