Add macd indicator to EA

 
Add macd indicator to EA.I want to add an extra feature to my robot. I want to buy if MACD gives a buy signal and sell if it gives a sell signal.
 
Kutluhan Yesilkaya :
Add macd indicator to EA.I want to add an extra feature to my robot. I want to buy if MACD gives a buy signal and sell if it gives a sell signal .

Start small: create an indicator handle in OnInit. If you have any difficulties - ask a question.

 

An example of how to work with the iMACD indicator:

iMACD value on chart

How to start with MQL5
How to start with MQL5
  • 2020.04.09
  • www.mql5.com
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors...
 
Vladimir Karputov:

An example of how to work with the iMACD indicator:

iMACD value on chart

There are no trading codes. Is this just amcd indicator codes?

 
Kutluhan Yesilkaya :

There are no trading codes. Is this just amcd indicator codes?

This is the minimum - how to work with the indicator correctly.

This code needs to be supplemented with trading functionality.