Plot object mouse click event?

Questions about MultiCharts .NET and user contributed studies.
Posts: 64
Joined: 15 Aug 2011
Has thanked: 3 times
Been thanked: 50 times

Plot object mouse click event?

Postby riverTrader » 03 Aug 2012

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 statusbar, the chart toolbar/statusbar, or in an external message window.

User avatar
Henry MultiСharts
Posts: 8479
Joined: 25 Aug 2011
Has thanked: 1211 times
Been thanked: 2719 times

Re: Plot object mouse click event?

Postby Henry MultiСharts » 06 Aug 2012

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.

Return to “MultiCharts .NET”