I am creating a new indicator; most is going well except for two issues.
The indicator will be used while the market is opened and for review after the market is closed.
The user clicks on areas of the chart while pressing a configurable key and the indicator draws objects on the chart via flags set in the mouse click handler and drawn in the next OnBarUpdate.
#1
When the market is closed, I cannot get the OnBarUpdate to fire after the initial loading of the data. ForceRefresh and Update calls do not force a OnBarUpdate call.
#2
When the user clicks on a candlestick (which is OK) and is pressing a valid key the candlestick series (all the candlestick) is selected. I tried setting e.handled to true in the mouse click event handler, no joy.
I am not sure which is called first, my indicator mouse click handler or the logic to select the candlesticks.
Ideas?
Thanks,
Mark

Comment