When I notice a significant difference between an identical backtest run on two different instances of NT I go into the NT /db folder and clear out all data from the cache folder and delete all historical data from their respective folders. Once I do that and re-run the backtest I get the same results between instances. I'm wondering if there is a better solution to avoid getting back incorrect backtest results?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Historical data issue. Different backtest results between instances.
Collapse
X
-
Historical data issue. Different backtest results between instances.
I have NinjaTrader installed on two computers. When backtesting I run each backtest on at both computer because sometimes I get vastly different results between instances. It seems that historical data can somehow easily get corrupted or perhaps is missing data. I would like to understand how/when this can occur?
When I notice a significant difference between an identical backtest run on two different instances of NT I go into the NT /db folder and clear out all data from the cache folder and delete all historical data from their respective folders. Once I do that and re-run the backtest I get the same results between instances. I'm wondering if there is a better solution to avoid getting back incorrect backtest results?Tags: None
-
Yes, in some cases, it is not clear to the platform that data is missing so it does not request the fill-in data and one side or the other is missing a section. Additionally, though, this is a lesser issue, there are correction ticks at the exchange which can mean the data captured in realtime differs from the data downloaded from the historical servers even if the historical servers used the same realtime data. Additionally, if one of them has a different realtime data feed from the other (for instance, Rithmic vs. Continuum) I would expect the data captured in realtime to be pretty different. Additionally, if one is capturing in realtime while the other only got the data historically, I would also expect that to be different. These are just some of the reasons - there are multiple reasons the data could and would be expected to be different - especially if any of it was captured in realtime.
One approach you could take to this is if you are only back-testing on computers that get their historical data from the same source, do your back-testing after hours, and do a reload historical data on both sides before you begin.
- Likes 1
Comment
-
Hello martyn73,
Thanks for your post.
QuantKey_Bruce is correct. In some cases, there could be data missing between your machines and the platform does not detect if there is missing data.
We are tracking interest in a feature request for the ability to autodetect and backfill missing historical data in NinjaTrader 8 and I have added your vote to this feature request. This request is being tracked under the number SFT-4225.
As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.
Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
You may try redownloading the historical data on each machine prior to running your backtests as you have explained. Or, you could use QuantKey_Bruce's workaround for this.
Please let us know if we may be of further assistance to you.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
77 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
45 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
27 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
63 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment