Author: Andrey N. Bolkonsky
Stochastic Oscillator is based on Stochastic Index by William Blau (see Momentum, Direction, and Divergence: Applying the Latest Momentum Indicators for Technical Analysis).

Stochastic Oscillator by William Blau
Calculation:
Stochastic Oscillator is defined as follows:
TS_Stochastic(price,q,r,s,u) = TStochI(price,q,r,s,u)
Signal line is calculated using the smoothing:
SignalLine(price,q,r,s,u,ul) = EMA(TS_Stochastic(price,q,r,s,u) ,ul)
Input parameters:
Note:
Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/365
Stochastic Index Blau_TStochI
Stochastic Index Indicator (normalized smoothed q-period Stochastic) by William Blau.
Stochastic Indicator Blau_TStoch
Stochastic Indicator (smoothed q-period Stochastic) by William Blau.
Stochastic Momentum Blau_SM
Stochastic Momentum by William Blau.
Stochastic Momentum Index Blau_SMI
Stochastic Momentum Index by William Blau.