Download MetaTrader 5
To add comments, please log in or register
Find out how to use widgets at MQL5.community
MetaQuotes Software Corp.
Moderator
178283
MetaQuotes Software Corp. 2007.06.14 09:29 

FX5_MACD_Divergence:

This is another flavour of the original divergence indicator. It detects divergence between price and MACD indicator and gives Buy or Sell signals according to the divergence type.

Author: Hazem

MQL4 Comments
16319
MQL4 Comments 2007.06.13 15:54  
This is a very good indicator, I use the OsMA version for a long time. Now it's available to MACD, but I would really like to see it for the MACD Oscillator too if it is possible and maybe you have time for it, please! I looked into the code and would make it myself but the truth is I'm not really a programmer and couldn't do it myself :( Your work is really appreciated (at least by me, if that counts :)) and thank you very much!
MQL4 Comments
16319
MQL4 Comments 2007.06.13 18:59  
repainting one candle.
Hazem
32
Hazem 2007.06.14 00:01  
SnaiPear:
This is a very good indicator, I use the OsMA version for a long time. Now it's available to MACD, but I would really like to see it for the MACD Oscillator too if it is possible and maybe you have time for it, please! I looked into the code and would make it myself but the truth is I'm not really a programmer and couldn't do it myself :( Your work is really appreciated (at least by me, if that counts :)) and thank you very much!

What do you mean by MACD oscillator, if the MACD indicator itself is an oscillator ??

Hazem
32
Hazem 2007.06.14 00:15  
Zulu:
repainting one candle.

As I said, divergence is not an immedaite signal and we have to wait until we see the begining of the price reversal.

I consulted with some traders before the releasing of this indicator, and they prefered repainting than delaying the signal. After all this indicator is considered an aiding tool not a stand alone system.

However, I will release a version which will dely the signal one candle, but will not repaint. It is up to you to choose which version you like.

MQL4 Comments
16319
MQL4 Comments 2007.06.14 09:31  
FX5: I don't know then what it's called, but thake a look at this screenshot! It's the simple "MACD" indicator from the indicators list of MT4.
I compared the signals and they are not the same on your version and this what I call "oscillator".
Hazem
32
Hazem 2007.06.14 15:10  
SnaiPear:
FX5: I don't know then what it's called, but thake a look at this screenshot! It's the simple "MACD" indicator from the indicators list of MT4.
I compared the signals and they are not the same on your version and this what I call "oscillator".

The indicator in you chart is the regular MACD, which is used in my indicator. The diffirance is in shape only. My indicator plots MACD as a line instead of the histogram in your chart.

If you are more comportable with the histogram, you can modify the code to change how do you want MACD to appear.

Change the following code:

   SetIndexStyle(2, DRAW_LINE);

to:

   SetIndexStyle(2, DRAW_HISTOGRAM);

and you will have it done :-)

MQL4 Comments
16319
MQL4 Comments 2007.06.14 15:45  
Okay, you got me there. It was too late when i looked at the results I guess ;) But finally I decided to stick to the histogram version so I made the needed corrections. Thanks for replying and posting these indicators! They are very very useful!
MQL4 Comments
16319
MQL4 Comments 2007.06.15 21:27  

"Changes to verion 1.1: This version is directed to traders who do not want repainted singals. The signals are not repainted buy they are delayed one candle. "

Is it not possible to have a version which has the best best of both worlds? I.e. One that doesn't repaint, whilst not being delayed by a candle.

Thanks.
MQL4 Comments
16319
MQL4 Comments 2007.08.14 18:38  
hi...i am using the indicator for sometime now, could you tell me which timeframe its best used on, i check all the timeframes, but find 5 mins comfortable. Also, there are some hidden signals given, which are not the classic MACD divergence, how relaible are those, would apprectiate your reply.
thanks
Hazem
32
Hazem 2007.08.15 20:41  
ashishbhatia:
hi...i am using the indicator for sometime now, could you tell me which timeframe its best used on, i check all the timeframes, but find 5 mins comfortable. Also, there are some hidden signals given, which are not the classic MACD divergence, how relaible are those, would apprectiate your reply.
thanks


I prefer using it on higher timeframes. In my openion 4Hr is the best timeframe for this indicator.

Regarding your second question, I heard that some traders trade only hidden divergens so it reliable as the classical divergence.

Good Luck,

/ /1234
To add comments, please log in or register