Author: Andrey N. Bolkonsky
The Ergodic MDI (Mean Deviation Index, MDI) is the double-smoothed Mean Deviation Index (see Momentum, Direction, and Divergence: Applying the Latest Momentum Indicators for Technical Analysis).
The mean deviation is defined as a distance between close price and exponentially smoothed moving average, applied to close price.

Mean Deviation Index by William Blau
Calculation:
The mean deviation is calculated by formula:
md(price,r) = price - EMA(price,r)
where:
Mean Deviation Index is calculated by formula:
MDI(price,r,s,u) = EMA(EMA( md(price,r) ,s),u) = EMA(EMA( price-EMA(price,r) ,s),u)
where:
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/373
Stochastic Momentum Oscillator Blau_SM_Stochastic
Stochastic Momentum Oscillator by William Blau.
Stochastic Momentum Index Blau_SMI
Stochastic Momentum Index by William Blau.
Ergodic Mean Deviation Index Oscillator Ergodic_MDI
Ergodic Mean Deviation Index (MDI) Oscillator by William Blau.
Moving Averages Convergence/Divergence Indicator Blau_MACD
Moving Averages Convergence/Divergence Indicator by William Blau.