Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Beta (Slope) for Amibroker (AFL)
kiedal
about 11 years ago
Amibroker (AFL)

Rating:
4 / 5 (Votes 3)
Tags:
amibroker

Beta calculation based on Excel’s SLOPE function

Similar Indicators / Formulas

Kavach Of Karna v2
Submitted by hbkwarez over 10 years ago
Advanced Elliott Waves
Submitted by MarcosEn almost 13 years ago
3_6Day GuaiLiLv
Submitted by motorfly almost 13 years ago
Williams Alligator System
Submitted by durgesh1712 about 13 years ago
*Level Breakout system*
Submitted by Tinych about 13 years ago
Horizontal Live Priceline Tool
Submitted by northstar about 13 years ago

Indicator / Formula

Copy & Paste Friendly
function aBetaLnRegCoeff (Index, Stock, Period) {
   IndexRtn = (Index-Ref(Index,-1))/Ref(Index,-1)*100;
   StockRtn = (Stock-Ref(Stock,-1))/Ref(Stock,-1)*100;
   IndexRtnAvg = Sum(IndexRtn,Period) / Period;
   StockRtnAvg = Sum(StockRtn,Period) / Period;
   IndexDev = IndexRtn - IndexRtnAvg;
   StockDev = StockRtn - StockRtnAvg;
   return (Sum(IndexDev*StockDev,Period) / Sum(IndexDev*IndexDev,Period));
}

Beta = aBetaLnRegCoeff (Foreign("INDU", "C"), C, 50);
Plot(Beta, "Beta", ParamColor("Beta color", colorBlue), ParamStyle("Beta style"));

1 comments

1. amifan

how come i missed this !!!
Nice work kiedal

Leave Comment

Please login here to leave a comment.

Back