Author: Andrey N. Bolkonsky
Stochastic Momentum Index (SMI) by William Blau is based on Stochastic Momentum Indicator (see Momentum, Direction, and Divergence: Applying the Latest Momentum Indicators for Technical Analysis).
Stochatic Momentum Index is normalized (to half of q-period price range) and mapped into the [–100,+100] interval. The values of SMI is interpreted as overbought (positive) and oversold (negative) states of the market.

Calculation:
Stochastic Momentum Index is calculated by formula:
100*EMA(EMA(EMA( price-1/2*[LL(q)+HH(q)] ,r),s),u) 100 * SM(price,q,r,s,u)
SMI(price,q,r,s,u) = --------------------------------------------------------------- = -------------------------------------------------
EMA(EMA(EMA( 1/2*[HH(q)-LL(q)] ,r),s),u) EMA(EMA(EMA( 1/2*[HH(q)-LL(q)] ,r),s),u)
where:
Input parameters:
Note:
Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/371
Stochastic Momentum Blau_SM
Stochastic Momentum by William Blau.
Stochastic Oscillator Blau_TS_Stochastic
Stochastic Oscillator by William Blau.
Stochastic Momentum Oscillator Blau_SM_Stochastic
Stochastic Momentum Oscillator by William Blau.
Mean Deviation Index Blau_MDI
Mean Deviation Index (MDI) by William Blau.