Macd Indicator Needed - page 2

 

GREAT WORK

THANKYOU

 
 

4-colored MACD

Check out the 4-colored MACD too. Kewl !

https://www.mql5.com/en/forum/177300

 

Re MACD Color

Hi Newtrader

I just changed the 2 in these lines to 5 Is that what you wanted?

SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,2,Red);

SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,2,Lime) ;

SetIndexStyle(2,DRAW_HISTOGRAM,STYLE_SOLID,2,indic ator_color3);

SetIndexStyle(3,DRAW_HISTOGRAM,STYLE_SOLID,2,indic ator_color4);

Have fun

ejpdl

Files:
 

Hi, fellow members

Greetings

I need this MACD indicator, the followings code is copied from VT Trader, can some one help me to code it on Metatrader.

Attach the screen shot & code for kind assit.

The codes are:

{MACD}

Fast:= Mov(Pr,perShort,maTp)-Mov(Pr,perLong,maTp);

Signal:= Mov(Fast,Sig,TpS);

{OsMA colored histogram}

OsMA:= Fast-Signal;

OsMA:= Fast;

OsMAUp:= if(OsMA>=ref(OsMA,-1),OsMA,null);

OsMADown:= if(OsMA<ref(OsMA,-1),OsMA,null);

Thks

Files:
 

Is there a version of MACD with LWMA instead of EMA in the settings ?

 

Need EXPERT Help with EA's MACD code

I'm calculating MACD and the histogram values as such and putting an arrow on the chart. Periodically I will get a false crossover signal. Can anyone tell me why?

Thanks very much in advance,

E

MacdCurrent=iMACD(NULL,0,8,17,9,PRICE_CLOSE,MODE_MAIN,0);

MacdPrevious=iMACD(NULL,0,8,17,9,PRICE_CLOSE,MODE_MAIN,1);

SignalCurrent=iMACD(NULL,0,8,17,9,PRICE_CLOSE,MODE_SIGNAL,0);

SignalPrevious=iMACD(NULL,0,8,17,9,PRICE_CLOSE,MODE_SIGNAL,1);

MacdHist = MacdCurrent - SignalCurrent;

if(MacdHist > 0 && MacdCurrent > SignalCurrent && MacdPrevious < SignalPrevious)

-- Draw Arrow

if(MacdHist < 0 && MacdCurrent SignalPrevious)

-- Draw Arrow

 

HELP: Who has this indicator?

Who has this indicator? Thanks a lot!

Files:
111.jpg  75 kb
 
etrade:
Is there a version of MACD with LWMA instead of EMA in the settings ?

I did it and place it over here:

https://www.mql5.com/en/forum/178018

 

Hi,

Can anyone help to code me this indicator?

Color MACD with fast line added.

https://c.mql5.com/forextsd/forum/32/macd_indicator.jpg

Thks

znny:
Hi, fellow members

Greetings

I need this MACD indicator, the followings code is copied from VT Trader, can some one help me to code it on Metatrader.

Attach the screen shot & code for kind assit.

The codes are:

{MACD}

Fast:= Mov(Pr,perShort,maTp)-Mov(Pr,perLong,maTp);

Signal:= Mov(Fast,Sig,TpS);

{OsMA colored histogram}

OsMA:= Fast-Signal;

OsMA:= Fast;

OsMAUp:= if(OsMA>=ref(OsMA,-1),OsMA,null);

OsMADown:= if(OsMA<ref(OsMA,-1),OsMA,null);

Thks
Reason: