Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What are the units that LinRegSlope() returns?

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

    What are the units that LinRegSlope() returns?

    Degrees? Percent?

    My first concern is whether or not a stock with a higher LinRegSlope() for a given period is rising faster (i.e. at a greater percentage rate) than another stock with a lower LinRegSlope? As long as the units are anything like percent or degrees, that works fine, but if they are just $$ ROC then it does not work.

    My second question is how would I convert what LinRegSlope() returns to CAGR?

    Thanks,
    EV

    #2
    EV, this is just a rise over run calculation which is not normalized, though the inverse tangent would give you the slope angle. Turning those values into CAGR would need to some extra coding, I would not be aware of an example shared already unfortunately.

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      EV, this is just a rise over run calculation which is not normalized, though the inverse tangent would give you the slope angle. Turning those values into CAGR would need to some extra coding, I would not be aware of an example shared already unfortunately.
      By that do you mean the result is:
      (Linear Regression Value[0] - Linear Regression Value[n]) / n
      I so, that is pretty trivial to convert to CAGR.

      Thanks,
      EV
      Last edited by ETFVoyageur; 02-20-2011, 01:57 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      601 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      347 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
      559 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      558 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X