I see that NinjaTrader.NinjaScript.Strategies.ChartControl is an object
accessible to NinjaTrader.NinjaScript.Strategies.Strategy instance.
Of course I can subclass MyChartControl : ChartControl and override
functions.
Also, I see there is an inherited Get/Set property ChartControl yielding an object
of type ChartControl.
So this ChartControl object has a huge number of properties, etc. but sticking
to a basic one, MouseDown is MouseButtonEventHandler UIElement.MouseDown
event, so my question is how I can capture this event; by using the += event
registration approach; or, preferably, using an override of OnMouseDown ???
temporarily puzzled.
So I'm just scratching my head wondering how to activate/use my subclass
MyChartControl in the event dispatching structure. How do I gain access,
for example, to the override "void OnMouseDown(MouseButtonEventArgs e)"
As a basic, I'd like to get X,Y coordinates where Y is PRICE on the chart
where the Mouse is left-clicked, and other such things.
Thanks for some help, please point me in the right direction.
Always appreciated !
Comment