Stochastic Oscillator
Created by George Lane, the Stochastic Oscillator, also known as KDJ Index, is a momentum oscillator that compares current price with recent highs and lows and is presented on a scale of 0 to 100. [Discuss] đź’¬

[...]
Parameters
lookbackPeriods int - Lookback period (N) for the oscillator (%K). Must be greater than 0. Default is 14.
signalPeriods int - Smoothing period for the signal (%D). Must be greater than 0. Default is 3.
smoothPeriods int - Smoothing period (S) for the Oscillator (%K). “Slow” stochastic uses 3, “Fast” stochastic uses 1. Must be greater than 0. Default is 3.
kFactor double - Optional. Weight of %K in the %J calculation. Must be greater than 0. Default is 3.
dFactor double - Optional. Weight of %D in the %J calculation. Must be greater than 0. Default is 2.
movingAverageType MaType - Optional. Type of moving average (SMA or SMMA) used for smoothing. Default is MaType.SMA.
Historical quotes requirements
You must have at least N+S periods of quotes to cover the warmup periods.
…