"
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.
Paul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by love2code2trade, Today, 01:45 PM
|
1 response
8 views
0 likes
|
Last Post Today, 02:10 PM | ||
Started by Gibranes, Today, 10:05 AM
|
5 responses
21 views
0 likes
|
Last Post Today, 01:55 PM | ||
Started by 09try, 03-29-2024, 01:27 PM
|
9 responses
81 views
0 likes
|
Last Post
by ntcat
Today, 01:16 PM
|
||
Started by ninza33, Today, 06:28 AM
|
4 responses
17 views
0 likes
|
Last Post
by ninza33
Today, 12:38 PM
|
||
Started by ScottWalsh, Yesterday, 04:29 PM
|
4 responses
18 views
0 likes
|
Last Post Today, 12:00 PM |
Comment