One element is missing, "Price applied to".
Thanks dear, just what I needed. I wanted median price in fact, but never mind I will add it myself to the function Price(int shift).
Nikolay Georgiev #:
I needed this fix in another project so I changed a little the code and I decided to upload the result here. I know it is an old topic but still if someone needs this "Price applied to" added
There is a mistake in line 172, the "lsum-=Price(pos);" should be "lsum-=Price(i);" instead. This causes the LWMA doesn't show correctly.
Attached the fixed code. I also added the median price option.
Note: you need to click Go to discussion link to see the attachment.
Indicators: Moving Averages, MA
- 2005.11.29
- www.mql5.com
Moving Averages, MA: Author: MetaQuotes Software Corp...
Files:
Moving_Average.mq4
13 kb
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
Moving Averages, MA:
Author: MetaQuotes Software Corp.