Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error 'CalculateMinMax' method on bar 10309: Index was outside array

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

    Error 'CalculateMinMax' method on bar 10309: Index was outside array

    CalculateMinMax....is not one of my Methods...

    This is a multi-dataseries Indicator, three 10 second series, Caculate Tick

    will verify but I think this is during State.Historical

    could it be that the on bar indicated one of the series has yet to have a tick on that bar?



    #2
    Hello llanqui,

    All scripts that plot use CalculateMinMax, that is part of how the chart knows the scale for that object. If you are not overriding that method that may be caused if you tried to plot invalid data, this could also happen if the script was not configured correctly in some way. To find out what is causing this you would need to first locate the situation where you get the error so you can test which part of your code is related to the error. Once you can make the error happen you can comment out parts of your code to see which parts relate to the error. Once that is known we could take a look at that code to get a better idea of why that happens in the use case where you see the error.

    Comment


      #3
      happens infrequently....will see if it happens on replay, then I could isolate it...thanks

      Comment


        #4
        Runtime errors can be difficult to isolate, esp when not running in .net dev environment. I have simplified things by using Print("a"); Print("b")... placing a series of those in methods where I suspect a failure is occurring. As it gets narrowed down, I print more specific variable data to see what's happening. A try catch block can help too. In fact, if the error is due to something you can bypass, you may be able to allow the code to ignore the error. In a catch(Exception e), you should be able to print to the output window: e.message and e.stacktrace.

        Comment


          #5
          it hasn't happened for awhile....

          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
          574 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X