I am running NT 8.0.18.0 64-bit
During State.Configure or State.DataLoaded, I would like to programmatically change the Strategy's this.Name to reflect how the Strategy has been configured. This provides a much more informative name and better sorting mechanism on the Control Center tabs.
This appears to work for normal operation of a Strategy, but fails when backtesting (the dreaded "Object reference not set..." message appears when running the backtest).
I could avoid the problem by disabling this code when backtesting.
Other than the problem with backtesting, is it safe to modify this.Name during State.Configure or State.DataLoaded?
Thank you
Comment