Macd - page 2

To add comments, please log in or register
Jon
3
Jon  

@matinnn

Hey Thank You for the MACD 2 Colour HISTOGRAM.mq4...It was exactly what I wanted. Thank You again

adilim
3
adilim  

thanks the great indicators.

fxdiva
3
fxdiva  

Thank you very much for sharing!

meengineer
9
meengineer  

Dear Friends,

Thank you fore sharing these indicators, but no one can earn even 10 pips from these indicators. experience of expert traders has proved this.

then please don't waste your time with these toys.

I wish you will be succeed in all times of your trading.

Best Regards.

omoolowe2
6
omoolowe2  

Hi there.I should be thankful if you could supply me the macd with double colour as well as mmPivot indicators for my download.Thank you.

omoolowe2
6
omoolowe2  

Please send me double colour macd histogram as well as mmpivot indicators.

dcfx
3
dcfx  
newtrader1:
Hi I found the 2 color macd.I want to use the width value 5 for histogram. Below is the code. Can some one fix this for me ?

----------------------------------------------------------
/*

************************************************** *******************

MACD Color

************************************************** *******************

*/


#property indicator_separate_window
#property indicator_buffers 6
#property indicator_color1 Red // Red
#property indicator_color2 Lime // LineGreen
#property indicator_color3 Red
#property indicator_color4 Lime // LimeGreen
#property indicator_color5 Silver
#property indicator_color6 Yellow // Yellow

extern int FastEMA=12;
extern int SlowEMA=26;
extern int SignalSMA=9;

double ind_buffer1[];
double ind_buffer2[];
double ind_buffer1b[];
double ind_buffer2b[];
double ind_buffer3[];
double ind_buffer4[];

double b[999999];

int init() {

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);
SetIndexStyle(4,DRAW_LINE,EMPTY,1,indicator_color5 );
SetIndexStyle(5,DRAW_LINE,EMPTY,1,indicator_color6 );
SetIndexBuffer(0,ind_buffer1);
SetIndexBuffer(1,ind_buffer2);
SetIndexBuffer(2,ind_buffer1b);
SetIndexBuffer(3,ind_buffer2b);
SetIndexBuffer(4,ind_buffer3);
SetIndexBuffer(5,ind_buffer4);

IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)+1 );

return(0);

}

int start(){

int limit;
int counted_bars=IndicatorCounted();

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;

for(int i=limit; i>=0; i--) {

b = iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,i)-iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,i);
ind_buffer1=iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,i)-iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,i);

clearBuffers(i);

if (b < 0 ) {
if (b > b[i+1]) {
ind_buffer1 = b;
ind_buffer1b = 0;
} else if (b < b[i+1]) {
ind_buffer1b = b;
ind_buffer1 = 0;
}
} else if (b > 0) {
if (b < b[i+1]) {
ind_buffer2 = b;
ind_buffer2b = 0;
} else if (b > b[i+1]) {
ind_buffer2b = b;
ind_buffer2 = 0;
}
}

ind_buffer3=iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,i)-iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,i);

}

for(i=0; i<limit; i++) {
ind_buffer4=iMAOnArray(ind_buffer3,Bars,SignalSMA,0,MODE_SMA, i);
}

return(0);

}

void clearBuffers (int i) {

ind_buffer1 = NULL;
ind_buffer1b = NULL;
ind_buffer2 = NULL;
ind_buffer2b = NULL;

}
--------------------------------------------------

To do this, you will ONLY need to change (4) numbers IN the following (4) lines:

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);

CHANGE THE "2" IN FOLLOWING FROM THIS:

STYLE_SOLID,2

TO THIS:

STYLE_SOLID,5

(STYLE_SOLID) draws a solid line and the number afterwards is the line width.

I'm pretty sure that will do the trick.

Now SAVE the new file in the experts/indicator folder, REMOVE the previous indicator from your

MT4 platform. CLOSE MT4 and reopen it.

Now RELOAD and test the new indicator.

The histogram bar widths should now be 5 wide.

Regards,

LOL - (yea, this was an OLD post reply but maybe it'll still

be useful for somebody)

James Timpson Jr
26
James Timpson Jr  

Hi All,

does anyone have a MACD MQ4 indicator that changes color based on the MACD's momentum? In other words if the histogram is going up (color blue) and the the current bar's histogram ends lower than the previous, it changes to red. It stays red until the histogram closes higher than the previous bar in which case it turns back to blue, etc.

Not concerned with signal line or when it crosses zero. However, I would want to be able to change the MACD parameters and the colors. Any help appreciated!

Jim

penzevsergey
51
penzevsergey  

Try to reinstall it or change properties.

orionhan
3
orionhan  

completely useless. the diagram make no sense at all

123
To add comments, please log in or register