void setExtraColors(int upDownFillColor, int upDownLineColor, int downDownFillColor, int downDownLineColor, double leadValue = -1.7E308);
Configures additional colors for candlesticks.
The standard way to color a candlestick is to color it using the method as mentioned in CandleStickLayer.setColors
, in which "up" is defined as the closing price higher than or equal to the opening price.
In some applications, it may be desirable to vary the candlestick colors based on an alternative definition of "up" and "down", in which "up" is defined as the closing price higher than or equal to that of the previous trading session.
With these two definitions of "up" and "down", a candlestick can have 4 states. It can be "up/up" ("up" as according to both the standard and alternative definitions), "up/down" ("up" according to the standard definition, "down" according to the alternative definition), "down/up" or "down/down".
method can be used to configure the "up/down" and "down/down" colors. If this method is used, the colors configured with CandleStickLayer.setColors
will be considered as the "up/up" and "down/up" colors.
© 2017 Advanced Software Engineering Limited. All rights reserved.