Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CalculateMinMax Error

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

    CalculateMinMax Error

    I'm getting a very strange error message in an indicator I developed by modifiying a standard indicator.
    The error message I get every time I put the indicator on a chart, is:

    Indicator BuySellDeltaPerCentMod1:Error on calling 'CalculateMinMax' method on bar XXXX: The calculation results inunrenderable values.

    Here's the weird thing. I can find no reference to this method in any part of my code. I have no idea why it is occurring because it simply isn't in there, at least not in a way that I can detect.

    Any ideas? I really like this indicator and it works extremely well in exposing order flow extremes within a bar, extremes which are generally pretty tradeable/

    Thanks

    DaveN

    #2
    Hello DaveN,

    Thanks for opening the thread.

    As the issues seems to have appeared after you have modified a system indicator, I would suggest to compare the differences between each version to narrow down modifications that create this error message.

    This message can come up when overriding OnCalculateMinMax() or when a chart object is set to IsAutoScale.

    Additionally, I would suggest to exclude the modified indicator from the assembly and test, and then exclude the original indicator and test in case the modified indicator was not properly cloned. You can remove a system indicator from compilation by browsing to the NinjaTrader 8/bin/Custom/Indicators/ folder and prefixing the system indicator so it has 2 "@@" symbols instead of just one.

    Additional information on OnCalculateMinMax() can be referenced here: https://ninjatrader.com/support/help...lateminmax.htm

    Please let me know if I can be of further assistance.

    Comment


      #3
      I had the same issue just now. I had added a plot to an indicator started getting the CalculateMinMax error. CalculateMinMax was not even in the indicator.
      The solution in my case was to open the workspace then reload Ninjascript (Right click on chart) on charts which contained a reference to the changed indicator. Resave the workspace and messages go away.

      I have had similar scenarios of strange messages after modifying plots on indicators.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      662 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      376 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      110 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      580 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X