Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Index error

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

    Index error

    Hi!

    I have a similar issue.

    This is what I read in my Log:
    Indicator 'INEFFICIENZE': Error on calling 'OnStateChange' method: Index was outside the bounds of the array.
    How can I find which index and array the message refers to?

    #2
    Hello Gianpiero,

    For that type of error you would need to debug the code inside of the indicators OnStateChange to find which line is throwing an error. Generally you would comment out the code leaving just the base indicator structure and find a point where you can apply it without seeing the error. Once you reach that point you can uncomment 1 line at a time in OnStateChange to see which line is having a problem. Once that is known you could make a forum post about that line if the problem is not apparent.

    Comment


      #3
      Thanks Jesse!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      646 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      367 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 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