• 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.

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 NtFan, Today, 10:47 AM
              0 responses
              5 views
              0 likes
              Last Post NtFan
              by NtFan
               
              Started by U0000999, Today, 10:33 AM
              1 response
              3 views
              0 likes
              Last Post U0000999  
              Started by iq200, Today, 10:21 AM
              1 response
              5 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by lunardiplomacy, Today, 07:52 AM
              1 response
              20 views
              0 likes
              Last Post caveat_lector  
              Started by rayko, Today, 10:20 AM
              1 response
              2 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X