This updates Blau's excellent Candlestick oscillator to be adaptive by using the length of a scaled stochastic indicator and an exponent (for calculating the smoothing coefficient) to obtain the moving average.
Check out the options page for configurable variables.
More info on Ergodic Oscillator: Book: "Momentum, Direction and Divergence" by William Blau