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

Regression channel indicator

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

    Regression channel indicator

    I am looking at the data box for the built in regression channel indicator? For some reason the upper and lower channel values don’t match when I hover over the bar. Do you know why that is??

    #2
    Hello Graci117,

    The lines for the regression channel are not the actual plots.

    Below is a link to a video that shows the values in the DataBox are coming from the plots, but the rendered lines are the plots themselves.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you so much for your response Chelsea! This does not solve my problem. My strategy is based on Preis crossing the channels. Is there anyway to get the actual plot data?

      Comment


        #4
        Hello Graci117,

        Yes, the indicator is returning the plot data not the rendered lines.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello Graci117,

          Yes, the indicator is returning the plot data not the rendered lines.
          I understand, but I do need to get the correct rendered values. How do I do that?

          Comment


            #6
            Also, I would like to see the the dotted line on the video to be shown on the chart to see what I am coding against. Can you please help?

            Comment


              #7
              Can anyone help please?

              Comment


                #8
                Hello Graci117,

                Do you want to show the plot values on the chart?

                You could make a copy of the regression channel indicator and add base.OnRender(chartControl, chartScale); to the top of the OnRender() override method and this would show the plots series on the chart.

                I've made a video demonstrating.


                Are you trying to get the start coordinate of the render lines that change on each new bar?
                In the code of the regression channel indicator this is calculated on lines 175 to 183 in OnRender() as these lines change direction on every new bar.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by NinjaTrader_ChelseaB View Post
                  Hello Graci117,

                  Do you want to show the plot values on the chart?

                  You could make a copy of the regression channel indicator and add base.OnRender(chartControl, chartScale); to the top of the OnRender() override method and this would show the plots series on the chart.

                  I've made a video demonstrating.


                  Are you trying to get the start coordinate of the render lines that change on each new bar?
                  In the code of the regression channel indicator this is calculated on lines 175 to 183 in OnRender() as these lines change direction on every new bar.
                  Thanks so much!! This is very helpful!!

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by yertle, Today, 12:24 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post yertle
                  by yertle
                   
                  Started by reekotubbs, Yesterday, 01:09 PM
                  3 responses
                  26 views
                  0 likes
                  Last Post reekotubbs  
                  Started by Blaze212, 07-07-2024, 08:58 PM
                  2 responses
                  18 views
                  0 likes
                  Last Post Blaze212  
                  Started by medicmiked, Today, 11:56 AM
                  0 responses
                  2 views
                  0 likes
                  Last Post medicmiked  
                  Started by miaolivi9, Today, 06:59 AM
                  0 responses
                  8 views
                  0 likes
                  Last Post miaolivi9  
                  Working...
                  X