How do I control the colours for a Candle?
Posted: Fri Sep 24, 2010 5:43 pm
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
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