Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error ...index... out-of-range, occasionally occurs on some of the basic indicators

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

    Error ...index... out-of-range, occasionally occurs on some of the basic indicators

    The Error:

    Indicator 'Some of your indicators': Error on calling 'OnBarUpdate' method on bar n: 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 x when there are only x-1 bars on the chart.


    The problem is that this occurs randomly and no very often for example in a week I can have this error twice running my strategy on 12 diferent symbols, using the indicators ATR, T3, SMA, Bollinger Bands. The error could be on any of this indicators.

    My guess is that this ocurs in the transition of adding the new bar to the collection.

    After the error my strategy terminate unexpectedly.

    What can I do?


    Regards

    Yuri Paez


    #2
    Hello ypaez,

    Thank you for your post.

    Am I understanding correctly that your strategy is calling the indicators that error from within the strategy itself? Or are these indicators applied to the chart and not part of the strategy?

    Do you experience any connection issues around the time these errors occur?

    Is this a strategy you've created yourself, or one obtained from a third party?

    Please send me your log and trace files so that I may look into what occurred.

    You can do this by going to the Control Center-> Help-> Email Support

    Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

    Please reference the following ticket number in the body of the email: 2547300 ATTN Kate W.

    Thanks in advance; I look forward to assisting you further.

    Comment


      #3
      Thanks Kate,


      I just send the log & trace files.

      About your questions:

      Am I understanding correctly that your strategy is calling the indicators that error from within the strategy itself?

      I'm using the values from the indicators on my strategy.

      Or are these indicators applied to the chart and not part of the strategy?

      The indicators are applied to the chart.

      Do you experience any connection issues around the time these errors occur?

      This time there was no connection issues.

      Is this a strategy you've created yourself, or one obtained from a third party?

      I created my self.


      As I can see the error is not generated by the code of my strategy is generated by the code of your indicators.

      This is exactly the last error I had.

      "Indicator 'Std. dev.': Error on calling 'OnBarUpdate' method on bar 104: 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."


      As you can se the error is throught by the 'OnBarUpdate' event. On your indicator code.


      As I told you before this type of error had been appear to me on different indicators ATR, SMA, EMA, T3, Bollinger, StdDev.

      Regards


      Yuri Paez

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      648 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X