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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      155 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      90 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      137 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      130 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      107 views
      0 likes
      Last Post CarlTrading  
      Working...
      X