AtmStrategyClose() method error: AtmStrategyId 'orderID' does not exist
This is the code that is generating the error message in the log.
/* Checks to see if the time is between 1:05 PM and 1:15 PM EDT and closes any existing trades which are still open. */
if ((ToTime(Time[0]) >= 160500 && ToTime(Time[0]) < 161500))
{
if (atmStrategyId.Length > 0)
{
string orderID = GetAtmStrategyUniqueId();
AtmStrategyClose("orderID");
}
Comment