Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Orders not closing End of Session
Collapse
X
-
Please track your orders with TraceOrders = true and see if it encountered problems submitting the order. http://www.ninjatrader-support2.com/...ead.php?t=3627Josh P.NinjaTrader Customer Service
-
Trade LOG
what do ya think?Originally posted by NinjaTrader_Josh View PostPlease track your orders with TraceOrders = true and see if it encountered problems submitting the order. http://www.ninjatrader-support2.com/...ead.php?t=3627Attached Files
Comment
-
trace and log
trace and logOriginally posted by NinjaTrader_Ben View PostHello,
Can you post your log and trace files after running the sample strategy so we can verify?
Try right clicking the code>Save as... and change the name. Then add TraceOrders = true.Attached Files
Comment
-
gg80108,
It looks like you are backtesting. I am assuming you are doing it on the Strategy Analyzer. Please ensure you actually defined out the 9:30-4pm time frame in the strategy selection dialogue.
Please then try increasing the seconds till exit significantly. We are just trying to get a base case that works so we have somewhere to start.Josh P.NinjaTrader Customer Service
Comment
-
I was using the Market replay function to test, setting up the start and stop times in the Chart Properties.Originally posted by NinjaTrader_Josh View Postgg80108,
It looks like you are backtesting. I am assuming you are doing it on the Strategy Analyzer. Please ensure you actually defined out the 9:30-4pm time frame in the strategy selection dialogue.
Please then try increasing the seconds till exit significantly. We are just trying to get a base case that works so we have somewhere to start.
Strategy Analyzer seems only to contain "Exit on close" but does not have the "Exit on close seconds" to change, in order handling..
I did move the session time back in Strategy Analyzer to create an open order at end of session and open orders were closed everytime, but I also set "Exit on close" to false and it still generated the "Exit on close" order. Strategy Analyzer just doesn't seem to be useful in this test.
Comment
-
Not sure I follow. If you want Exit on Close you need to set it to true. At the very end of the backtest you will always get an Exit on Close order regardless of the setting too.
If you are running on replay please don't run it at 500x. Please slow it down or just set session times that will trigger an exit a few minutes into the replay and let it go at 1x.Josh P.NinjaTrader Customer Service
Comment
-
Maybe your Strategy Analyzer has "seconds to close" but mine doesn't .Originally posted by NinjaTrader_Josh View PostNot sure I follow. If you want Exit on Close you need to set it to true. At the very end of the backtest you will always get an Exit on Close order regardless of the setting too.
If you are running on replay please don't run it at 500x. Please slow it down or just set session times that will trigger an exit a few minutes into the replay and let it go at 1x.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
633 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
567 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment