Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
backtest error
Collapse
X
-
backtest error
I am using the Wizard for backtesting as I don't know coding. On a 15 min candle chart at the 9:45 EST (close time) bar I need to reference a signal on the previous trading day's chart at the bar close time of 4pm EST. My chart is of ES with all trading in the 24 hr period included. My manual count is that the reference bar is 67 bars back. So if I want to know if my Hull ma signal line was on a buy at that point then I assume the Condition for the Strategy is HMA(21)(67)>HMA(21)(66) and specify the Time as 16. However I'm not able to enable this to test it and I see the following message in the Log: Error on calling 'OnBarUpdate' method for strategy 'Hull1/9ec803fa4c514af1bf747ae949fba0d4': You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart......so I assume the problem is on the first date loaded on the chart where the Condition I set up is not able to look back to the previous day. How can I set the backtest to start a day or two after the chart begins? I couldn't figure out if there is a way to set the "Date value" to achieve this. ThanksTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,602 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
8 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
4 views
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
12 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
Comment