"
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
EMA Order Flow Cumulative Delta
Collapse
X
-
EMA Order Flow Cumulative Delta
I would like to insert average Order Flow Cumulative Delta but I have error "Indicator 'EMA': Error on calling 'OnBarUpdate' method on bar 0: You are accessing an index with a value that is invalid since it is out-of-range. a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
"
-
Hello bebbus,
Thanks for your post.
Typically that error would mean to that you are trying to access data that has not been processed and typically you would check the CurrentBars[n] to ensure that enough bars have been processed before trying to access a historical bar via a bars ago reference. https://ninjatrader.com/support/help...urrentbars.htm
The order flow cumulative delta indicator requires that you load 1 tick data series, please see " Order Flow Cumulative Delta Values NinjaScript or Strategy Builder access " here: https://ninjatrader.com/support/help...tive_delta.htm So if you have not Added the 1 tick series, that may also cause that error.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
672 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
379 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
582 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment