Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 3637
- Rating:
- Published:
- 2018.08.23 12:44
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Power weighted moving average.
The indicator has three input parameters:
- Period - calculation period
- Power
- Applied price
Calculation:
PWMA = SUM(Applied price(i) * (i^Power), Period) / SUM(i^Power, Period)
If Power is 1, МА is identical to LWMA
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21415