Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator not working on MES
Collapse
X
-
It is originally from Pine ported over. Error received in output is
"Error on calling 'OnBarUpdate' method on bar 258: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart."
Comment
-
Hello Buterol,
Thank you for your reply.
Generally we would see this error if you are trying to access a series using a bar index that doesn't have information or is for an invalid index.
What I would suggest is adding prints to the indicator to see what the values of the variables and series are on each bar. This should help you identify what value is causing the error.
This forum post goes into great detail on how to use prints to help figure out where issues may stem from — this should get you going in the correct direction. You can even add these using the Strategy Builder.
If you run into issues like we saw here, the above information will allow you to print out all values used in the statement or condition in question that may be evaluating differently than expected. With the printout information you can assess what is different between the values on a bar that does process and when it errors.
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by traderqz, Today, 09:44 AM
|
2 responses
4 views
0 likes
|
Last Post Today, 10:00 AM | ||
Started by stafe, 04-15-2024, 08:34 PM
|
8 responses
40 views
0 likes
|
Last Post
by stafe
Today, 10:00 AM
|
||
Started by rocketman7, Today, 09:41 AM
|
2 responses
7 views
0 likes
|
Last Post
by rocketman7
Today, 09:52 AM
|
||
Started by rocketman7, Today, 02:12 AM
|
7 responses
31 views
0 likes
|
Last Post Today, 09:23 AM | ||
Started by guillembm, Yesterday, 11:25 AM
|
3 responses
16 views
0 likes
|
Last Post Today, 09:11 AM |
Comment