• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.


No announcement yet.

Partner 728x90


LinReg bug

  • Filter
  • Time
  • Show
Clear All
new posts

    LinReg bug

    Entering a Period = 1 for @LinReg results in the following error:
    Indicator 'Squeeze': Error on calling 'OnCalculateMinMax' method on bar 0: The calculation results in unrenderable values.

    Period = 1 works for NT7.

    Hello traderpards,

    I am not able to reproduce this behavior using the LinReg indicator that is supplied with NinjaTrader.

    That said, the error message indicates that the Squeeze indicator is the indicator generating the error and not the LinReg. There is not a Squeeze indicator included with NinjaTrader. This would be a 3rd party custom script.

    If you start NinjaTrader without a saved workspace and add only the LinReg indicator to a new chart with a period of 1, are you able to reproduce the error?
    Please let me know if you would like directions to start NT without a saved workspace.
    Chelsea B.NinjaTrader Customer Service


      I put this in the wrong spot so you probably thought I meant it's for NT7. I meant to put it in NT8 and yes, it does reproduce in NT8 when you put 1 in for the Period. If you put 2, it works.

      Sorry about that. This is a bug in NT8, and RSqueezeV2 will also likely generate it because it uses LinReg there.
      Last edited by traderpards; 11-23-2016, 05:10 PM.


        Is safe mode the same thing? I restarted in safe mode, brought up chart with whatever bar type was the default - didn't notice which one - and loaded only a 1-period LinReg indicator, or tried to. Got the same error.

        Then I restarted in normal mode and after I reloaded all my strategies, which apparently get blown away in safe mode, tried to load a 10 minute chart with only a 1-period LinReg. Got the same error.

        This is all in NT8, from an indicator that I modeled after RSqueezeV2, which uses LinReg. You're right, that indicator did cause the error but I traced it down to LinReg, which chokes when period =1. Any other period works fine, just not 1, contrary to LinReg in NT7, which works just fine with period = 1.
        Last edited by traderpards; 11-23-2016, 08:55 PM.



          Thank you for the reply.

          Regarding the LinReg, I do see this error and will report it, thank you for posting this. In the future please ensure to post all NT8 items in the NT8 forums to avoid confusion, I have moved this thread to the correct forum.

          Regarding Safe mode, it is not the same as the normal launch, this disables NinjaScript addons and quite a few other items, this mode is intended for testing the core platforms stability. Safe Mode will prevent NinjaTrader from:

          Loading workspaces.
          Connecting on start-up.
          Loading custom assemblies.
          Getting instrument updates from the server.

          This can help in the case you can not get the platform to open at all.

          I look forward to being of further assistance.
          JesseNinjaTrader Customer Service


          Latest Posts


          Topics Statistics Last Post
          Started by foxy_rav, Today, 12:07 PM
          0 responses
          1 view
          Last Post foxy_rav  
          Started by Gav_G, Today, 10:35 AM
          3 responses
          Last Post NinjaTrader_Jim  
          Started by traderpards, Today, 09:55 AM
          3 responses
          Last Post NinjaTrader_Melissa  
          Started by MojoJojo, Today, 09:53 AM
          0 responses
          Last Post MojoJojo  
          Started by lunardiplomacy, Today, 08:23 AM
          5 responses
          Last Post lunardiplomacy