Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy returns different results
Collapse
X
-
Hello samish18,
When comparing results there are some reasons that would cause the strategy to calculate differently between tests. While we would be unable to provide an exact answer of why that is with your custom strategy and that specific test you can debug the strategy to find out the exact answer. Because every strategy is different there is not one single answer as to why that would be different, that heavily depends on the settings you used and how the strategy was coded.
We have a guide linked below that goes over how you can add debugging to the strategy to explore differences between tests. The guide goes over comparing two tests with print statements.
This guide goes over how to add debugging and then compare results. The short summary is that you add prints into your code and then collect the output after running the strategy in one test. Then restart the strategy so it processes in the second test and then collect those prints as well. You can then compare the prints to see how the strategy logically worked in both use cases. Based on your observations you can make any changes to the settings or strategy.
https://support.ninjatrader.com/s/ar...language=en_US
-
Good morning Samish, if you are not providing any specific, for another reader like me it could be literally everything, including the alignment of the stars. If you are running it on the same exact set of data and the input parameters are the same, (are you positive of it?), it could also be a bug in your strategy code that you are not aware of. For example you are not using series where you should. When I have an interesting result I usually backup the entire platform data to be able to compare results in a later date as Jesse suggests.Last edited by giogio1; 03-27-2025, 11:54 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
20 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
120 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
63 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
45 views
0 likes
|
Last Post
|

Comment