I disable it by un-checking the Enable button in strategy tab of control center.
Later I try to re-enable it by clicking on the 'Enable' button again of control center.
However, this time the strategy does not start up the same way because there are Chart related objects that are not initialized in the same way or at the same time as they were when strategy first loaded.
For example, my code references the ChartBars object. I understand that this object is not valid when the strategy is run from a non-gui environment. However, the strategy is attached to a chart, a gui environment. I also found that the ChartControl.Parent object is likewise not initialized as it was when the strategy was first loaded.
Since the strategy is clearly running in a GUI environment, the GUI related objects should be valid.
Seems like a bug.
Gary
Comment