Guarda come scaricare robot di trading gratuitamente
Ci trovi su Telegram!
Unisciti alla nostra fan page
Unisciti alla nostra fan page
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
- Visualizzazioni:
- 2996
- Valutazioni:
- Pubblicato:
- 2018.07.13 16:00
-
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
The indicator represents two moving averages calculated based on the range of one-direction candlesticks.
One MA is for bullish range, the other one is for bearish candlesticks.
It has two configurable parameters:
- Period - calculation period (candlestick range)
- Applied price - calculation price
Calculations:
UP = SumUp / CountUp
DN = SumDn / CountDn
where:
SumUp = Sum of SMA(Applied price, 1) for all bullish candlesticks within the Period
SumDn = Sum of SMA(Applied price, 1) for all bearish candlesticks within the Period
CountUp - number of bullish candlesticks within the Period
CountDn - number of bearish candlesticks within the Period
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/21316

Difference of two moving averages within the range of one-direction candlesticks

A market state indicator