fx-chartingDocs
Data

Symbols, spread, bid / ask

What a symbol object contains and how the chart uses it.

FieldExampleUsed for
symbol"EURUSD"The ticker everywhere (header, alerts, scripts, trading).
description"Euro / U.S. Dollar"Legend, search, watchlist.
exchange"FX"Legend, search.
type"forex"forex | crypto | stock | index | commodity — search tabs, contract size (FX lots = 100,000).
digits / pricescale5 / 100000Decimals of prices.
spread0.00012Ask = bid + spread (Ask line, scripts' SYMBOL_ASK) when bars have no `ask`.

Bars may also carry bid and ask; then the Bid / Ask lines use those. The chart draws the price you send as close (bid for most FX feeds, like MetaTrader).