I've got the following situation:
- I'm starting a strategy with strategy not being flat at the moment of starting
- NinjaScript option on starting a real-time strategy is set to "Wait until flat before executing live"
- Exit on close is set to true
Now, when the strategy is trying to close the position an unexpected error comes up:
04.09.2008 19:14:41 Entered internal PlaceOrder() method at 04.09.2008 19:14:41: Action=Sell OrderType=Market Quantity=0 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal=''
04.09.2008 19:14:41 Cancelled order due to end of session handling: BarsInProgress=0: Order='NT-00494/Sim101' Name='Sell' State=Working Instrument='FDAX 09-08' Action=Sell Limit price=0 Stop price=0 Quantity=0 Strategy='KaVe2191B' Type=Market Tif=Gtc Oco='' Filled=0 Fill price=0 Token='751025c0e81246fabb56a1b9721c7ce2' Gtd='01.12.2099 00:00:00'
Why is this error triggered? End of session of the FDAX would be hours later?
brima
Comment