I'm using a primary bar series which is a Range bar, and a secondary series which is 1 minute bars. I've added this code:
if(BarsInProgress == 1)
{
if(ToTime(Time[0])>=eodExitTime)
{
ExitShort();
ExitLong();
Print("forced exit on bars series 2");
}
}
"5/10/2012 11:09:00 PM Entered internal PlaceOrder() method at 5/10/2012 11:09:00 PM: BarsInProgress=1 Action=BuyToCover OrderType=Market Quantity=0 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal=''
5/10/2012 11:09:00 PM Ignored PlaceOrder() method: Action=BuyToCover OrderType=Market Quantity=0 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal='' Reason='This was an exit order but no position exists to exit'"
Yet, a position was actually held at the time.

Comment