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 ....
Find Out More Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

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

EMA Slope for Amibroker (AFL)

Rating:
3 / 5 (Votes 5)
Tags:
oscillator, amibroker

EMA color changes based on slope

Screenshots

Indicator / Formula

Copy & Paste Friendly
P = Param("EMA PERIOD",20,2,90,1);
q = Param("WINDOW SIZE FOR CALCULATING SLOPE", 1,1,20,1);
r = Param("SLOPE CHANGE SMOOTHING FACTOR",5,1,50,1);
e = EMA(C, P);
Slope = atan((e - Ref(e,-q)) / (q * 3.14159265)) * 180;
m = MA(Slope,r);
Plot(Slope,"Slope", IIf(Slope>0,colorBlue,colorRed),styleHistogram|styleThick);
Plot(m,"Direction",IIf(m>Ref(m,-1),colorBlue,colorRed),styleThick);

3 comments

1. morgen

Good!
Thank you.

2. jaygouda

Nice one.Thanks

3. mhjwisestocktrader

hi;
how did you reach to this:
Slope = atan((e - Ref(e,-q)) / (q * 3.14159265)) * 180;

any link on web?

Leave Comment

Please login here to leave a comment.

Back