I then backtested the same day using my saved historical data and it exited the position at 2:45 like it should. How come the market replay did not?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Market replay problem
Collapse
X
-
Market replay problem
I connected to a market replay feed that I saved from a few days ago. I then clicked on the strategies tab and added a strategy. The strategy was set with session begin 8:00 session end 2:45. I had the box that says "exit on close" set as true. At around 12:25 the strategy initiated a buy. 2:45 rolled around and the strategy never exited the position?
I then backtested the same day using my saved historical data and it exited the position at 2:45 like it should. How come the market replay did not?Tags: None
-
I have duplicated the same thing on my side as well, it's funny you mention it, I just noticed this happening today on a particular strategy signal.
In backtest mode, it shows "exit on close". But in Market Replay, it closed at midnight local time.
I've not noticed it occurring before, and I just updated to 6.5.1000.7 yesterday, I wonder if this has anything to do with it (was on .6 before).
Mike
-
The time of the current replay. So for instance when in replay mode, the control panel that has pause and the various speeds at which to advance time. It says the date of the replay and the current time the replay mode is at. The 2:45 is when the time in that replay mode has elapsed.
Comment
-
The poster below says they recently switched to .7, I am still on version .6. If that makes a difference.
Comment
-
What I meant is that in your strategy code, you have some code to filter in/out trades, does this code should reflect the time of the bar, not the time of the PC.
Like demonstrated in this reference sample - http://www.ninjatrader-support.com/v...ead.php?t=3226RayNinjaTrader Customer Service
Comment
-
I am not filtering the time in the strategy. Was relying on the flag when you start the strategy that says "Exit on close". The session end time for the strategy was set as 2:45. In backtesting it automatically closes the position at 2:45 when that flag is set. but in market replay mode it does not.
Is this not the correct behavior?
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