ta.stoch() - Pine Script Function
ta.stoch()
Section titled “ta.stoch()”Overview
Section titled “Overview”Stochastic. It is calculated by a formula: 100 * (close - lowest(low, length)) / (highest(high, length) - lowest(low, length)).
Syntax
Section titled “Syntax”ta.stoch(source, high, low, length) → series floatParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| source | series int/float | Source series. |
Returns
Section titled “Returns”Stochastic.
Remarks
Section titled “Remarks”- na values in the source series are ignored.