Also I am running the strategy on NG, but when I run it on GC instead I get a normal progression of trade quantity going back in time. Are you aware of anything that would cause such an issue?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Backtest has fewer trades historically than recently?
Collapse
X
-
Backtest has fewer trades historically than recently?
I'm encountering an error/bug I can't figure out, where I've created an algo and when I run it in backtest it gives fewer trades the farther back in time I go. For example, from Jan of this year until now it shows 44 trades, from Jan of 2013 till now it then shows 23 trades, and from Jan of 2012 until now it shows only 2 trades.
Also I am running the strategy on NG, but when I run it on GC instead I get a normal progression of trade quantity going back in time. Are you aware of anything that would cause such an issue?Tags: None
-
Hello LightWeight,
Your NinjaScript / C# Code will always be logically processed and evaluate according to your set logic - this can of course lead to unexpected results at times, thus we would suggest to simplify and debug your code to better understand the event sequence it would go through - unfortunately we cannot offer such debug or code modification services here, but please see the provided resources below to help you proceed productively :
First of all you would want to use Print() statements to verify values are what you expect - Debugging your NinjaScript code.
For strategies add TraceOrders = true to your Initialize() method and you can then view valuable output related to strategy submitted orders through Tools > Output window - TraceOrders
It may also help to add drawing objects to your chart for signal and condition confirmation - Drawing Objects.Cal H.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
75 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
26 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
62 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment