I have issues in onexecution with counting variables (in fast moving markets).
So I try to check the orders in onposition but I get an error message because of "execution" with
if(exitOrder1c != null && exitOrder1c == execution.Order&& execution.Order.OrderState == OrderState.Filled)
and an error message because of "order" with
if (exitOrder1c != null && exitOrder1c == order&& order.OrderState == OrderState.Filled)
How can one do in onPosition to check if an order is filled.
Thank you.
Tony
Comment