Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Overflow Error. "Please check 'OnBarUpdate' or 'Plot' Method"

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

    Overflow Error. "Please check 'OnBarUpdate' or 'Plot' Method"

    On a custom indicator I've built, I occasionally get the following error:

    Error on plotting indicator 'MyCustomIndicator'. Please check the 'OnBarUpdate' or the 'Plot' method: Overflow error.

    The indicator is an adaptation of the HeikenAshi indicator. I have made no changes to the plot method from that indicator. In OnBarUpdate, all I have is if(Historical), set some values to 0, then return, or if(CurrentBar < 1) return.

    I'm overriding onMarketData as that is where most of the indicator logic is. Could the overflow error be generating from this method instead of just OBU or Plot as the log message indicates? What does overflow error actually mean? Memory issue? Thanks

    kc

    #2
    Hi kc,

    It will be caused when you perform calculations that result in overflow.


    First step is to isolate what value exactly is causing the exception. For this, Try-Catch blocks may work for you:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Overflow Error. &quot;Please check 'OnBarUpdate' or 'Plot' Method&quot;

      Hi ,

      I got this error yesterday with IB flow , pointing to a custom indicator .
      I stopped and restarted the NT SW and the problem was fixed .

      Regards
      Gerard

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      598 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
      555 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X