- governance: stage v7.0 review prompts, run book, roadmap/current-status/decision updates, and sprint board state - adapters: capture DASH/trailing-drawdown/state-telemetry strategy work already present in the worktree - tools: capture dashboard console/KPI parser updates, logtriage notes, and runnersweep output Build: previously clean | Tests: previously 511 passing | Includes all open staged files
287 lines
18 KiB
Markdown
287 lines
18 KiB
Markdown
# Roadmap
|
||
**Last Updated:** 2026-08-18 (v7.0 master-document review; last Sunday republish 2026-08-16 — see `docs/02-runbooks/weekly_roadmap_cadence.md`, DEC-20260816-01)
|
||
**Master Reference:** NT8_SDK_Master_Document_v7.0_Complete.docx — Sections 7, 8, 9, 10, 12
|
||
(+ interactive companion `docs/NT8_SDK_v7.0_Visual_Pack.html`). v6.4 remains the reference for
|
||
Appendices B, D, E and F only.
|
||
|
||
## Sequencing Rule
|
||
No sprint advances until its gate criteria are met. No exceptions.
|
||
|
||
## Weekly cadence rule (new 2026-08-16)
|
||
This document and `current_status.md` are republished every Sunday, before every
|
||
Monday–Friday gate week, permanently. This replaces the prior rolling 7-day heartbeat
|
||
allowance. See `docs/02-runbooks/weekly_roadmap_cadence.md` and `DEC-20260816-01`.
|
||
|
||
---
|
||
|
||
## CURRENT BLOCKERS (revised 2026-08-18 by the v7.0 review — see `current_status.md`)
|
||
|
||
1. **GAP-045 — `MaxTradeRisk` / `MaxStopTicks` collision.** `StopTicks x tickValue` with no
|
||
quantity term, evaluated before sizing. NQ: `MaxStopTicks` 50 x $5 = $250 > `MaxTradeRisk` $200,
|
||
so the top 20% of the ATR stop range is unreachable and high-ATR days produce zero trades.
|
||
**Confirmed live 2026-08-18 10:10 ET: five valid Sell signals, all rejected at $225.00.**
|
||
2. **GAP-046 — trailing-drawdown monitor blocks every entry when `AccountStartingBalance` is unset.**
|
||
Confirmed live 2026-08-18 from 14:30 ET, 27 rejections. Needs a startup assertion pairing
|
||
`EnableTrailingDrawdown` with a positive `AccountStartingBalance`.
|
||
3. **GAP-047 — confluence factor weights pre-populated to 1.0; the designed weights are dead code.**
|
||
`ConfluenceScorer.cs` ~108-117 / ~410-419. Runtime-confirmed by `x1.00` on every factor in every
|
||
`STATE:` line. Makes Grade A close to structurally unreachable. **Primary suspect for GAP-034a.**
|
||
4. **GAP-034a — silent zero-trade defect, no candidate produced** (08-03, 08-04, 08-13). Still open;
|
||
GAP-047 is now the leading hypothesis, ahead of the four candidates previously ranked.
|
||
(**GAP-034b — candidate produced but blocked at a risk gate — is ROOT-CAUSED** by GAP-045/046.)
|
||
5. **GAP-054 — auto-breakeven destroys the runner's trailing stop.** `SetStopLoss()` on
|
||
`_runnerSignalName` (~803) replaces the `SetTrailStop()` issued at entry (~2188/2196); the two
|
||
are mutually exclusive per signal name in NinjaScript. Confirmed in 4/4 broker-confirmed trades:
|
||
the trail was 12-16 ticks in profit when breakeven fired and was moved back to +1.
|
||
**Blocks RUNNER-001** — the sweep would measure a disabled trail. Supersedes the
|
||
"retune the breakeven trigger" framing of DEC-20260810-02 / DEC-20260815-01.
|
||
6. **GAP-055 — `MaxDailyTrades` does not survive a restart.** In-memory counter only. CME trading
|
||
date 2026-08-17 took two trades under `MaxDailyTrades=1` across two NT8 sessions; the second
|
||
session's `DayPnL` proves NT8 treated them as one day.
|
||
7. **Dirty working tree.** 17 modified, 5 untracked, including `NT8StrategyBase.cs` and
|
||
`SimpleORBNT8.cs` carrying uncommitted DEC-20260818-01..-17 work that is deployed and running.
|
||
|
||
### Also raised by the v7.0 review (open, not blocking Gate 3 start)
|
||
- **GAP-048** — reject taxonomy conflates four causes under `KillSwitch` (portfolio block, Tier 1
|
||
risk, circuit breaker, actual kill switch). Diagnostics-only fix; zero trading-behaviour risk.
|
||
- **GAP-049** — telemetry `STATE:` score is direction-incorrect and is presented as the trade grade.
|
||
- **GAP-050** — `MaxTradeRisk` has no quantity term; worst case is $600 vs a $1,000 daily limit.
|
||
- **GAP-051** — `MicroUpgradeThreshold` fires every session at the current balance.
|
||
- **GAP-052** — two independent hardcoded tick-value tables.
|
||
- **GAP-053** — `executive_summary.md` and this document's Sprint 3 list present ~12 tasks
|
||
completed 2026-07-11 as still open. Prune or regenerate.
|
||
|
||
### Numbering caution
|
||
v6.4 renumbered the July 17-31 data-audit findings to GAP-041..046, which now collide with this
|
||
document's own GAP-042/043/044. **This register is authoritative for `GAP-` numbers.** The historical
|
||
audit findings are renamed `HIST-41`..`HIST-46` in v7.0 Section 7.6.
|
||
|
||
### Configuration freeze status
|
||
`docs/gate-runs/gate3/baseline.json` no longer describes any running system: 2026-08-18 produced
|
||
nine distinct `ConfigHash` values, three `CodeVersion` MVIDs and five bar periods, with
|
||
`MinTradeGrade` 5->4, `EnableKillSwitch` True->False and `RiskPerTrade` $200->$100 drifted from the
|
||
baseline. Two instances also ran concurrently on the same account and instrument. Re-capture required.
|
||
|
||
Resolved 2026-08-16: the dirty working tree blocker was cleared and
|
||
`docs/gate-runs/gate3/baseline.json` was produced by `freeze_20260816_170304`.
|
||
|
||
Nothing below Sprint 3 should be started until GAP-034 is closed and Gate Run #3 has banked
|
||
20 broker-confirmed trades under a single frozen account.
|
||
|
||
---
|
||
|
||
## Weekend batch 2026-08-15 to 08-17 (strategy DISARMED)
|
||
Runtime: GAP-035 (rejection logging), GAP-036 (`risk_mode`), GAP-037 (`MaxDailyTrades` tests),
|
||
GAP-038 (`ConfigHash` includes `BarsPeriod`), and GAP-039 (realtime-only daily count) are
|
||
committed. DASH-002 (`EnableStateTelemetry`) remains prompt-staged; no implementation has
|
||
landed.
|
||
Non-runtime (built, safe at any time): DASH-001 (dashboard), TOOL-001 (log triage),
|
||
TOOL-002 (config drift detector), TOOL-003 (pre-flight checklist, including Gate 3
|
||
freeze/verify). RUNNER-001 (runner-parameter sweep tool) is also built; execution against
|
||
real exports is still required before `DEC-GATE3-CONFIG` (DEC-20260815-01).
|
||
|
||
**Re-arm requirement:** the committed runtime changes must be manually NinjaScript-compiled,
|
||
deployed clean, and re-armed before Monday market open.
|
||
|
||
---
|
||
|
||
## Sprint 2 (Parallel — SIM Validation)
|
||
Gate: PF > 2.0, MaxDD < $500, 2+ weeks uninterrupted, runner confirmed in fills.
|
||
Status: **BLOCKED** — Gate Run #2 dataset voided (multiple concurrent account/instrument
|
||
combinations violated the single-frozen-account doctrine). Gate Run #3 clock not started.
|
||
|
||
**Runner leg — no longer just an observation, now active work.** DEC-20260815-01 (accepted
|
||
2026-08-15, supersedes DEC-20260810-02) puts the runner redesign in scope now, during the
|
||
disarmed pre-gate window: the breakeven trigger (20 ticks) sits close to the scaler target
|
||
(16 ticks) and the ATR-derived target (28 ticks observed 2026-08-10), leaving the runner
|
||
little room to extend before being parked at breakeven. The 10-gate-trade revisit trigger is
|
||
withdrawn. RUNNER-001 (`tools/runnersweep`) must produce a backtest-validated trigger
|
||
distance, recorded in a superseding decision entry, before `DEC-GATE3-CONFIG` is finalized.
|
||
|
||
---
|
||
|
||
## Sprint 3 — Production Hardening (ACTIVE)
|
||
All tasks in order in SPRINT_BOARD.md. Full prompts in KILOCODE_RUNBOOK.md.
|
||
|
||
> **STALE-LIST WARNING (GAP-053, added 2026-08-18).** The lists immediately below still show
|
||
> TASK-06a, TASK-06b, GAP-003, GAP-004, GAP-005, GAP-006, GAP-008, GAP-009, GAP-010, GAP-019 and
|
||
> GAP-022 as open work. **All of these were completed on 2026-07-11 / 07-14** — see the historical
|
||
> record in `SPRINT_BOARD.md` and DEC-20260711-01..09, DEC-20260713-02. GAP-011 was completed
|
||
> 2026-07-11 and GAP-040 is implemented and firing in production as of 2026-08-18. This block has
|
||
> not been pruned since July and misleads anyone onboarding. Prune it at the next republish.
|
||
|
||
Architecture defects (COMPLETED 2026-07-11 — retained here only until this block is pruned):
|
||
- ~~TASK-06a: Runner Mode enum + NT8StrategyBase redesign~~ ✅ 2026-07-11 (DEC-20260711-01)
|
||
- ~~TASK-06b: ATR-based dynamic stop~~ ✅ 2026-07-11 (DEC-20260711-02)
|
||
|
||
Risk hardening:
|
||
- GAP-019: Portfolio Heat Tier 3.5 (MaxHeatPct enforcement)
|
||
- GAP-003: RiskPerTrade ≤ MaxTradeRisk assertion at startup
|
||
- GAP-006: Position-close-driven _tradeTaken re-arm
|
||
|
||
Signal accuracy:
|
||
- GAP-004: orbRangeTicks hardcoded 0.0 fix (Factor 7 always neutral)
|
||
- GAP-005: GetRiskStatus() hardcoded limit fix
|
||
- GAP-010: Short-side regime filter gate
|
||
|
||
Infrastructure:
|
||
- GAP-008: CME holiday awareness (SessionManager static HashSet)
|
||
- ~~GAP-011: Gitea CI pipeline (build.yml)~~ — ✅ completed 2026-07-11 (see SPRINT_BOARD.md historical record); `.gitea/workflows/build.yml` and `ci.yml` confirmed present on disk 2026-08-10. This roadmap entry was stale.
|
||
- GAP-009: ATRTrailing real ATR wiring (replace proxy)
|
||
- GAP-022: 8 scenario tests (ATR spike, FOMC, partial fill, disconnect, etc.)
|
||
- GAP-030: Historical ORB state hydration — safely reconstruct the current day's 09:30–10:00 ET range after a late enable without evaluating historical bars as signals; retain the realtime replay guard and add no-historical-order tests.
|
||
- GAP-007: Walk-forward test setup documentation
|
||
|
||
Added 2026-08-14 (all discovered during 08-03 to 08-14 forensics):
|
||
- GAP-034: Silent zero-trade defect diagnosis — **BLOCKER**
|
||
- GAP-035: Route all signal-rejection reasons to `FileLog` — in progress, weekend batch
|
||
- GAP-036: `risk_mode` sourced from `intent.Metadata`, not `_strategyConfig.Parameters` — in progress, weekend batch
|
||
- GAP-037: `MaxDailyTrades` regression tests — the GAP-032 fix currently has zero coverage — test file on disk, uncommitted
|
||
- GAP-038: `ConfigHash` must include `BarsPeriod`; structurally different bar
|
||
configurations currently hash identically, undermining gate provenance — source + test on disk, uncommitted
|
||
- GAP-039: `_dailyTradeCount` increments only in `State.Realtime` so historical replay
|
||
cannot latch the daily limit — in progress, weekend batch
|
||
- GAP-040: Startup WARNING when the primary series is non-time-based or `DaysToLoad`
|
||
falls below the configured gate minimum — queued, not yet scheduled into a work window
|
||
|
||
Resolved since last republish:
|
||
- ~~`EnableShortTrades` source/runtime mismatch~~ — ✅ DEC-20260814-04 (accepted 2026-08-16).
|
||
`SetDefaults()` now sets `EnableShortTrades = true`; test coverage added
|
||
(`SimpleORBNT8DefaultsTests.cs`, uncommitted pending Blocker 1 cleanup).
|
||
- ~~`StartBehavior=AdoptAccountPosition` undocumented~~ — ✅ documented and retained by the
|
||
same DEC-20260814-04 entry.
|
||
|
||
Gate criteria for Sprint 3 → Sprint 4:
|
||
✓ All CRITICAL/HIGH gaps above resolved
|
||
✓ GAP-034 root cause identified and fixed
|
||
✓ Working tree clean and Gate 3 freeze captured (`baseline.json` exists)
|
||
✓ RUNNER-001 sweep executed and its result recorded in `DEC-GATE3-CONFIG.md`
|
||
✓ 500+ tests still passing (current: 511 confirmed — 422 Core, 79 Integration, 10 Performance)
|
||
✓ NT8 NinjaScript compiles clean
|
||
✓ SIM gate met (PF > 2.0, DD < $500) under a single frozen account
|
||
|
||
---
|
||
|
||
## Sprint 4 — Second Strategy + ETH + MNQ Live (deferred)
|
||
- VWAPMeanReversion strategy (11 AM – 2 PM RTH window)
|
||
- OvernightGapContinuation + OvernightGapReversion
|
||
- LondonORBNT8 (3:00–3:30 AM ET)
|
||
- GAP-013: ContractRollHandler completion
|
||
- GAP-015: Config JSON export/import
|
||
- GAP-014: LiquidityMonitor Level II prep
|
||
- GAP-042: `PortfolioRiskManager` has no account dimension (singleton keyed
|
||
only by strategyId) — must be fixed before running strategies on
|
||
different accounts simultaneously; see `docs/00-governance/architecture.md`
|
||
"Multi-Strategy / 24x7 Trading Architecture" for detail. Required before
|
||
Sprint 4's multi-strategy plans extend to multiple accounts.
|
||
- GAP-043: Primary bar series (`HFTAlgoBarsType`) is a third-party custom
|
||
bar type, not native to NT8 — confirmed 2026-08-18 by full-repo search
|
||
(zero matches; it does not exist anywhere in this SDK). Vendor
|
||
dependency risk: if the add-on stops being maintained, updated, or
|
||
compatible with a future NT8 version, the primary series becomes
|
||
unavailable with no in-repo fallback. Operator has deferred deep
|
||
investigation but wants to revisit.
|
||
**Candidates to evaluate:** Tick Bars (500, 1000 ticks), Volume Bars
|
||
(1000, 2500 contracts), Range Bars (4-tick/1.0pt, 8-tick/2.0pt) — all
|
||
native NT8 bar types, all well-documented under Strategy Analyzer + Tick
|
||
Replay (ties to `DEC-20260814-03`'s 60-day warm-up rule).
|
||
**Order Flow+** is not a peer candidate for bar cadence — it's NT8's
|
||
premium volumetric/footprint data layer, normally applied on top of a
|
||
time/tick/volume bar type rather than replacing it. None of today's
|
||
factor calculators consume anything beyond OHLCV+volume, so adopting it
|
||
would require new factor-calculator work (e.g. a real order-flow-
|
||
imbalance confluence factor) before it changed strategy behavior at
|
||
all — a separate, larger project from the bar-cadence question, and it
|
||
requires a Level II/market-depth subscription.
|
||
**Before comparing:** confirm `HFTAlgoBarsType` actually supports
|
||
Strategy Analyzer + Tick Replay — some custom bar generators are
|
||
live-only and can't produce a matched backtest baseline, in which case
|
||
the comparison would need to lean on existing live/SIM session history
|
||
as the baseline instead.
|
||
**Data limitation:** `SIGNAL`/`SUBMIT`/`STATE_DETAIL` FileLog lines only
|
||
write during `State.Realtime`, not Strategy Analyzer backtests — grade/
|
||
score/factor-reason data won't be available for backtest comparison,
|
||
only NT8's native Trades-tab columns (entry/exit price, P&L, MAE/MFE,
|
||
bars-in-trade). Comparison would need to lean on trade count, win rate,
|
||
profit factor, average R-multiple, and average bars-in-trade (a proxy
|
||
for confirmation-timing character) rather than confluence grading.
|
||
**Sequencing:** run this only after GAP-034-adjacent live-risk fixes
|
||
(historical-replay order submission, sizing-before-dynamic-stop
|
||
reordering) are confirmed clean on the *current* bar type — changing
|
||
bar type in the same window as fixing live-risk bugs would make it hard
|
||
to attribute any behavior change to the right cause. A bar-type change
|
||
also alters `ConfigHash` (`DEC-20260810-01`), so it requires restarting
|
||
Gate validation from a clean baseline regardless of when it happens.
|
||
- GAP-044: Primary series `DaysToLoad` does not respect the operator's
|
||
configured value, and this is now confirmed independent of bar type —
|
||
originally observed 2026-08-18 with the third-party `HFTAlgoBarsType`
|
||
(configured 120, logged `DaysToLoad=3`), then reproduced the same day
|
||
with fully native `MinuteBarsType` on 5-minute bars (configured 90,
|
||
logged `DaysToLoad=5`). This rules out the vendor bar type (`GAP-043`)
|
||
as the cause — the two issues are unrelated and should not be
|
||
conflated. Full-repo search confirms nothing in this SDK's source sets
|
||
or overrides `DaysToLoad` for the primary series (`BarsArray[0]`); it is
|
||
driven entirely by NT8 platform/workspace state invisible to the
|
||
codebase (either the chart's own Data Series configuration, or the
|
||
Strategies dialog's independent Data Series tab, depending on how the
|
||
strategy is attached), so this cannot be diagnosed or fixed from source
|
||
alone. `DEC-20260814-03`'s 60-trading-day warm-up requirement for valid
|
||
backtests depends on `DaysToLoad` actually taking effect, so this
|
||
should be resolved before relying on backtest comparisons for `GAP-043`
|
||
or any other Strategy Analyzer work.
|
||
**Operator-side troubleshooting, not yet attempted/ruled out:** confirm
|
||
which dialog actually governs `BarsArray[0]` for the current attach
|
||
method (chart-inherited vs. Strategies-dialog independent series);
|
||
check for a saved workspace/template reasserting a stale value on load;
|
||
try disabling the strategy, changing the value, then re-enabling rather
|
||
than editing live; check whether the field is set to an explicit number
|
||
vs. a "Default"/auto mode that may resolve independently of the typed
|
||
value.
|
||
**Operator hypothesis (2026-08-18):** the saved NT8 workspace is
|
||
reasserting a stale `DaysToLoad` value on load — operator reports a
|
||
prior, similar experience with workspace state persisting settings it
|
||
shouldn't have. Confirmation test: create a brand-new chart (not opened
|
||
from the existing saved workspace) and attach the strategy there with
|
||
the desired `DaysToLoad`. If it holds on the fresh chart, the workspace
|
||
is confirmed as the cause; if it still reverts, the cause is elsewhere
|
||
(see troubleshooting list above). NT8 workspaces are stored as XML under
|
||
`Documents\NinjaTrader 8\workspaces\` if direct inspection or discarding
|
||
the stale one becomes necessary. Not yet tested as of this entry.
|
||
- Go live with 1 MNQ contract (micro) after SIM gate + Sprint 3 complete
|
||
|
||
Gate criteria: 2 weeks live MNQ PF > 1.8, max loss < $100/day
|
||
|
||
---
|
||
|
||
## Sprint 5 — ML Integration + Dashboard (deferred)
|
||
- FastAPI /predict endpoint on Ollama workstation
|
||
- MLSignalFactorCalculator as 11th IFactorCalculator
|
||
- Multi-strategy PortfolioManager coordinator
|
||
- Dashboard Phase 1 + 2 (read-only → real-time WebSocket) — **note:** DASH-001 (the
|
||
standalone `tools/dashboard`) already delivers most of Phase 1's read-only scope ahead of
|
||
schedule, built under the parallel-work track rather than this sprint. Phase 2's real-time
|
||
WebSocket layer and the in-NT8 control layer (Sprint 6) remain deferred here.
|
||
- n8n AM briefing pipeline
|
||
- GAP-017: ParameterOptimizer → NT8 Strategy Analyzer
|
||
|
||
Gate criteria: 60+ days live fills, model trained and walk-forward validated
|
||
|
||
---
|
||
|
||
## Sprint 6 — Full Dashboard + iOS (deferred)
|
||
- Dashboard Phase 3 (control layer: pause, flatten, kill switch) — two
|
||
design paths recorded in `docs/00-governance/architecture.md` "Control
|
||
Plane": an NT8 Add-On WPF panel (below) or an external command-file
|
||
channel extending the existing `SetParameters()` plumbing. Recommendation
|
||
is to build the external channel first for platform-neutrality.
|
||
- Dashboard Phase 4 (intelligence layer: playbook, health score, missed trades)
|
||
- Multi-timeframe regime alignment (raised by operator 2026-08-17): the
|
||
console dashboard mockup's "full timeframe continuity" concept — scoring
|
||
regime agreement across several timeframes (e.g. 5m/15m/1h/daily) rather
|
||
than today's single daily SMA20/50 value — is a real feature idea but not
|
||
scoped. Needs its own `NT8.Core/Intelligence` design pass (new factor
|
||
calculator or `RegimeManager` usage across multiple bar series) before
|
||
implementation; not a quick addition to existing telemetry.
|
||
- iOS companion app
|
||
- NT8 Add-On WPF panel (Section 22 / Appendix D of master doc)
|