Download MetaTrader 5
To add comments, please log in or register
Sell your CPU capacity and earn money!
TheLobos
70
TheLobos 2016.04.14 09:46 

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
7899
Keith Watford 2016.04.14 10:44  

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 2016.04.14 10:53  
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
7899
Keith Watford 2016.04.14 11:02  
I don't think that is possible, but maybe somebody else knows better
Alain Verleyen
Moderator
28548
Alain Verleyen 2016.04.14 12:44  
GumRai:
I don't think that is possible, but maybe somebody else knows better
Possible only with WinAPI.
TheLobos
70
TheLobos 2016.04.14 13:45  
Do you by any chance have a link handy where the use of WinAPI for such purposes are explained?
Alain Verleyen
Moderator
28548
Alain Verleyen 2016.04.14 15:56  
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