Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 4800
- Rating:
- Published:
- 2018.10.25 18:11
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Ahrens Moving Average is an indicator developed by Richard D. Ahrens.
The indicator was described in the article “Build A Better Moving Average” in the magazine "Technical Analysis of Stocks and Commodities" (October 2013).
It has one configurable parameter:
- Period - calculation period
Calculation:
AHRMA = PrevAHRMA + ((MedianPrice-MedianMA)/Period)
where:
MedianMA = (PrevAHRMA + AHRMA[Period]) / 2.0 MedianPrice = (High + Low) / 2.0
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22369