Indicators: MACD Divergence - page 4

 
spider89:
Hello you will have this indicator for mt4 thanks
Divergence indicator based on MACD, is the conversion of the mql4 indicator https://www.mql5.com/en/code/7116. The original indicator has been completely rewritten to improve its performance and correct a small bug. It is also more fun to rewrite it than to simply convert it.
FX5_MACD_Divergence
FX5_MACD_Divergence
  • votes: 10
  • 2007.06.14
  • Hazem
  • www.mql5.com
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.
 
hi, someone could help me changing the original macd divergence to display different colors while going up (bullish moment) and going down (bearish moment) in main macd?

look this sample that I got from another trade system that use this macd with 2 color .

sample graph of a macd with bullish and bearish colors in the main macd line)
 

Thank to the owner of this indicator.

Thank you guys for sharing good idea.

@zemo Nice MACD indicator picture, which site did you get that?

@ Sergey Golubev thank for good explanation. Is it possible to code a MACD indicator which Zemo has posted? It look very interesting.

Thank you. 

 
 
Chris_Lazarius:

Thank to the owner of this indicator.

Thank you guys for sharing good idea.

@zemo Nice MACD indicator picture, which site did you get that?

@ Sergey Golubev thank for good explanation. Is it possible to code a MACD indicator which Zemo has posted? It look very interesting.

Thank you. 

 

this macd I got the picture from invest charts" plataform... that has it with color direction change

 
Armen:

everything is fine, but if you overlay the original MACD and this one on each other, you can see that for some reason the main and signal line between them do not coincide.

In this indicator, the arrows are drawn with an offset. And when the arrow falls on the waves, almost adjacent to the upper or lower edge of the sub-window, there is a slight rescaling. Therefore, there may be inconsistencies with the original MACD on such sections, because each indicator is drawn in its own coordinate plane. But the lines and values are actually identical. This can be checked by levelling the influence of the parameter #define ARROWS_DISPLACEMENT and instead of 0.0001, add two more zeros after the decimal point, putting 0.000001.

Thanks to the author for his work.

 

No posts from 2016 to today. I think it is time to wake up this thread.

Mr Alain Verleyen is it possible to add push notification to the indicator, please?

And thank you very much publishing to this great creation. I cant believe it is only using 1 candle for confirmation. I've never seen a faster divergence indicator than this. Simply amazing!
 
Alain Verleyen:

Yes weird. Anyway, did you read this "useless answer" above in the topic ?

I let you read it, understand it, and use it to fix your code. If you don't found I will give you the answer tomorrow 
Hi Alain, please can you help me with the solution to this. I have recently started learning how to code and after finding your indicator and this thread, i tried to fix the code but no luck. Any help will be appreciated. Thanks
 
Stephen Paul:
Hi Alain, please can you help me with the solution to this. I have recently started learning how to code and after finding your indicator and this thread, i tried to fix the code but no luck. Any help will be appreciated. Thanks
Fix what code ? Show your code and explain the problem you have.
 
Alain Verleyen:
Fix what code ? Show your code and explain the problem you have.
Sorry for not being clear. I am attempting to make the indicator signal appear on the second candle instead of the third candle (if at all possible). I see you posted a clue on this and I have tried tweaking your code with the little knowledge i have but no luck. I have messed around with rates_total to macdbuffershift but not quite sure where to be looking. 
 
Stephen Paul:
Sorry for not being clear. I am attempting to make the indicator signal appear on the second candle instead of the third candle (if at all possible). I see you posted a clue on this and I have tried tweaking your code with the little knowledge i have but no luck. I have messed around with rates_total to macdbuffershift but not quite sure where to be looking. 

You missed the point. The post you are referring to was about HOW to get the signal from an EA, you obviously can't have it by just getting the last 2 candles values, you need the third.

It's NOT possible to have an early signal because to detect a divergence you need a peak/trough and for that you need an additional candle which CLOSE. So when candle 0 just open, that means candle 1 is close, and it allow to confirm the peak/trough at candle 2. If someone want to modify the indicator to use unconfirmed peak/trough to have early signal, one can do it, but I will not help to that because it's a bad idea as you will get a lot of bad signals.

What could be done is to DRAW the signal on candle 1 or even candle 0, but that will change nothing, and I decided to draw the signal on the candle which actually show the peak/trough.