When I have the Quantity set to 1 in my strategy settings and the entires per direction also set to 1. Everything works perfect. Every time an order executes.(Enter&Exit) The AllTrades.Count increases by +1. This works exactly as I would expect.
However, if I increase the Quantity in the strategy settings, then AllTrades.Count returns different results and I cannot work out what's it doing. I get the following:
* The strategy has 0 historical trades.
A. Quantity = 1
1st completed trade AllTrades.Count = 1
2nd completed trade AllTrades.Count = 2
B. Quantity = 2
1st completed trade AllTrades.Count = 2
2nd completed trade AllTrades.Count = 4
C. Quantity = 4
1st completed trade AllTrades.Count = 2
2nd completed trade AllTrades.Count = 6
D. Quantity = 8
1st completed trade AllTrades.Count = 2
2nd completed trade AllTrades.Count = 8
3rd completed trade AllTrades.Count = 11
Winning.Count also returns the same number. How is this working exactly? When the quantity is anything other than 1 it doesn't return the number I expect. For example, when I have the quantity set to 8. After the first trade the count shows 2 trades, then after the next it goes to 10, then the next 11. Whilst it doesn't seem random, it makes no sense to me.
How do I have the quantity be anything other than 1 and have the AllTrades.Count return the number of trades as per the number of trades?

Comment