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 Coefficient for Amibroker (AFL)
SC06
almost 14 years ago
Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
amibroker

Simple Beta Coefficient calculation afl for DSE.

Similar Indicators / Formulas

Kavach Of Karna v2
Submitted by hbkwarez over 10 years ago
Advanced Elliott Waves
Submitted by MarcosEn about 13 years ago
3_6Day GuaiLiLv
Submitted by motorfly about 13 years ago
Williams Alligator System
Submitted by durgesh1712 about 13 years ago
Interactive Linear Regression Channel
Submitted by InternetWorm about 13 years ago
*Level Breakout system*
Submitted by Tinych about 13 years ago

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Beta Coefficient");
n = Param("n Days", 5, 1, 100, 1 );

TPC= C-Ref(C,-n);
IPC= Foreign("00DSEGEN", "C,-n")-Ref(Foreign("00DSEGEN", "C,-n"),-n);

Title=
EncodeColor(colorYellow)+  Title = Name () + " | " 
+EncodeColor(colorRed) + Date() + " | " 
+EncodeColor(colorSkyblue) + "{{INTERVAL}}  "+ " | " 

+EncodeColor(colorTeal)+ "Open ="+ EncodeColor(colorLightGrey)+ O + " | "
+EncodeColor(colorTeal)+ "High ="+ EncodeColor(colorLightGrey)+ H + " | "
+EncodeColor(colorTeal)+ "Low = "+ EncodeColor(colorLightGrey)+ L + " | "
+EncodeColor(colorTeal)+ "Close = "+ WriteIf(C> O,EncodeColor(colorBrightGreen),EncodeColor(colorRed))+ C + " | "
+EncodeColor(colorTeal)+ "Change= ("+ WriteIf(C> O,EncodeColor(colorBrightGreen),EncodeColor(colorRed)) + WriteVal(C-Ref(C,-1))+" Tk."
+EncodeColor(colorTeal)+ " /"+ WriteIf(C> O,EncodeColor(colorBrightGreen),EncodeColor(colorRed))+ WriteVal( ROC( C, 1 ))+""+ " % "
+EncodeColor(colorTeal)+ ") Volume = " + EncodeColor(colorLightGrey)+ WriteVal(V,1)+ " | "
+EncodeColor(colorTeal)+ "Vol.Change= "+ EncodeColor(colorLightGrey)+ Prec(ROC( V, 1 ),2)+""+ " % "

+"\n"+EncodeColor(colorGreen)+"Ticker Price Change (n Days) : " + WriteVal( ROC( C, n))+""+ " % "+ ""
+"\n"+EncodeColor(colorLightBlue)+"Ticker Price Change= : "+ TPC +" Tk."
+"\n"+EncodeColor(colorLightGrey)+"Index Change= : "+IPC+" /  "+(IPC/100) +" %"
+"\n"+EncodeColor(colorTan)+"Beta Coefficient •••••  : "+ (TPC/IPC) +""
;
_SECTION_END();

_SECTION_BEGIN("BETA");
Filter=1;
Beta= TPC/IPC ;
AddColumn(Beta,"BETA");
_SECTION_END();

1 comments

1. expert

i have download this afl ,but this afl show me wrong “Beta Coefficient” becouse i brows stockbangladesh and i look one stock from there not same beta from stockbangladesh and this afl oky brother!

Leave Comment

Please login here to leave a comment.

Back