View Full Version : Strategy won't exit at end of session
dancorcal
01-12-2010, 03:44 PM
I have the setting to true to exit at end of day and I am using 2:30 as session close, because I want it to exit at 2:30, but the system won't exit a trade. The chart will stop, but no exit. Any thoughts? Also in the backtested results, it shows exiting at close as well, but on sim it doesn't exit.
NinjaTrader_Austin
01-12-2010, 03:57 PM
dancorcal, your strategy should be exiting if you specify ExitOnClose = true. Can you post a screenshot of your strategy window? I've attached an example.
dancorcal
01-13-2010, 01:56 PM
Hi Austin,
Happened again today. The session close time I entered came and the system did not exit. On backtesting the system it will show "exitonclose" at the 2:30 time I am wanting, but for live trading... it holds the trade. Here is the screenshot.
Any thoughts?
NinjaTrader_Josh
01-13-2010, 02:18 PM
Please use TraceOrders = true and see what is happening under the hood around 30 seconds before 2:30.