Skip to content
Algo Trade Analytics Docs

ta - Pine Script Variable

Built-in indicator series values provided under the ta namespace.

FieldTypeDescription
ta.accdistseries floatAccumulation/distribution index.
ta.iiiseries floatIntraday Intensity Index.
ta.nviseries floatNegative Volume Index.
ta.obvseries floatOn Balance Volume.
ta.pviseries floatPositive Volume Index.
ta.pvtseries floatPrice-Volume Trend.
ta.trseries floatTrue range, equivalent to ta.tr(handle_na = false). It is calculated as math.max(high - low, math.abs(high - close[1]), math.abs(low - close[1])).
ta.vwapseries floatVolume Weighted Average Price. It uses hlc3 as its source series.
ta.wadseries floatWilliams Accumulation/Distribution.
ta.wvadseries floatWilliams Variable Accumulation/Distribution.
  • These series reference the chart’s symbol and timeframe. For parameterized indicators, use the ta.*() functions instead.
//@version=6
indicator("Built-in TA series", overlay=false)
plot(ta.obv, "OBV", color=color.new(color.teal, 0))
plot(ta.pvt, "PVT", color=color.new(color.orange, 0))