### 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 ....

#1 Selling Amibroker Plugin featuring:

Neural Networks
And Much More ....
Find Out More Here

### High Beta Stock Scanner for Amibroker (AFL) Peeyush91084 10 months ago Amibroker (AFL)

Rating:
Tags:
amibroker, scanner

As mentioned in the title the purpose of this is to simply select high beta stocks. Try it out and do let me know about it.

A beta coefficient is a measure of the volatility, or systematic risk, of an individual stock in comparison to the unsystematic risk of the entire market.

In the parameters you need to select your index symbol for this formula to work.

### Indicator / Formula

```_SECTION_BEGIN("High Beta Scanner");

ticker=ParamStr( "Ticker", "NIFTY" );

P=Foreign(ticker,"C",1);

Periods=Param("period",21,1,50,1);

Beta=(( Periods * Sum(ROC( C,1) * ROC(P,1),Periods )) - (Sum(ROC(C,1),Periods) *

Sum(ROC( P,1),Periods))) / ((Periods * Sum((ROC(P,1)^2 ),Periods)) -

(Sum(ROC(P,1 ),Periods)^2 ));

Plot(beta,"Beta",colorRed,styleLine);

Filter =beta>1.5;

_SECTION_END();```

1.

The Beta code formula can convert more simple way

``````ticker = ParamStr( "Ticker", "NIFTY" );
P = Foreign( ticker, "C", 1 );
Periods = Param( "period", 21, 1, 50, 1 );```

```RocX = ROC ( C, 1 );
RocY = ROC ( P, 1 );```

`Beta = Correlation( RocX, RocY, Periods ) * StDev( RocX, Periods ) / StDev( RocY, Periods );````

Enjoy it.