Using the chart instrument selector and the the StringValueChanged event, I am also able to capture when a chart instrument is changed and subscribe to OnMarketData if necessary.
My problem is identifying the old instrument when a chart instrument is changed. Without the old instrument, I am not able to unsubscribe from OnMarketData.
Do you have any suggestions? My fallback is to keep an internal list of all chart instruments and then query the list when a change occurs.
Thanks, Greg
Comment