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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      63 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      92 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      48 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      106 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      63 views
      0 likes
      Last Post PaulMohn  
      Working...
      X