Stochastic

forge.taclassSince Forge API 1
Signaturepython
forge.ta.Stochastic(**inputs: Any) -> None

Where the close sits in the recent high to low range, with a signal line.

Inputs

NameTypeDefaultRange
k_periodint51 to 5000
d_periodint31 to 5000
slowingint31 to 5000
basischoicehigh_low

Indicator: Stochastic oscillator

The highest high and lowest low over K period (the highest and lowest close with close_close)

%K = 100 * sum(close - lowest, slowing) / sum(highest - lowest, slowing)

%D = the simple average of %K over D period

A window with no range reads 50.