Skip to content

Documentation / @finchart/indicators / stochastic

Function: stochastic() ​

stochastic(source, options?): Stochastic

Defined in: indicators/src/factories.ts:2468

Stochastic — where the close sits within the window's high-low range. 0 to 100. Like atr, it uses high, low, and close together, so there's no value overload. If the window's high equals its low (a zero denominator), the result is null — neither 0 nor 100.

Parameters ​

source ​

Source<OHLC>

options? ​

StochasticOptions = {}

Returns ​

Stochastic