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

EMA Slope for Amibroker (AFL)
wisp
almost 7 years ago
Amibroker (AFL)

Rating:
3 / 5 (Votes 6)
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);

4 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?

4. dudemann

Just wanted to say thanks! BTW you can make the direction line in front by changing the z-order:

Plot(m,“Direction”,IIf(m>Ref(m,-1),colorBlue,colorRed),styleThick,Null,Null,Null,1);

Leave Comment

Please login here to leave a comment.

Back