ta.range() - Pine Script Function
ta.range()
Section titled “ta.range()”Overview
Section titled “Overview”Returns the difference between the min and max values in a series.
Syntax
Section titled “Syntax”ta.range(source, length) → series intParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| source | series int | Series of values to process. |
Returns
Section titled “Returns”The difference between the min and max values in the series.
Remarks
Section titled “Remarks”- na values in the source series are ignored; the function calculates on the length quantity of non-na values.