Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Backtest Time frame problem
Collapse
X
-
Backtest Time frame problem
I have similar problems for several different products and scripts, the problem emerged a few weeks ago. 1 minute bars, 20 minimum bars I run a ES backtest on script X from year 2000 to today. First trade is in 2000, there are several trades every year. Same product and script from year 2005 to today. Strangely the first trade is in 2011 and not in 2005. Starting year 2001, first trade is in 2011 again. Similar problem for CL.Tags: None
-
Hi markus1000,
The best next step would be to print the variable values that you are checking in your conditions to find why the strategy is behaving as it is.
In the print, include the time of the bar.
For example:
Print(Time[0]+" - Close[0]: "+Close[0]+" > Open[0]:"+Open[0]);
if (Close[0] > Open[0])
{
EnterLong();
}
Prints will go to the Output window. (Tools -> Output Window...)
http://www.ninjatrader.com/support/h.../nt7/print.htmChelsea B.NinjaTrader Customer Service
-
ok found the problem, the historical data of a stock i use for an indicator in the code was messed up.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
65 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
23 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
26 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
52 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment