an indicator uses Draw.Triangle. When this indicator is used by a strategy and it is not added to the chart via AddChartIndicator, the Draw.Triangle fails with an Exception of null object (not set to an instance).
By using the following clause inside the indicator I could get the strategy to run the indicator successfully
if (this.ChartControl != null) Draw.Triangle(t...);
Thanks,
saltminer
Comment