Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

LinReg bug?

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

    LinReg bug?

    NT 7.0.1000.40

    Steps to reproduce:
    1. New chart (e.g. 1 min ES)
    2. Add LinReg with a large period value, e.g. 100 - LinReg(ES 06-19 (1 Min), 100)
    3. Go to the beginning of the chart (e.g. press Home)
    It looks quite nice, though renders the chart (with Autoscale on) useless, until that part disappeares.

    #2
    Titus,

    Thanks for posting.


    I'll be happy to test this on both versions of the platform and follow up with you with my findings.
    Drew O.NinjaTrader Customer Service

    Comment


      #3
      Thank you DrewO.

      I tested it a bit further. At period 21 it is still sane. At period 22 it goes full retard (never go full retard). I don't know if it helps, but this is what I found.

      Comment


        #4
        Titus,

        Appreciate your patience.


        I can reproduce this in NinjaTrader 7, but I cannot reproduce this in NinjaTrader 8. I have reported this to the Development Team. However, NinjaTrader 7 is receiving critical updates only while we focus all efforts on NinjaTrader 8.

        'll note this as a current limitation of NinjaTrader 7
        Drew O.NinjaTrader Customer Service

        Comment


          #5
          Thank you, DrewO.
          Is there an indicator that is reasonably close to LinReg, so I could use that instead?
          Or would it be easier to create a custom LinReg using the code from NT8? Would it be a relatively easy thing to do, or are the differences between the version (NT7 and NT8 Ninjascript) to big for that?
          Any suggestions are greatly appreciated.

          Comment


            #6
            Hello Titus, thanks for your reply.

            I fixed this by setting the scripts BarsRequired property to the selected period.

            To import this file, download it then go to File>Utilities>Import NinjaScript.

            All the best wishes!
            Attached Files
            Chris L.NinjaTrader Customer Service

            Comment


              #7
              Absolutely fantastic, thank you ChrisL.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by algospoke, Yesterday, 06:40 PM
              2 responses
              23 views
              0 likes
              Last Post algospoke  
              Started by ghoul, Today, 06:02 PM
              3 responses
              14 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by jeronymite, 04-12-2024, 04:26 PM
              3 responses
              45 views
              0 likes
              Last Post jeronymite  
              Started by Barry Milan, Yesterday, 10:35 PM
              7 responses
              22 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by AttiM, 02-14-2024, 05:20 PM
              10 responses
              181 views
              0 likes
              Last Post jeronymite  
              Working...
              X