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.

    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

        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

            Comment


              #7
              Absolutely fantastic, thank you ChrisL.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Mindset, 04-21-2026, 06:46 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by M4ndoo, 04-20-2026, 05:21 PM
              0 responses
              144 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by M4ndoo, 04-19-2026, 05:54 PM
              0 responses
              71 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by cmoran13, 04-16-2026, 01:02 PM
              0 responses
              125 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              79 views
              0 likes
              Last Post PaulMohn  
              Working...
              X