stochastic

stochastic(series, period)
Parameters
  • series (series) – Input series

  • period (integer) – Input period

Returns

series

Returns the stochastic oscillator.

\[\mathrm{stoch} = \frac{\mathrm{series}-\mathrm{lowest}(\mathrm{series}, \mathrm{period})}{\mathrm{highest}(\mathrm{series}, \mathrm{period})-\mathrm{lowest}(\mathrm{series}, \mathrm{period})}\]