How to display OHLC values from Candle series
Posted: Thu Apr 19, 2007 4:56 pm
I'm want to display the OHLC values of a Candle chart using the TAnnotationTool in the DBChart's OnMouseMove event. It appears I'm missing something because I'm not able to get the correct ValueIndex value to use with the TChartValueList properties.
I've tried using the TCursorTool but the OnChange ValueIndex is only set when Snap property is set to True. It also appears to snap to the correct bar based on both the X and Y mouse position. I cannot always use the TCursorTool OnChange or OnSnapChange events to display the OHLC values because it may be turned off.
Any suggestions or help is appreciated.
Thank you in advance.
I've tried using the TCursorTool but the OnChange ValueIndex is only set when Snap property is set to True. It also appears to snap to the correct bar based on both the X and Y mouse position. I cannot always use the TCursorTool OnChange or OnSnapChange events to display the OHLC values because it may be turned off.
Any suggestions or help is appreciated.
Thank you in advance.