Sometimes it can happen the case to enter a long position at around 1000 contracts on a "Market Price", so when the order reaches the broker, it can gets partially filled twice on different Entry Price Levels, let's say "200 contracts" and "800 contracts".
In this case, I'll have 2 orders with 2 different TP and SL levels, because I'm setting the TP and SL immediately fixed at "5 Ticks", so basically I have (1 Position) but split into (2 Orders), now I want to get the count of how many orders are open, 1, 2 or 3 ....
I found this : Positions.Length
but this returns 1 all the time, because since I'm trading the same market, I'll all the time have 1 position, but what I need is to know how many ORDERS are open on each BarUpdate()
Thank you very much
Comment