ChartDirector 7.0 (Java Edition)

CandleStickLayer.setColors


Usage

public void setColors(int upFillColor, int upLineColor, int downFillColor, int downLineColor)

Description

Configures the colors for candlesticks.

The standard way to color a candlestick is to color it based on whether it is on an "up" or "down" trading session, in which "up" is defined as the closing price higher than or equal to the opening price, otherwise it is "down".

Arguments

ArgumentDefaultDescription
upFillColor(Mandatory)The fill color for "up" trading sessions.
upLineColor(Mandatory)The line color for "up" trading sessions.
downFillColor(Mandatory)The fill color for "down" trading sessions.
downLineColor(Mandatory)The line color for "down" trading sessions.

Return Value

None