Returns a ticker id for the plain, unmodified version of a symbol: standard candles, regular session, no adjustment or currency conversion.
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
ticker.standard(symbol: simple string (optional)) -> simple string
ticker.standard(symbol: series string (optional)) -> series stringArguments
| Name | Type | Default | Description |
|---|---|---|---|
| symbol | simple/ | the chart's symbol | The 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
//@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