Skip to content

[codex] Fix indicator warm-up window seed#9437

Open
aiSynergy37 wants to merge 1 commit intoQuantConnect:masterfrom
aiSynergy37:codex/fix-indicator-history-window
Open

[codex] Fix indicator warm-up window seed#9437
aiSynergy37 wants to merge 1 commit intoQuantConnect:masterfrom
aiSynergy37:codex/fix-indicator-history-window

Conversation

@aiSynergy37
Copy link
Copy Markdown
Contributor

Summary

  • Fix IndicatorHistory/WarmUpIndicator replay so the indicator public Window is cleared after Reset() seeds its default value
  • Add regression coverage for expanded indicator windows to ensure warm-up leaves only real historical samples and the current value remains at window[0]

Issue

Fixes #9355

Testing

  • dotnet build Algorithm/QuantConnect.Algorithm.csproj --no-restore --nologo -v:minimal
  • dotnet build Indicators/QuantConnect.Indicators.csproj --no-restore --nologo -v:minimal
  • Attempted focused test: dotnet test Tests/QuantConnect.Tests.csproj --filter "FullyQualifiedName=QuantConnect.Tests.Algorithm.AlgorithmIndicatorsTests.WarmUpIndicatorDoesNotLeaveDefaultValueInWindow" --no-restore --no-build -m:1 --logger "console;verbosity=minimal"
    • Blocked locally by Windows Application Control: An Application Control policy has blocked this file. (0x800711C7) for Tests/bin/Debug/QuantConnect.Tests.dll.

@aiSynergy37 aiSynergy37 marked this pull request as ready for review April 26, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Indicator Window Inconsistencies

2 participants