# MACD Xover & Multi-timeframe EMA

19

Dear Forex Buddies,

I tried to make some MT4 indicators on my own but it is a failure. Hence, I would like to seek for your assistance.

MACD xOver

Short:=Input("MACD Short MA",1,100,12);

Long:=Input("MACD Long MA",1,200,26);

Signal:=Input("MACD Smoothing Period",1,50,9);

Time:=Input("MACD Time Ratio",1,22,5);

Short:=Short*Time;

Long:=Long*Time;

Signal:=Signal*Time;

f1:=2/(short+1);

f2:=2/(long+1);

f3:=2/(signal+1);

mcd:= OscP(short,long,E,\$);

Hist:=mcd-Mov(mcd,signal,E);

sigf:=Ref(Hist,1-Time)/(1-f3)+Mov(mcd,signal,E);

((1-f2)*Mov(CLOSE,long,E)-(1-f1)*Mov(CLOSE,short,E)+sigf)/(f1-f2);

This formula is a MetaStock formula. May I kindly request for MetaTrader 4 formula?

Also, I am looking for some ways to create something shown in the attached. I am looking at both 13 EMA & 26 EMA instead of 5 SMA and 8 SMA.

I would really appreciate if you can assist me in any way.

Thank you and have a nice day.

1869

Formula would be the same. You just need to either write some code for it, or hire a programmer to do it.

https://www.mql5.com/en/docs

Also... Why are you posting this request more than once?

MQL5 Reference - How to use algorithmic/automated trading language for MetaTrader 5
• www.mql5.com
MQL5 Reference - How to use algorithmic/automated trading language for MetaTrader 5
Moderator
2326

19

Jack Thomas:

Formula would be the same. You just need to either write some code for it, or hire a programmer to do it.

https://www.mql5.com/en/docs

Also... Why are you posting this request more than once?

Hi Jack,