ChartDirector 7.0 (PHP Edition)
CandleStickLayer.setColors
Usage
setColors(upFillColor, upLineColor, downFillColor, 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
| Argument | Default | Description |
| 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
© 2022 Advanced Software Engineering Limited. All rights reserved.