fx-chartingDocs
Control

Settings reference

Everything in the Settings dialog, also settable with api.setSettings().

KeyDefaultMeaning
upColor / downColor#089981 / #f23645Candle body (bull / bear).
borderUp / borderDown, wickUp / wickDown= bodyCandle borders and wicks.
showBody / showBorders / showWickstrueShow each candle part.
showBid / showAsk / bidColor / askColorfalseBid / ask lines.
showLastPriceLine / showCountdowntrueCurrent price line (hidden when equal to bid / ask) and bar countdown.
alertLineColor#ff9800Alert lines.
marginTop / marginBottom0.1Empty space above / below the data (0–0.45).
rightMargin8Bars of space after the last bar.
logScalefalseLogarithmic price scale.
fontSize12Axis text size.
timezone"UTC""UTC", "local" or an IANA zone ("Europe/London").
gridVertical / gridHorizontaltrueGrid lines.
themeColors{}{ light: { background, gridV, gridH, crosshair, text }, dark: {…} }
legendSymbol / legendOHLC / legendChangetrueStatus line.
alertToasts / alertSoundtrueAlert pop-up and sound.