Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error on calling 'OnBarUpdate' method: Index was outside the bounds of the array

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

    Error on calling 'OnBarUpdate' method: Index was outside the bounds of the array

    Hi,

    I've been getting this error for the second consecutive day for a particular custom indicator that i've used for over two years without such an error. I'm running v8.0.28.0 with TWS.

    The strange thing is I can run an exactly identical chart with the same indicator, the same number of days to load and there are no issues with it.

    How would I identify where the problem lies? Could you help? Last week I was advised to create a fresh database, with the steps given, over a different issue - Unhandled exception: Object reference not set to an instance of an object - with a different indicator. I did that over the weekend. I'm not sure if that created this issue but that's the only thing that i've done to the software.

    Regards
    Kay Wai

    #2
    Hello kaywai,

    It would be hard to say what the problem is besides there is some logical problem with the indicators code. Is this an indicator you created? Generally if you are getting an index error that would relate to data or plots within the indicator and how those values are being accessed. To find the problem would require debugging the indicator in the use case that generates the error to see which part of its code is being effected.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    596 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X