Re: [amibroker] How to Comparing Slope of Two Linear Regressions?

 

Hi Tomasz,

I struggled with "angular" slope definitions as well and I came up with the idea (that seems to work) of normalizing angle calculation to the percentage increase in Y axis.
For example if the price doubles in the 250 bars, and goes from $100 to $200 the increase is 100% or 1.0 in decimal ratio. For a single daily bar 1/252=0.004
My final (daily) LR slope formulae is
LRS = atan((EMA(C, x)-Ref(EMA(C, x), -1))/Ref(EMA(C, x), -1)/0.004);
(where x=252 for daily bars).

I wonder if you could comment on this approach it seems to be similar to % ROC.

Kind Regards
Richard

__._,_.___

Posted by: richpach2@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (5)

Upgrade your account with the latest Yahoo Mail app
Get organized with the fast and easy-to-use Yahoo Mail app. Upgrade today!

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___


EmoticonEmoticon