Appearance
syminfo
How do you place a stop one tick under the low, whatever the symbol? Read syminfo.mintick. The syminfo.* values describe the symbol: its name, what kind of market it is, its tick and what a point of price is worth.
pine
//@version=6
indicator("A tick under the low", overlay = true)
stop = low - syminfo.mintick // one tick below the bar, on any symbol
plot(stop, "Stop", color.red, style = plot.style_circles)
if barstate.islast
label.new(bar_index, high, syminfo.ticker + " " + str.tostring(close, format.mintick))Each value is fixed for the run. It describes the chart's symbol, or inside request.security the requested one, while syminfo.main_tickerid stays the chart's. A symbol is written as the terminal writes it, such as BTC-USD, binance:BTC/USDT, AAPL or ES=F, not always in TradingView's EXCHANGE:SYMBOL form. A company's figures and analysts' ratings come from no feed here, so they read na or "".
syminfo.basecurrency
pine
simple string syminfo.basecurrencyThe currency a pair counts in units: "BTC" in BTC-USD, "EUR" in EUR/USD. Empty for a share, a fund or a future.
syminfo.cadence
AmenoScript only
ameno
simple string syminfo.cadenceHow often the series has a new value, by the Data Catalogue: "1D", "1M", "1Q". Empty for a market, whose bars are the size the chart asks for.
syminfo.cftc_code
pine
simple string syminfo.cftc_codeThe code the CFTC files the symbol's market under in its Commitments of Traders report, on a continuous future's chart such as ES=F. na on any other chart.
It is TradingView's code for the same market.
syminfo.currency
pine
simple string syminfo.currencyThe currency prices are quoted in: "USDT" on binance:BTC/USDT, "USD" on EUR/USD.
Anything that isn't a crypto or forex pair reads "USD", a share listed outside the US included.
syminfo.description
pine
simple string syminfo.descriptionThe symbol's name, such as "Apple Inc", or the symbol itself where no name is known.
syminfo.isintraday
Pine v6No effect here
pine
simple bool syminfo.isintradayAlways false here. To test the chart's timeframe, read timeframe.isintraday.
syminfo.lag
AmenoScript only
ameno
simple int syminfo.lagThe seconds from the end of a value's period to when it was published, by the Data Catalogue: FRED:CPIAUCSL reads 3,888,000, 45 days. 0 for a market, whose bars are public as they close.
It is the catalogue's figure for the series, not each value's own date.
syminfo.main_tickerid
pine
simple string syminfo.main_tickeridThe chart's symbol, even inside request.security, where syminfo.tickerid is the requested one.
syminfo.mincontract
pine
simple float syminfo.mincontractThe smallest size the chart's symbol trades in, where the terminal knows it: 0.000001 on COINBASE:BTCUSD. Elsewhere it reads 1.
A strategy sizes in steps of it where it's known. Where it isn't, a share, a fund, a future or a forex pair sizes in whole units, and anything else in steps of 0.000001, whatever this reads.
syminfo.minmove
pine
simple int syminfo.minmoveThe tick's numerator: syminfo.mintick is syminfo.minmove / syminfo.pricescale, so ES=F, with its 0.25 tick, reads 25 over 100.
syminfo.mintick
pine
simple float syminfo.mintickThe symbol's tick, the smallest step its price moves in: 0.25 on ES=F, 0.01 on most shares.
Where the terminal holds TradingView's tick for the symbol, it is that one. Elsewhere it is worked out from the decimals of the run's last 200 closes, at least two, and the run warns, since an old bar then reads a tick taken from later prices. A leak-safe run works it out from its first bar instead. math.round_to_mintick and format.mintick read it, and every strategy fill lands on it.
syminfo.minvolume
Pine v6No effect here
pine
simple float syminfo.minvolumeAlways 1 here.
syminfo.period
Pine v6No effect here
pine
simple string syminfo.periodAlways "D" here, whatever the chart's timeframe. Read timeframe.period for that.
syminfo.pointvalue
pine
simple float syminfo.pointvalueWhat one point of price is worth in money: 50 on ES=F, so a move of 1.00 on one contract makes $50. 1 on anything but a listed future the terminal knows.
A strategy's sizes, margin and profit all read it.
syminfo.prefix
pine
simple string syminfo.prefix
syminfo.prefix(symbol) → simple stringThe exchange part of a symbol, before its colon: "binance" in binance:BTC/USDT, "" in BTC-USD. As a function, the same of the symbol you give.
| Parameter | Description |
|---|---|
symbolsimple string | A symbol, such as "binance:BTC/USDT". Given none, it reads "". |
syminfo.pricescale
pine
simple int syminfo.pricescaleThe tick's denominator, a power of ten: 100 for a tick of 0.01 or 0.25, 1 for a tick of 5.
syminfo.session
pine
simple string syminfo.sessionAlways "regular" here.
syminfo.ticker
pine
simple string syminfo.ticker
syminfo.ticker(symbol) → simple stringThe symbol without its exchange: "BTC/USDT" in binance:BTC/USDT, and the whole symbol where there is no colon. As a function, the same of the symbol you give.
| Parameter | Description |
|---|---|
symbolsimple string | A symbol, such as "binance:BTC/USDT". Given none, it reads "". |
syminfo.tickerid
pine
simple string syminfo.tickeridThe symbol the script runs on, as the terminal writes it: "BTC-USD", "binance:BTC/USDT", "AAPL". Pass it to request.security to read the same symbol on another timeframe.
syminfo.timezone
pine
simple string syminfo.timezoneThe exchange's timezone, as an IANA name: "America/New_York" for a US share. A coin, and any symbol whose trading hours the terminal doesn't hold, reads "Etc/UTC".
The date functions read their times in it unless you name a timezone. See timezones.
syminfo.type
pine
simple string syminfo.typeThe kind of market: "stock", "fund", "futures", "forex", "crypto", "index" or "economic".
A macro series such as FRED:CPIAUCSL is "economic", and a funding rate, a prediction market, a data pack and a file are each an "index".
syminfo.unit
AmenoScript only
ameno
simple string syminfo.unitWhat the series' values count, by the Data Catalogue: "USD", "Index", "APR %". Empty where the catalogue doesn't say.
syminfo.volumetype
pine
simple string syminfo.volumetypeAlways "base" here.
syminfo.recommendations_*
No effect here
Analysts' ratings of a share. No feed here carries them, so each reads na.
Each is a series int.
syminfo.target_price_*
No effect here
Analysts' price targets for a share. No feed here carries them, so each reads na.
| Name | Type |
|---|---|
syminfo. | series float |
syminfo. | series int |
syminfo. | series float |
syminfo. | series float |
syminfo. | series float |
syminfo. | series float |
syminfo.*
No effect here
A company's and a contract's facts, which no feed here carries: a text reads "" and a number na.
| Name | Type |
|---|---|
syminfo. | simple string |
syminfo. | simple string |
syminfo. | simple int |
syminfo. | simple int |
syminfo. | simple string |
syminfo. | simple string |
syminfo. | simple string |
syminfo. | simple string |
syminfo. | simple int |
syminfo. | simple float |
syminfo. | simple int |