Weighted Moving Average Different in MQL4 and MQL5?
For some reason the iMAOnArray() function for a linear-weighted moving average in MQL4 produces different results to the WMA calculation function found in examples for MQL5:
Is it something wrong with this custom function or with iMAonArray()? Is there any other way to substitute MQL4 iMAonArray() than with such custom functions?
Check out this Migrate MT-4 to MT-5 article. The MT-5 IMAOnArray() version is lengthy. Hope it works OK.
- 2010.05.17
- Sergey Pavlov
- www.mql5.com
The problem has been resolved and the topic can now be closed :).
For some reason the iMAOnArray() function for a linear-weighted moving average in MQL4 produces different results to the WMA calculation function found in examples for MQL5:
Is it something wrong with this custom function or with iMAonArray()? Is there any other way to substitute MQL4 iMAonArray() than with such custom functions?