Hi,
The Candle series colours individual candles automatically based on the price values.
Is there a way to override this logic?
It appears to choose the colour based on whether open > close, whereas I want previous close > close.
I tried playing around with the pen and brush colours, but can only affect the outline colour.
At a guess, it looks like I could sub-class Candle and override the calculateColor method.
Is this the best approach or is there a more direct method?
Many thanks
Roger
How do I control the colours for a Candle?
Re: How do I control the colours for a Candle?
It's OK, I've got it.
I sub-classed Candle, overrode drawValue(int), fiddled the up and down colors and the pen color according to my logic and then called the super-class method.
I sub-classed Candle, overrode drawValue(int), fiddled the up and down colors and the pen color according to my logic and then called the super-class method.