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

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.
    BertrandNinjaTrader Customer Service

    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 Harry, 05-02-2018, 01:54 PM
      10 responses
      3,203 views
      0 likes
      Last Post tharton3  
      Started by cre8able, Yesterday, 01:16 PM
      3 responses
      11 views
      0 likes
      Last Post cre8able  
      Started by ChartTourist, Today, 08:22 AM
      0 responses
      6 views
      0 likes
      Last Post ChartTourist  
      Started by LiamTwine, Today, 08:10 AM
      0 responses
      2 views
      0 likes
      Last Post LiamTwine  
      Started by Balage0922, Today, 07:38 AM
      0 responses
      5 views
      0 likes
      Last Post Balage0922  
      Working...
      X