Author: Andrey N. Bolkonsky
Stochastic Momenum (Stochastic Momentum, SM) by William Blau (see Momentum, Direction, and Divergence: Applying the Latest Momentum Indicators for Technical Analysis).
The q-period Stochastic Momentum is defined as a distance of the current close from the midpoint of q bars.

Definition of Stochastic Momentum by William Blau

Calculation:
The formula for calculation of q-period Stochastic Momentum is following:
sm(price,q) = price - 1/2 * [LL(q) + HH(q)]
where:
The smoothed q-period Stochastic Momentum is calculated by formula:
SM(price,q,r,s,u) = EMA(EMA(EMA(sm(price,q),r),s),u)
where:
Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/370
Stochastic Oscillator Blau_TS_Stochastic
Stochastic Oscillator by William Blau.
Stochastic Index Blau_TStochI
Stochastic Index Indicator (normalized smoothed q-period Stochastic) by William Blau.
Stochastic Momentum Index Blau_SMI
Stochastic Momentum Index by William Blau.
Stochastic Momentum Oscillator Blau_SM_Stochastic
Stochastic Momentum Oscillator by William Blau.