One way to do this would be for the multi-instrument strategy to add a new single-instrument strategy to the Strategies tab of the Control Center for each of the chosen instruments. Then, when it was no longer necessary to monitor an instrument, that instrument's strategy could be removed or disabled by the main multi-instrument strategy. Is it possible to do this within the code of a strategy? How?
Is it true that if a strategy is "Disabled" on the Strategies tab, the request to the data provider for a data stream for that instrument is cancelled?
An alternative approach could be to add a single-instrument strategy for every instument in my instrument list to the Control Center manually and then have the multi-instrument strategy enable/disable only the instances of the single-instrument strategy that are chosen/unchosen. Is there a way to access a list of all the strategies that are running in NT and change the property that "enables" the strategy from within the multi-instrument strategy?
Yet another possibility would be to add a second (tick level) data series for each instrument to my multi-instrument strategy and disable all but the chosen data series to keep the bandwidth requirements manageable. Is it possible to disable/enable a data series from within OnBarUpdate()? I am assuming it is not possible to add or remove a data series from within OnBarUpdate(). Is that true?
Any suggestions for the best way to approach this problem will be greatly appreciated.
Comment