Sidechair

ticker.standard()

Browse the reference

Returns a ticker id for the plain, unmodified version of a symbol: standard candles, regular session, no adjustment or currency conversion.

Try it in the editor

When a chart uses a non-standard type such as Heikin Ashi or Renko, or modifiers such as extended hours or dividend adjustment, syminfo.tickerid carries them, so request.security with it returns modified values. ticker.standard(symbol) strips every modifier and gives back the id for ordinary candles of the plain symbol.

Use it to read the real open, high, low and close of the instrument whatever chart type the user picked.

Syntax

Pine Script
ticker.standard(symbol: simple string (optional)) -> simple string
ticker.standard(symbol: series string (optional)) -> series string

Arguments

NameTypeDefaultDescription
symbolsimple/series stringthe chart's symbolThe ticker id to convert back to standard candles. Leave it out to use the chart's own symbol.

Returns

simple/series string: A ticker id string with all modifiers removed. Pass it to request.security.

Remarks

  • On a standard chart the id comes back unchanged.
  • The session, adjustment and currency modifiers are removed along with the chart-type conversion.

Example

Pine ScriptReal close on any chart typeOpen in editor
//@version=6
indicator("Real close", overlay = true)
realId = ticker.standard(syminfo.tickerid)
realClose = request.security(realId, timeframe.period, close)
plot(close, "Close", color.gray)
plot(realClose, "Real close", color.orange)

See also

Runs on Sidechair