ChartDirector 6.2 (.NET Edition)

CandleStickLayer.setColors


Usage

[C#] public void setColors(int upFillColor, int upLineColor, int downFillColor, int downLineColor);
[VB] Public Sub setColors(upFillColor As Integer, upLineColor As Integer, downFillColor As Integer, downLineColor As Integer)

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