I found a potentially serious bug while testing a strategy in backtesting mode.
I started a backtesting session from a specific start date and continued testing until I reached the current date. At that point, the backtesting stopped because there was no further historical data available, which is expected.
However, when I resumed the backtest two days later, new historical data was available and the backtest continued correctly, but all of my indicators and drawings were gone.
This is particularly problematic because the indicators and drawings represented the entire analysis and work I had built up throughout the backtesting session from the original start date.
Expected behavior
When additional historical data becomes available and I resume the same backtesting session, the existing backtesting state should be preserved, including:
All indicators and their configurations
All drawings and annotations
Chart settings
Strategy/backtesting configuration
Previously accumulated analysis
The new data should simply extend the existing backtest rather than resetting the chart or workspace.
Actual behavior
The new data is available and the backtest resumes, but all indicators and drawings from the previous backtesting session are removed.
This means that I effectively lose all the analysis and work I performed during the backtest from the original start date.
Why this is important
For long-running strategy tests, users can spend a significant amount of time adding indicators, marking important areas, and creating drawings throughout the historical period. Losing all of this when the backtest is resumed after new data becomes available makes it extremely difficult to continue the same testing session.
Could you please investigate whether the backtesting session state is being reset when new data becomes available?
Ideally, resuming the same backtest should preserve the entire existing chart state and simply continue from where the previous session stopped.
