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!
See more
See less

Partner 728x90

Collapse

EMA Order Flow Cumulative Delta

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.
    "


    #2
    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

    Comment


      #3
      I solved thanks
      NinjaTrader's trading software & futures brokerage equips traders with an award-winning trading platform & low commissions for futures trading. Download software or open a futures account.
      Last edited by bebbus; 01-11-2019, 11:38 AM. Reason: I solved thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by junkone, Today, 11:37 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by frankthearm, Yesterday, 09:08 AM
      11 responses
      41 views
      0 likes
      Last Post frankthearm  
      Started by quantismo, 04-17-2024, 05:13 PM
      5 responses
      35 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by proptrade13, Today, 11:06 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by love2code2trade, 04-17-2024, 01:45 PM
      4 responses
      34 views
      0 likes
      Last Post love2code2trade  
      Working...
      X