Skip to content

Candles ​

Customize candle appearance — bar colors, chart type, price marks, and area chart styling.

← Back to Custom Styles overview

Copy the property path into your setCustomStyles config. You only need to include the values you want to change.

Candle bars (candle.bar) ​

PropertyDescriptionTypeExample
candle.bar.upColorFill color when price closes highercolor'#26a69a'
candle.bar.downColorFill color when price closes lowercolor'#ef5350'
candle.bar.noChangeColorFill color when open equals closecolor'#9e9e9e'
candle.bar.upBorderColorBorder color on up candlescolor'#26a69a'
candle.bar.downBorderColorBorder color on down candlescolor'#ef5350'
candle.bar.noChangeBorderColorBorder color on flat candlescolor'#9e9e9e'
candle.bar.upWickColorWick color on up candlescolor'#26a69a'
candle.bar.downWickColorWick color on down candlescolor'#ef5350'
candle.bar.noChangeWickColorWick color on flat candlescolor'#9e9e9e'
candle.bar.compareRuleHow up/down is determined'current_open' | 'previous_close''current_open'

Chart type (candle.type) ​

Set candle.type to control how price is drawn on the chart.

ValueDescriptionExample
candle_solidFilled candlesticks (default)'candle_solid'
candle_strokeHollow candlesticks'candle_stroke'
candle_up_strokeHollow up, filled down'candle_up_stroke'
candle_down_strokeFilled up, hollow down'candle_down_stroke'
ohlcOHLC bars'ohlc'
areaArea / line chart'area'
heikin_ashiHeikin-Ashi candles'heikin_ashi'
typescript
chart.setCustomStyles({
  global: {
    candle: { type: 'candle_solid' },
  },
})

Area chart (candle.area) ​

Use when candle.type is 'area'.

PropertyDescriptionTypeExample
candle.area.lineColorColor of the area chart linecolor'#1677FF'
candle.area.lineSizeThickness of the area linenumber2
candle.area.smoothSmooth/curve the linebooleantrue
candle.area.valuePrice field to plot (close, etc.)string'close'
candle.area.point.showShow dot on the latest pricebooleantrue
candle.area.point.colorColor of the latest-price dotcolor'#1677FF'
candle.area.point.radiusSize of the latest-price dotnumber4

Price marks (candle.priceMark) ​

PropertyDescriptionTypeExample
candle.priceMark.showShow all price marksbooleantrue
candle.priceMark.high.showShow highest price labelbooleantrue
candle.priceMark.high.colorColor of the high price labelcolor'#ff6b6b'
candle.priceMark.high.textSizeFont size of the high labelnumber10
candle.priceMark.low.showShow lowest price labelbooleantrue
candle.priceMark.low.colorColor of the low price labelcolor'#4ecdc4'
candle.priceMark.low.textSizeFont size of the low labelnumber10
candle.priceMark.last.showShow last price markbooleantrue
candle.priceMark.last.upColorLast price color when market is upcolor'#26a69a'
candle.priceMark.last.downColorLast price color when market is downcolor'#ef5350'
candle.priceMark.last.line.showShow line at last pricebooleantrue
candle.priceMark.last.line.styleLast price line style'dashed' | 'solid''dashed'
candle.priceMark.last.text.showShow last price labelbooleantrue
candle.priceMark.last.text.colorText color of last price labelcolor'#FFFFFF'
candle.priceMark.last.text.sizeFont size of last price labelnumber12

Renko (candle.renko) ​

PropertyDescriptionTypeExample
candle.renko.brick.sizeMinimum price move per Renko bricknumber10

Examples ​

Brand candle colors ​

typescript
chart.setCustomStyles({
  global: {
    candle: {
      bar: {
        upColor: '#1976d2',
        downColor: '#d32f2f',
      },
    },
  },
})

High/low price labels ​

typescript
chart.setCustomStyles({
  global: {
    candle: {
      priceMark: {
        high: { color: '#ff6b6b' },
        low: { color: '#4ecdc4' },
      },
    },
  },
})

Area chart ​

typescript
chart.setCustomStyles({
  global: {
    candle: {
      type: 'area',
      area: {
        lineColor: '#1677FF',
        lineSize: 2,
        smooth: true,
      },
    },
  },
})

Developers who need full TypeScript interfaces can use the type reference.