Data
Symbols, spread, bid / ask
What a symbol object contains and how the chart uses it.
| Field | Example | Used 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 / pricescale | 5 / 100000 | Decimals of prices. |
spread | 0.00012 | Ask = 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).