Adding a Moving Average to a chart using code

 

Daft entry level question I guess.

How do I add a moving average to a chart using code?

 
What have you tried before asking ?
 
52002651 :

Daft entry level question I guess.

How do I add a moving average to a chart using code?

If you want to add a moving average to a chart, you need to use moving average custom indicator from metatrader platform. Not need to codes.

 
52002651:

Daft entry level question I guess.

How do I add a moving average to a chart using code?

I guess if it is for an existing code, MQL4: Use the iMA( ) function. To learn how to use it with all the parameters, type in meta editor , then highlight and press f1
Reason: