1. when I am getting the list of Chart Objects I get all Chart Objects no matter what Instrument they were drawn on, and I am unable to tell in my code whether or not I should check that Chart Object against the current prices on the Chart Control.
2. (a bug) If you draw a Chart Object on one Instrument that happens to extend out to values that your next Instrument has in its visible range, then you will see that Chart Object on this Instrument as well which is obviously a bug. This might not be noticed if you are never changing symbols on a chart or your Instruments vary greatly in price.
It ought to be a easy fix to add an Instrument field to the Chart Object class and to filter the visible Chart Objects using this Instrument value so that only the respective Chart Objects for the current Instrument appear on the Chart. Script would also be able to then determine if a Chart Object was acceptable for the current chart by checking the Instrument of the Chart Object against the Instrument of the ChartControl.
I like that the Chart Objects stay on the chart no matter if I change the time frame of the bars for a chart.
Comment