Author: Andrey N. Bolkonsky
The Directional Trend Index (DTI) indicator (based on the Composite High/Low Momentum) is described by William Blau in the book "Momentum, Direction, and Divergence: Applying the Latest Momentum Indicators for Technical Analysis".

Directional Trend Index (DTI)Indicator by William Blau
Calculation:
The Directional Trend Index is calculated by formula:
100 * EMA(EMA(EMA( HLM(q) ,r),s),u) 100 * HLM(q,r,s,u)
DTI(q,r,s,u) = ––––––––––––––––––––––––––––––––– = –––––––––––––––––––––––––––––
EMA(EMA(EMA( |HLM(q)| ,r),s),u) EMA(EMA(EMA( |HLM(q)| ,r),s),u)
if EMA(EMA(EMA(|HLM(q)|,r),s),u)=0, then DTI(price,q,r,s,u)=0
where:
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/384
Composite High/Low Momentum Blau_HLM
Composite High-Low Momentum Indicator by William Blau.
Ergodic CSI-Oscillator Blau_Ergodic_CSI
Ergodic CSI-Oscillator by William Blau.
Ergodic DTI-Oscillator Blau_Ergodic_DTI
Ergodic DTI-Oscillator (Directional Trend Index) by William Blau.
BrainTrend2
BrainTrend2 is an indicator of the market trends that assigns colours to candlesticks according to the trend direction.