The indicator consists of two lines:
%K compares the latest closing price to the recent trading range.
%D is a signal line calculated by smoothing %K.
The number of periods used in the indicator can be varied according to the purpose for which the Stochastic Oscillator is used: