Skip to content

ticker namespace

The ticker namespace builds custom ticker identifiers (IDs) with modifiers like extended sessions, dividend adjustments, or alternative chart types (Heikin Ashi, Renko, Kagi, etc.). Supply these IDs to request.security() or related helpers to load transformed data while keeping your main chart untouched.

Each unique ticker ID counts toward Pine’s 40 unique request.*() call limit. Reuse variables to avoid generating the same ID repeatedly inside loops.

FunctionPurpose
ticker.new(prefix, symbol, session, adjustment, backadjustment, settlement_as_close)Build a base ticker with exchange prefix and optional modifiers.
ticker.modify(tickerid, session, adjustment, backadjustment, settlement_as_close)Adjust an existing ticker ID without specifying prefix/symbol.
ticker.inherit(from_tickerid, symbol)Copy all modifiers (e.g., extended hours, adjustments) from one ticker to another symbol.
ticker.heikinashi(symbol)Request Heikin Ashi values for a symbol.
ticker.renko(symbol, style, param, request_wicks, source)Create a Renko series with custom brick sizing.
ticker.linebreak(symbol, number_of_lines)Generate Line Break chart data.
ticker.kagi(symbol, reversal)Produce Kagi chart data with custom reversal size.
ticker.pointfigure(symbol, source, style, param, reversal)Access Point & Figure values.

All helpers return a ticker ID (simple/series string) suitable for request.security() and friends.

  • ticker.new() expects the exchange prefix ("NASDAQ", "BINANCE", etc.) separate from the symbol. Use syminfo.prefix and syminfo.ticker to derive them dynamically.
  • Non-standard chart types (Heikin Ashi, Renko, Kagi, Line Break, Point & Figure) return synthetic OHLC data; request all four series (open/high/low/close) when plotting candles.
  • Combining ticker.inherit() with ticker.new() makes it easy to apply the same modifiers across a watchlist (e.g., request extended-hour Heikin Ashi data for multiple symbols).
//@version=5
indicator("Renko + Heikin Ashi blend", overlay=false)
// Build a base ticker with extended hours enabled.
baseTicker = ticker.new(syminfo.prefix, syminfo.ticker, session.extended)
// Derive Heikin Ashi and Renko variants.
haTicker = ticker.heikinashi(baseTicker)
renkoTicker = ticker.renko(baseTicker, "ATR", 14, request_wicks=true)
[haOpen, haHigh, haLow, haClose] =
request.security(haTicker, timeframe.period, [open, high, low, close])
[renkoOpen, renkoHigh, renkoLow, renkoClose] =
request.security(renkoTicker, timeframe.period, [open, high, low, close])
plot(haClose, "Heikin Ashi close", color=color.orange)
plot(renkoClose, "Renko close", color=color.teal)
bgcolor(haClose > renkoClose ? color.new(color.green, 85)
: color.new(color.red, 85),
title="HA vs Renko bias")