Is there any line of code that would resolve this issue? Needless to say I am less than a novice when it comes to code and the only examples I've found only work if the order state is "working" not "accepted."
// Print out some information about the order to the output window
Print("The entry order average fill price is: " + status[0]);
Print("The entry order filled amount is: " + status[1]);
Print("The entry order order state is: " + status[2]);
if (status[2] == "Working" && (BarsSinceEntryExecution() >= 1 || BarsSinceEntryExecution() == -1))
AtmStrategyCancelEntryOrder(orderId.ToString());
// If the order state is terminal, reset the order id value
if (status[2] == "Filled" || status[2] == "Cancelled" || status[2] == "Rejected")
orderId = string.Empty;
}
} // If the strategy has terminated reset the strategy id
else if (atmStrategyId.Length > 0 && GetAtmStrategyMarketPosition(atmStrategyId) == Cbi.MarketPosition.Flat)
atmStrategyId = string.Empty;
Thank you in advance.

Comment