If I plot an object on the chart (gdi or plotStyle), can I subscribe to a mouse event when the user clicks on the plot object?
The idea here is that I want to plot an icon on the screen color coding the algo used to exec the trade on the selected bar. I'd like to
1. Get the DateTime for the bar
2. (ideally) get the windows xy location for the bar on the screen
I would use this functionality to show the user some text in a floating window, in the mc.net statusbar, the chart toolbar/statusbar, or in an external message window.
Plot object mouse click event?
-
- Posts: 64
- Joined: 15 Aug 2011
- Has thanked: 3 times
- Been thanked: 50 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Plot object mouse click event?
Hello riverTrader,
Mouse events in MultiCharts .NET work the same way as in regular MultiCharts.
Mouse buttons and coordinates can be captured across the whole chart window.
Mouse events in MultiCharts .NET work the same way as in regular MultiCharts.
Mouse buttons and coordinates can be captured across the whole chart window.