Download MetaTrader 5

How to add Moving Average Indicator on EA price chart

To add comments, please log in or register
TheLobos
70
TheLobos  

I'm trying to add a standard moving average indicator ( iMA() ) to the price chart of an EA. I've googled quite a bit but all I've found explained is how to add a custom MA to a price chart. 

Does a simple 1-line command exist which allows me to add a standard MA to a price chart or do I have to go the route of using buffers? A link to a canonical explanation of this would be highly appreciated.

Thanks in advance. 

Keith Watford
Moderator
10614
Keith Watford  

Just drag the MA onto the chart, same as any chart.

Or do you mean that you want to use the values in the EA.

It is not clear what you want.

TheLobos
70
TheLobos  
I'm aware of this possiblity, but I don't want to drag the MA onto the chart, I want the MA to be placed on the chart by the EA based on the MA timeframe chosen in the MA setup/config. 
Keith Watford
Moderator
10614
Keith Watford  
I don't think that is possible, but maybe somebody else knows better
Alain Verleyen
Moderator
33501
Alain Verleyen  
GumRai:
I don't think that is possible, but maybe somebody else knows better
Possible only with WinAPI.
TheLobos
70
TheLobos  
Do you by any chance have a link handy where the use of WinAPI for such purposes are explained?
Alain Verleyen
Moderator
33501
Alain Verleyen  
TheLobos:
Do you by any chance have a link handy where the use of WinAPI for such purposes are explained?

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

To add comments, please log in or register