Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can you help me understand Slope()?

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

    Can you help me understand Slope()?

    Can someone help me understand whether I'm doing this right?


    Slope(RegressionChannel(35, 2).Middle, 1, 0);

    Will this simply give me the angle (in radians) of the regression channel that is 35 periods long? That is what I thought would happen, but I must be mistaken because it is giving me an output that seems off. I'm a little confused on what I should use for start and end bars when I'm inputting in a 35 period Reg Channel. I've tried a few variations and nothing has delivered what I expect.

    What I'm attempting to end up with... The equivalent as if I used the Regression Channel indicator (with 35 period) on a chart, and get a value of the angle of those channel lines.

    Thanks.
    Last edited by lookOutBelow; 08-01-2010, 01:53 AM.

    #2
    lookOutBelow, Slope() would return just the rise over run result not the angle in radians or degrees, this would need further conversion.

    Comment


      #3
      Okay thanks. In that case, can you explain what "rise over run" means? Is it simply telling me the regression channel is rising over the length of time I specify? If so, then what are the numbers it is spitting out?

      Just wondering how I can use it and possibly convert it to an angle.

      Thanks

      Comment


        #4
        Rise/run

        It just means how much y-axis displacement was there in the Regression Channel (a.k.a. rise) over how many bars it took to rise that much (run).

        On a 1 minute chart, if you ran the slope calculation for a period of 5, that would mean 5 minutes for the run or a value of 5. Then whatever the value of the indicator 5 bars ago versus the value of the indicator on the current bar would be the rise and then that difference results in the required values for the slope calculation.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        581 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        338 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        552 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X