Skip to content
Algo Trade Analytics Docs

ta.range() - Pine Script Function

Returns the difference between the min and max values in a series.

ta.range(source, length) → series int
NameTypeDescription
sourceseries intSeries of values to process.

The difference between the min and max values in the series.

  • na values in the source series are ignored; the function calculates on the length quantity of non-na values.