Join our fan page
- Views:
- 7483
- Rating:
- Published:
- 2011.07.14 16:53
- Updated:
- 2016.11.22 07:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Author: Andrey N. Bolkonsky
Ergodic DTI-Oscillator (based on Directional Trend Index) is described by William Blau in the book "Momentum, Direction, and Divergence: Applying the Latest Momentum Indicators for Technical Analysis".
- WilliamBlau.mqh must be placed in terminal_data_folder\MQL5\Include\
- Blau_Ergodic_DTI.mq5 must be placed in terminal_data_folder\MQL5\Indicators\
Ergodic DTI-Oscillator by William Blau
Calculation:
The Ergodic DTI-Oscillator is defined as follows:
Ergodic_DTI(q,r,s,u) = DTI(q,r,s,u)
SignalLine(q,r,s,u,ul) = EMA( Ergodic_DTI(q,r,s,u) ,ul)
where:
- Ergodic_DTI() - Ergodic Line - Directional Trend Index DTI(q,r,s,u);
- SignalLine() - Signal Line - EMA(ul), applied to Ergodic Line;
- ul - smoothing period of a Signal Line.
- graphic plot #0 - Ergodic Line (Directional Trend Index тренда):
- q - number of bars, used in calculation of DTI (by default q=2);
- r - period of the 1st EMA, applied to DTI (by default r=20);
- s - period of the 2nd EMA, applied to result of the 1st smoothing (by default s=5);
- u - period of the 3rd EMA, applied to result of the 2nd smoothing (by default u=3);
- graphic plot #1 - Signal Line:
- ul - smoothing period of a Signal Line - EMA(ul), applied to Ergodic (by default ul=3);
- q>0;
- r>0, s>0, u>0. If r, s or u are equal to 1, smoothing is not used;
- ul>0. If ul=1, the Signal Line and Ergodic Line are the same;
- Min. rates = (q-1+r+s+u+ul-4+1).
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/385
![Directional Trend Index Blau_DTI](https://c.mql5.com/i/code/indicator.png)
Directional Trend Index (DTI) Indicator by William Blau.
![Composite High/Low Momentum Blau_HLM](https://c.mql5.com/i/code/indicator.png)
Composite High-Low Momentum Indicator by William Blau.
![BrainTrend2](https://c.mql5.com/i/code/indicator.png)
BrainTrend2 is an indicator of the market trends that assigns colours to candlesticks according to the trend direction.
![BrainTrend2Sig](https://c.mql5.com/i/code/indicator.png)
BrainTrend2Sig is an indicator of the market trends that assigns colors to candlesticks according to the trend direction.