Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 CortexZenUSA, Today, 12:53 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Started by CortexZenUSA, Today, 12:46 AM
      0 responses
      1 view
      0 likes
      Last Post CortexZenUSA  
      Started by usazencortex, Today, 12:43 AM
      0 responses
      5 views
      0 likes
      Last Post usazencortex  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      168 responses
      2,266 views
      0 likes
      Last Post sidlercom80  
      Started by Barry Milan, Yesterday, 10:35 PM
      3 responses
      13 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X