This simulation shows an entry and exit price for a trade. The trade took place under 1 second, so ms accuracy would likely have fixed this issue. What can be seen is after the entry took place, a PT Limit order was immediately filled. This is likely due to the fact that within that exact second the Limit Target prices was satisfied, although likely a few 100 ms in the past.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Trade Simulation - Exit filled from Past Data
Collapse
X
-
Trade Simulation - Exit filled from Past Data
I think I found a weakness in the Order Fill simulation.
This simulation shows an entry and exit price for a trade. The trade took place under 1 second, so ms accuracy would likely have fixed this issue. What can be seen is after the entry took place, a PT Limit order was immediately filled. This is likely due to the fact that within that exact second the Limit Target prices was satisfied, although likely a few 100 ms in the past.Tags: None
-
Hi Patrick,Originally posted by NinjaTrader_PatrickG View PostHi NJA_MC,
Was this trade a historical trade or a trade that happened in real-time? If it was a historical trade, are you able to reproduce it every time?
This was real time (forward testing on NTBroker)... I am not sure I can get the data to try historical.
Comment
-
Hi NJA_MC,
Could you send in your log and trace files so that I may look in to your trade executions?
You can do this by going to Control Center > Help > Email Support...
Please make sure to note the time of the executions and also reference the following ticket number: 1361248 ATTN Patrick G
Comment
-
I have been working with support on this issue, we have determined that the Fill price is correct, but this is more of a visual issue.
What happened is the fill occurred earlier for both Entry/Exit but simply displayed later. NT Support has a proposed future improvement to eliminate this visual affect.
Comment
-
NJA_MC
Thanks for following up in this thread.
We currently believe the root of the issue to be the PC clock being out of sync. Bars are plotted based on the data provider, however simulated trade executions use the PC clock. Syncing the PC to time.nist.gov clock should resolve this issue moving forward.
There has been a feature request submitted to the development team to implement either:
1.) NinjaTrader syncs the PC clock when NinjaTrader launches.
and/or
2.) Have Ninjatrader base execution times from your data provider instead of the PC clock so that it matches bar timestamps.
Comment
-
I'm personally not too happy with option 1. I have software of my own that synchronizes my PC clock every 30 minutes or so. Some computers have significant drift, and I try to leave NT up from Sunday night to Friday night. One option I would like is to see a report somewhere, maybe a warning or at least an "indicator" for use in Market Analyzer that would show how out of sync we are. I.e. how late or early are the ticks arriving. This would have the added benefit of detecting data feed issues. Indicators like that are available, but an NT built-in version would be welcome. What good is data that runs many seconds behind?Originally posted by NinjaTrader_PatrickG View PostNJA_MC
Thanks for following up in this thread.
We currently believe the root of the issue to be the PC clock being out of sync. Bars are plotted based on the data provider, however simulated trade executions use the PC clock. Syncing the PC to time.nist.gov clock should resolve this issue moving forward.
There has been a feature request submitted to the development team to implement either:
1.) NinjaTrader syncs the PC clock when NinjaTrader launches.
and/or
2.) Have Ninjatrader base execution times from your data provider instead of the PC clock so that it matches bar timestamps.
Comment
-
Hi Dalebru
This is an excellent suggestion and I will also forward this to the development team for consideration.
I'd like to clarify your last point:
In this specific case, the discrepancy appears to be between the time stamp that your data provider is sending (which plots the bars) and the time stamp of your local PC clock (which controls simulated executions).What good is data that runs many seconds behind?
Comment
-
I think I agree with your clarification. In this specific case, yes, the discrepancy is because the PC clock. But when I receive this warning and check/sync my PC clock and ticks are still running late, it is surely a bottleneck somewhere in the tick feed. This is not so unusual in "very fast" markets, but it's very nice to know about if I'm trying to trade inadvertently-delayed data.Originally posted by NinjaTrader_PatrickG View PostHi Dalebru
This is an excellent suggestion and I will also forward this to the development team for consideration.
I'd like to clarify your last point:
In this specific case, the discrepancy appears to be between the time stamp that your data provider is sending (which plots the bars) and the time stamp of your local PC clock (which controls simulated executions).
Comment
-
Hi dalebru,
Your data provider supplies unfiltered, real time data. The difference you have reported is milliseconds off. It is unlikely that you will be able to improve this much as it will take time to get from the exchange to your system. What some users do to improve latency however is get a VPS that is close to the exchange.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
672 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
379 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 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
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
582 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment