Coding Custom Moving Averages

 

Greetings to all,

I am attempting to code an indicator that outputs the moving average based on certain parameters. The field that I am more so interested in changing is the "Apply to" field to create my own. For instance I would like to use an OHCC. Can someone provide a little guidance on this. I searched through mql5 and google but there isn't much that I can piecemeal.

Thank you all in advance!

 
Michael Lee:

Greetings to all,

I am attempting to code an indicator that outputs the moving average based on certain parameters. The field that I am more so interested in changing is the "Apply to" field to create my own. For instance I would like to use an OHCC. Can someone provide a little guidance on this. I searched through mql5 and google but there isn't much that I can piecemeal.

Thank you all in advance!

Under <your metatrader directory>/Indicators/Examples you have the source code of ALL Metatraders built-in indicators. 

I think it has there what you are looking for. Grab the Moving Average and modify it.

Reason: