Help in Creating MACD AFL with EMA Smoothing for AmiBroker

#1
HI guys,

I want Help in Creating MACD AFL with EMA Smoothing for AmiBroker.

Fast avg = 3ema
Slow avg = 13ema
Signal avg = 3ema

I want to smooth all of it with 4ema instead of price close at default. (like we do in spider software)

I dont know how to right a alf and would highly appreciate someone help in doing so.

Thanks in advance.
 

johnnypareek

Well-Known Member
#5
HI guys,

I want Help in Creating MACD AFL with EMA Smoothing for AmiBroker.

Fast avg = 3ema
Slow avg = 13ema
Signal avg = 3ema

I want to smooth all of it with 4ema instead of price close at default. (like we do in spider software)

I dont know how to right a alf and would highly appreciate someone help in doing so.

Thanks in advance.
Hi,

As what I understood is that u want indicator not on close, but, 4 EMA of close. Below is with this-

HTML:
Plot(C,"",1,128);

C=EMA(C,4);
Plot(MACD(3,13),"MACD 3-13",4,32768);
Plot(EMA(MACD(3,13),3),"Signal 3",3,32768);
johnny
 

Similar threads