Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Polinomial regression channel

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

    Polinomial regression channel

    Hello everybody.
    Where can I get polynomial regression channel indicator?

    #2
    Hello daglas,

    I'm not aware of an indicator by this name in these forums. Hopefully other community members could point you in the right direction if it exists somewhere else. If you know the calculations, you can explain your requirements to any of our NinjaScript consultants:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Ok ,thx. I have formula and codes. May be I write it by my self, but I hope that it's ready made, and I can find it at this forum.

      Comment


        #4
        daglas, you can check into the code shared here for a starting point - http://www.ninjatrader.com/support/f...ad.php?t=16318
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          daglas, you can check into the code shared here for a starting point - http://www.ninjatrader.com/support/f...ad.php?t=16318
          Ok, thx a lot.

          Comment


            #6
            Calling PRC

            Hello Ninjitsus, i been trying to call the PRC (Polinomial Regression Channel) from inside an other indicator, but the result i get is not what i expected , i tryed calling it as a double :

            double PRC_a = PRC(degree, periods, strdDev, strdDev2).Fx[0];

            and as a DataSeries:


            (private DataSeries PRC_a; etc )

            PCR_A.Set ( PRC(degree, periods, strdDev, strdDev2).Fx[0]);


            and this is what i get

            Click image for larger version

Name:	prc.jpg
Views:	1
Size:	270.0 KB
ID:	864891


            not even close to the original one :P

            help?

            thanks!

            Comment


              #7
              kabott, I believe this would be expected for the indicator when called programmatically - as you would then see what value was available in realtime at the exact moment / bar you called it. The indicator would be constructed to provide a best fit estimate over the data chosen, this will update then as new data comes in.

              You can check the last value you got for the PRC indicator and programmatic all - they are the same.
              Last edited by NinjaTrader_Bertrand; 03-06-2012, 12:29 PM.
              BertrandNinjaTrader Customer Service

              Comment


                #8
                And how would i go to get the same result then? i mean how should i call it?

                Comment


                  #9
                  kabott,

                  You can plot the programmatic value in market replay /real time to see what is returned, and check the price marker on the axis for the actual value. This indicator recalculates as new values arrive, so is not suitable for real time trading signal.
                  Last edited by NinjaTrader_RyanM1; 03-06-2012, 11:03 AM.
                  Ryan M.NinjaTrader Customer Service

                  Comment


                    #10
                    Hi,

                    I stumbled across what appears to be free version of this indicator a while ago. If it's of any use, I found it here:

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by f.saeidi, Today, 11:02 AM
                    1 response
                    2 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Started by geotrades1, Today, 10:02 AM
                    4 responses
                    12 views
                    0 likes
                    Last Post geotrades1  
                    Started by rajendrasubedi2023, Today, 09:50 AM
                    3 responses
                    16 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Started by lorem, Today, 09:18 AM
                    2 responses
                    11 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by geddyisodin, Today, 05:20 AM
                    4 responses
                    30 views
                    0 likes
                    Last Post geddyisodin  
                    Working...
                    X