I recently encountered an error when implementing the OnMouseDown() method as shown in the documentation. The code provided in the documentation is:
public override void OnMouseDown(ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, ChartAnchor dataPoint) { }
'MyStartegy.OnMouseDown(ChartControl, ChartPanel, ChartScale, ChartAnchor)' no suitable method found to override
The error message shows that I'm trying to use the method with all four parameters as indicated in the documentation (ChartControl, ChartPanel, ChartScale, ChartAnchor), but the compiler cannot find a matching method to override in the parent class.
Is the documentation incorrect regarding the OnMouseDown() method signature? What is the correct signature to use for this method?
Comment