string[] status = GetAtmStrategyEntryOrderStatus(order_id);
if((status[2] == "PendingSubmit" || status[2]== "Accepted" || status[2]== "Working") && Time[0] > finaltradetime)
{
AtmStrategyCancelEntryOrder(order_id);
atm_strategy_id = string.Empty;
order_id = string.Empty;
Print("Reset ATM order_id,atm_strategy_id # PendingSubmit || Accepted");
}
I wasnt sure about which order states I need to be checking for in the case of an unfilled limit order.
Comment