- Added RunnerMode enum directly in NT8StrategyBase.cs (NinjaScript compiles strategies directly, can't reference NT8.Core assembly) - Replaced all NT8.Core.Common.Models.RunnerMode references with local RunnerMode enum - Fixed StrategyIntent metadata access (uses Metadata dictionary instead of Context.CustomData) - All changes verified: build succeeds, 492 tests passing
101 lines
7.8 KiB
Markdown
101 lines
7.8 KiB
Markdown
# Sprint Board
|
||
**Last Updated:** 2026-07-11 | **Active Sprint:** 3 — Production Hardening
|
||
**Build:** ✅ Clean | **Tests:** ✅ 492 passing (404 core + 78 integration + 10 performance) | **SIM Gate:** ⏳ In progress
|
||
|
||
> Kilocode maintains this file. After every task: move ACTIVE → COMPLETED, advance QUEUE → ACTIVE.
|
||
> Full prompts for every task are in `KILOCODE_RUNBOOK.md`. Next prompt is always in `NEXT_PROMPT.md`.
|
||
|
||
---
|
||
|
||
## ✅ COMPLETED THIS SPRINT
|
||
|
||
**[TASK-06a]** Runner Mode Architecture | Sprint 3 | ✅ DONE 2026-07-11
|
||
- Files: `src/NT8.Core/Common/Models/Configuration.cs` (RunnerMode enum), `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`
|
||
- Implemented: RunnerMode enum (Auto, Mode1DualLeg, Mode2RunnerOnly, Mode3ScalerOnly, Disabled); ResolveRunnerMode() with Auto logic (Qty≥2→Mode1, Qty=1→Mode2); four mode behaviors in SubmitOrderToNT8(); [SDK] log confirms resolved mode; dual-deployed to NT8 Custom\Strategies\
|
||
- Verification: .\verify-build.bat ✅ | dotnet test ✅ (486 tests passing)
|
||
|
||
**[TASK-06b]** ATR Dynamic Stop | Sprint 3 | ✅ DONE 2026-07-11
|
||
- Files: `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`
|
||
- Implemented: EnableDynamicStop, AtrPeriod (14), AtrMultiplier (1.5), MinStopTicks (12), MaxStopTicks (50); ATR accessed via ATR(Close, AtrPeriod)[0] in State.Configure; intent.StopTicks overridden pre-sizing; [SDK] Dynamic stop log confirms ATR stop value; context.CustomData["current_atr"] populated; dual-deployed.
|
||
- Verification: .\verify-build.bat ✅ | dotnet test ✅ (486 tests passing)
|
||
|
||
**[GAP-019]** Portfolio Heat — Tier 3.5 Risk Layer | Sprint 3 | ✅ DONE 2026-07-11
|
||
- Files: `src/NT8.Core/Risk/AdvancedRiskManager.cs`, `src/NT8.Core/Risk/AdvancedRiskModels.cs`
|
||
- Implemented: MaxHeatPct parameter (default 3.0) in AdvancedRiskConfig; ValidatePortfolioHeat() calculates TotalOpenRisk/AccountBalance; called as Tier 3.5 in ValidateOrder(); returns RiskDecision.Reject with reason when exceeded; _logger.LogDebug heat check logging; edge cases for 0/negative account balance handled.
|
||
- Verification: .\verify-build.bat ✅ | dotnet test ✅ (486 tests passing)
|
||
|
||
**[GAP-003]** RiskPerTrade ≤ MaxTradeRisk Assertion | Sprint 3 | ✅ DONE 2026-07-11
|
||
- Files: `src/NT8.Core/Common/Models/Configuration.cs` (RiskPerTrade property), `src/NT8.Core/Risk/BasicRiskManager.cs`, `tests/NT8.Core.Tests/Risk/BasicRiskManagerTests.cs`
|
||
- Implemented: RiskPerTrade property in RiskConfig; validation in ValidateOrder() throws ArgumentException if RiskPerTrade > MaxTradeRisk; unit tests for >, ==, < cases.
|
||
- Verification: .\verify-build.bat ✅ | dotnet test ✅ (401 core tests passing)
|
||
|
||
**[GAP-004]** orbRangeTicks Hardcoded 0.0 Fix | Sprint 3 | ✅ DONE 2026-07-11
|
||
- Files: `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `src/NT8.Adapters/Strategies/SimpleORBNT8.cs`, `src/NT8.Core/Intelligence/FactorCalculators.cs` (DailyBarContext)
|
||
- Implemented: OrbRangeTicks field added to DailyBarContext; BuildDailyBarContext now calculates orbRangeTicks = (ORB high - ORB low) / TickSize; CreateIntent passes computed value; Factor 7 (ORBvsATR) now receives correct orb_range_ticks.
|
||
- Verification: .\verify-build.bat ✅ | dotnet test ✅ (401 core tests passing)
|
||
|
||
**[GAP-005]** GetRiskStatus() Returns Live Config Value | Sprint 3 | ✅ DONE 2026-07-11
|
||
- Files: `src/NT8.Core/Risk/BasicRiskManager.cs`, `tests/NT8.Core.Tests/Risk/BasicRiskManagerTests.cs`
|
||
- Implemented: _currentDailyLossLimit field updated from config.DailyLossLimit on each ValidateOrder(); GetRiskStatus() returns actual value; constructors initialize to default (1000) or provided value; 3 unit tests: explicit limit, default, config switching.
|
||
- Verification: .\verify-build.bat ✅ | dotnet test ✅ (492 tests passing)
|
||
|
||
**[GAP-006]** Position-Close-Driven _tradeTaken Re-arm | Sprint 3 | ✅ DONE 2026-07-11
|
||
- Files: `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `src/NT8.Adapters/Strategies/SimpleORBNT8.cs`
|
||
- Implemented: OnPositionUpdate() sends clear_trade_taken when position goes flat; EnableBarBasedRearm parameter (default false) gates legacy bar-driven re-arm for SIM-only; SimpleORBStrategy.SetParameters() handles both force_session_reset and clear_trade_taken.
|
||
- Verification: .\verify-build.bat ✅ | dotnet test ✅ (492 tests passing)
|
||
|
||
**[GAP-010]** Short-Side Regime Filter | Sprint 3 | ✅ DONE 2026-07-11
|
||
- Files: `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `src/NT8.Adapters/Strategies/SimpleORBNT8.cs`
|
||
- Implemented: EnableShortTrendFilter parameter (default true); short veto when AVWAP slope > 0 (bullish); long veto in bearish regime always enforced; parameter passed via StrategyContext.CustomData; logs when vetoed.
|
||
- Verification: .\verify-build.bat ✅ | dotnet test ✅ (492 tests passing)
|
||
|
||
**[GAP-008]** CME Holiday Awareness | Sprint 3 | ✅ DONE 2026-07-11
|
||
- Files: `src/NT8.Core/Calendar/CmeHolidayCalendar.cs` (new), `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `src/NT8.Adapters/Strategies/SimpleORBNT8.cs`
|
||
- Implemented: CmeHolidayCalendar with 9 observed holidays + Good Friday (Easter calc); EnableCMEHolidayGuard parameter (default true); NT8StrategyBase.OnBarUpdate() skips on holidays; SimpleORBStrategy.OnBar() skips ORB window; early-close tracking via IsEarlyClose().
|
||
- Verification: .\verify-build.bat ✅ | dotnet test ✅ (492 tests passing)
|
||
|
||
**[GAP-009]** ATR Trailing Real ATR Wiring | Sprint 3 | ✅ DONE 2026-07-11
|
||
- Files: `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `src/NT8.Adapters/Strategies/SimpleORBNT8.cs`
|
||
- Implemented: EnableATRTrailing, ATRTrailingPeriod (14), ATRTrailingMultiplier (2.0), ATRTrailingMinTicks (8), ATRTrailingMaxTicks (60); SubmitOrderToNT8() computes trailTicks = clamp(round(ATR(Close,Period)[0]/TickSize * Mult), Min, Max); uses SetTrailStop; logs [SDK] ATR Trail line; falls back to RunnerTrailTicks when disabled.
|
||
- Verification: .\verify-build.bat ✅ | dotnet test ✅ (492 tests passing)
|
||
|
||
**[GAP-011]** Gitea CI Pipeline | Sprint 3 | ✅ DONE 2026-07-11
|
||
- Files: `.gitea/workflows/ci.yml`, `scripts/ci_build.sh`
|
||
- Implemented: Gitea Actions workflow with Windows self-hosted runner (primary) + Linux/mono fallback; triggers on push/PR to main; runs verify-build.bat logic; uploads test artifacts and build logs on failure; ci_build.sh wrapper for Linux/mono runners.
|
||
- Verification: .\verify-build.bat ✅ | dotnet test ✅ (492 tests passing)
|
||
|
||
---
|
||
|
||
## 🔵 ACTIVE
|
||
|
||
*All Sprint 3 tasks complete. Sprint 4 backlog ready for next session.*
|
||
|
||
---
|
||
|
||
## 📋 SPRINT 4 BACKLOG (not yet queued — awaiting Sprint 3 gate)
|
||
|
||
- **VWAPMeanReversion** — new core strategy, 11 AM–2 PM RTH window, uses AVWAPCalculator
|
||
- **OvernightGapContinuation** — gap >0.5% from prior close, enter at open in gap direction
|
||
- **OvernightGapReversion** — gap >1% stalls and reverses, 15-min time gate
|
||
- **LondonORBNT8** — 30-min ORB at 3:00–3:30 AM ET, MaxContracts=1
|
||
- **GAP-013** — ContractRollHandler.InitiateRollover() completion
|
||
- **GAP-015** — Config JSON export/import (StrategyConfig, RiskConfig, SizingConfig)
|
||
- **GAP-014** — LiquidityMonitor Level II data prep
|
||
- **MNQ Phase 1 Prep** — go-live checklist, MNQ parameter calibration, risk limits for micro
|
||
|
||
---
|
||
|
||
## 📋 SPRINT 5 BACKLOG (deferred — requires 60+ days live data)
|
||
|
||
- **FastAPI /predict endpoint** — LightGBM/XGBoost on Ollama workstation
|
||
- **MLSignalFactorCalculator** — 11th IFactorCalculator calling /predict
|
||
- **Multi-strategy PortfolioManager** — coordinator for shared-account strategies
|
||
- **Dashboard Phase 1+2** — read-only then real-time WebSocket
|
||
- **n8n AM Briefing** — daily pre-market summary (see IDEAS_BACKLOG.md)
|
||
- **GAP-017** — ParameterOptimizer → NT8 Strategy Analyzer wiring
|
||
|
||
---
|
||
|
||
## 🚫 BLOCKED
|
||
|
||
*(None — add items here if a task cannot proceed, with blocking reason)* |