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:
- 3226
- Rating:
- Published:
- 2018.06.06 13:10
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The DMA indicator, in which the period parameter is the number of days N in the below calculation formula.
The indicator has two input parameters:
- Period - calculation period
- Applied price - price used for calculation
The default timeframe is M15. The default calculation period: N = 17.
Calculation:
DMA[i] = E*Price[i]+(1-E)*DMA[i-1],where E = D*D, D = C*2/31+(1-C)*2/3, C=A/B, A = Price[i] - Price[i-Period+1], B = Sum(Price[i]-Price[i-1]) from (i-Period+1) to (i).
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20332

The ratio of bullish to bearish candlesticks over the selected period

An oscillator indicator of probable reversals