My main problem is that
I want to make sure that both orders simultaneously placed already pending on stock and will be filled for sure.
I tried to make it like this:
if(((longStartNQ != null && longStartNQ.OrderState == OrderState.Filled)&&(shortStartES != null && shortStartES.OrderState == OrderState.Filled)) {executionControl = true;} else {executionControl = false;}
longStartES != null && longStartES.Token == order.Token
Can you give me different idea how to check if this 2 orders are at least Pending??
Czarek
Comment