Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Beta Explorer & Indicator for stocks for Amibroker (AFL)
This is a simple explorer & Indicator which fetches the value of beta, which can be used for their own interpretation for risk management. Can modify the periods in the code according to their convenience.
Indicator / Formula
function Beta( BaseSymbol, N ) { Chg = ROC( C, 1 ); ChgBase = ROC( Foreign( BaseSymbol, "C" ), 1 ); return ( N * Sum( Chg * ChgBase , N ) - Sum( Chg, N ) * Sum( ChgBase, N ) ) / ( N * Sum( ChgBase ^ 2 , N ) - Sum( ChgBase, N ) ^ 2 ); } symbol = ParamStr( "Symbol", "70001247" ); Plot( Beta( symbol, Param( "Periods", 21, 2, 100 ) ), _DEFAULT_NAME(), ParamColor( "Color", ColorCycle ) ); Filter = 1; AddTextColumn( FullName(), "FullName" ); AddColumn( Close, "Close", 1.2 ); AddColumn( Beta( "70001247", 50 ), "Beta", 1.2 ); //Replace 70001247 with your Nifty Symbol here
2 comments
Leave Comment
Please login here to leave a comment.
Back
How can I use it?
Its just an explorer, change your nifty(or any comparable index) symbol in the code & execute