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
highest(src: Source, length: number): Seriesta.highest(high, 20)ta.lowest
Lowest value of the last length bars
lowest(src: Source, length: number): Seriesta.highestbars
How many bars back the highest of the last length values is (0 = this bar, the latest on a tie); positive, unlike Pine
highestbars(src: Source, length: number): Seriesta.lowestbars
How many bars back the lowest of the last length values is (positive)
lowestbars(src: Source, length: number): Seriesta.max
Highest value so far (all bars up to this one)
max(src: Source): Seriesta.min
Lowest value so far
min(src: Source): Seriesta.change
Change vs length bars ago (default 1)
change(src: Source, length?: number): Seriesta.cum
Running total (NaN counts as 0)
cum(src: Source): Seriesta.obv
On-balance volume
obv(): Seriesta.accdist
Accumulation / distribution
accdist(): Seriesta.pvt
Price-volume trend
pvt(): Seriesta.nvi
Negative volume index (moves only on bars where volume fell; starts at 1)
nvi(): Seriesta.pvi
Positive volume index (moves only on bars where volume rose; starts at 1)
pvi(): Seriesta.wad
Williams accumulation / distribution
wad(): Seriesta.wvad
Williams variable accumulation / distribution (per bar)
wvad(): Seriesta.iii
Intraday intensity index (per bar)
iii(): Series