Skip to content

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.basecurrency

The 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.cadence

How 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_code

The 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.currency

The 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.description

The 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.isintraday

Always false here. To test the chart's timeframe, read timeframe.isintraday.

syminfo.lag ​

AmenoScript only
ameno
simple int syminfo.lag

The 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_tickerid

The chart's symbol, even inside request.security, where syminfo.tickerid is the requested one.

syminfo.mincontract ​

pine
simple float syminfo.mincontract

The 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.minmove

The 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.mintick

The 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.minvolume

Always 1 here.

syminfo.period ​

Pine v6No effect here
pine
simple string syminfo.period

Always "D" here, whatever the chart's timeframe. Read timeframe.period for that.

syminfo.pointvalue ​

pine
simple float syminfo.pointvalue

What 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 string

The 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.

ParameterDescription
symbol
simple string
A symbol, such as "binance:BTC/USDT". Given none, it reads "".

syminfo.pricescale ​

pine
simple int syminfo.pricescale

The 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.session

Always "regular" here.

syminfo.ticker ​

pine
simple string syminfo.ticker
syminfo.ticker(symbol) → simple string

The 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.

ParameterDescription
symbol
simple string
A symbol, such as "binance:BTC/USDT". Given none, it reads "".

syminfo.tickerid ​

pine
simple string syminfo.tickerid

The 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.timezone

The 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.type

The 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.unit

What the series' values count, by the Data Catalogue: "USD", "Index", "APR %". Empty where the catalogue doesn't say.

syminfo.volumetype ​

pine
simple string syminfo.volumetype

Always "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.

syminfo.* ​

No effect here

A company's and a contract's facts, which no feed here carries: a text reads "" and a number na.

AmenoScript is compatible with Pine Script v6. Pine Script is a trademark of TradingView, Inc., which has no part in AmenoScript.