C:\Program Files\MetaTrader 4.0\experts\indicators\Moving Averages.mq4
Attached in case you can't find it .
Files:
movinglaverages.mq4
6 kb
msbusinessil:
C:\Program Files\MetaTrader 4.0\experts\indicators\Moving Averages.mq4
Attached in case you can't find it .
That one is the customer indicator version of the moving average, for some reason it doesnt have "applied to" .
It appears to be fixed to the close price, I wanted to see the source code for the regular moving average that does have the applied to input variable
Hi,
Can any one help me building an EA for moving average where it can open a trade when fast moving average cross slow moving average and close the trade when fast moving average cross slow moving average again at the very next point?
Thanks
Ian Venner:
Anyone know where I can find the source code to moving average ? I want to see how the "applied to" section is coded, especially the weighted close, and the typical price.
MQL5\Include\MovingAverages.mqh same to MQL4
Ian Venner: I want to see how the "applied to" section is coded, especially the weighted close, and the typical price.
- Look in the code base, there are lots of examples.
- An input variable of applied price.
- Either they compute it directly.
- Or they call SMA(1, input)

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Anyone know where I can find the source code to moving average ? I want to see how the "applied to" section is coded, especially the weighted close, and the typical price.