Functions

Ranges · volume

16 names in this group.
Each comes with its signature and an example.

ta.highest

Highest value of the last length bars

signature
highest(src: Source, length: number): Series
example
ta.highest(high, 20)

ta.lowest

Lowest value of the last length bars

signature
lowest(src: Source, length: number): Series

ta.highestbars

How many bars back the highest of the last length values is (0 = this bar, the latest on a tie); positive, unlike Pine

signature
highestbars(src: Source, length: number): Series

ta.lowestbars

How many bars back the lowest of the last length values is (positive)

signature
lowestbars(src: Source, length: number): Series

ta.max

Highest value so far (all bars up to this one)

signature
max(src: Source): Series

ta.min

Lowest value so far

signature
min(src: Source): Series

ta.change

Change vs length bars ago (default 1)

signature
change(src: Source, length?: number): Series

ta.cum

Running total (NaN counts as 0)

signature
cum(src: Source): Series

ta.obv

On-balance volume

signature
obv(): Series

ta.accdist

Accumulation / distribution

signature
accdist(): Series

ta.pvt

Price-volume trend

signature
pvt(): Series

ta.nvi

Negative volume index (moves only on bars where volume fell; starts at 1)

signature
nvi(): Series

ta.pvi

Positive volume index (moves only on bars where volume rose; starts at 1)

signature
pvi(): Series

ta.wad

Williams accumulation / distribution

signature
wad(): Series

ta.wvad

Williams variable accumulation / distribution (per bar)

signature
wvad(): Series

ta.iii

Intraday intensity index (per bar)

signature
iii(): Series

npm · GitHub