Unisciti alla nostra fan page
- Visualizzazioni:
- 4884
- Valutazioni:
- Pubblicato:
- 2018.09.27 16:06
-
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
TMAGi is an oscillator based on three moving averages and the +DI and -DI lines of the ADX indicator. It indicates the market state: uptrend/downtrend/flat.
There are seven configurable parameters:
- ADX period - ADX calculation period
- Fast MA period - fast MA calculation period
- Middle MA period - middle MA calculation price
- Slow MA period - slow MA calculation price
- SMA slowing - SMA smoothing period
- LWMA slowing - LWMA smoothing period
- Applied price
Calculation:
TSMAGi = SMA(RAW, SMA slowing) TLWMAGi = LWMA(RAW, LWMA slowing)
where:
RAW = (Abs(FastMA - MiddleMA) + Abs(FastMA - SlowMA) + Abs(MiddleMA - SlowMA))*DI
FastMA = SMA(Applied price, Fast MA period) MiddleMA = SMA(Applied price, Middle MA period) SlowMA = SMA(Applied price, Slow MA period)
DI = PlusDI - MinusDI PlusDI, MinusDI - +DI and -DI lines of ADX(ADX period)
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/21843

The Trend Risk indicator

An indicator for constructing Renko bars in the chart sub-window.