Moving Average code

[Deleted]  

Hi,

Is there anywhere I can find the mq4 file for the Moving Average indicator, the default one that comes with MT4?

It's one of the only indicators that will work when applied to another indicator window that I am using but I need the code so I can try to amend it creating an envelope/band type effect using 2 MAs.

I've already tried a few other indicators but they either won't apply to the separate indicator window or doesn't maintain a constant distance between the upper band and the lower band which is what I want.

The closest which seems to work only with the main chart window even when dragged into the correct window is the following:

https://www.mql5.com/en/code/7975

Any advice will be greatly appreciated.

Cheers.

Simon Gniadkowski
17175
silvergerbil:

Hi,

Is there anywhere I can find the mq4 file for the Moving Average indicator, the default one that comes with MT4?

Is this what you are looking for ?   https://www.metatrader5.com/en/terminal/help/indicators/trend_indicators/ma    
[Deleted]  
RaptorUK:
Is this what you are looking for ?   https://www.metatrader5.com/en/terminal/help/indicators/trend_indicators/ma    



Thanks RaptorUK.

Your link contained a full source code link and I changed indicator_chart_window to indicator_separate_window which has given me exactly what I was looking for. Cheers!