Control
Settings reference
Everything in the Settings dialog, also settable with api.setSettings().
| Key | Default | Meaning |
|---|---|---|
upColor / downColor | #089981 / #f23645 | Candle body (bull / bear). |
borderUp / borderDown, wickUp / wickDown | = body | Candle borders and wicks. |
showBody / showBorders / showWicks | true | Show each candle part. |
showBid / showAsk / bidColor / askColor | false | Bid / ask lines. |
showLastPriceLine / showCountdown | true | Current price line (hidden when equal to bid / ask) and bar countdown. |
alertLineColor | #ff9800 | Alert lines. |
marginTop / marginBottom | 0.1 | Empty space above / below the data (0–0.45). |
rightMargin | 8 | Bars of space after the last bar. |
logScale | false | Logarithmic price scale. |
fontSize | 12 | Axis text size. |
timezone | "UTC" | "UTC", "local" or an IANA zone ("Europe/London"). |
gridVertical / gridHorizontal | true | Grid lines. |
themeColors | {} | { light: { background, gridV, gridH, crosshair, text }, dark: {…} } |
legendSymbol / legendOHLC / legendChange | true | Status line. |
alertToasts / alertSound | true | Alert pop-up and sound. |