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 Bogdan097, Today, 03:25 PM
      0 responses
      3 views
      0 likes
      Last Post Bogdan097  
      Started by cmtjoancolmenero, 04-25-2024, 03:58 PM
      25 responses
      126 views
      0 likes
      Last Post cmtjoancolmenero  
      Started by Mupulen, 04-16-2024, 11:26 AM
      1 response
      55 views
      0 likes
      Last Post techbech  
      Started by Quanto, Today, 02:17 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Skifree, Today, 11:21 AM
      3 responses
      12 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X