chore: checkpoint remaining pre-gate worktree changes
- 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
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# Roadmap
|
||||
**Last Updated:** 2026-08-16 (weekly Sunday republish — see `docs/02-runbooks/weekly_roadmap_cadence.md`, DEC-20260816-01)
|
||||
**Master Reference:** NT8_SDK_Master_Document_v6.4_Complete.docx — Sections 7, 8, 21
|
||||
**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.
|
||||
@@ -12,10 +14,53 @@ allowance. See `docs/02-runbooks/weekly_roadmap_cadence.md` and `DEC-20260816-01
|
||||
|
||||
---
|
||||
|
||||
## CURRENT BLOCKER
|
||||
1. **GAP-034** — Gate Run #3 cannot start. Three sessions (08-03, 08-04, 08-13) produced
|
||||
zero trades on days with clear NQ breakouts, root cause unidentified. See
|
||||
`current_status.md` and `TASK_GAP035_GAP034_PROMPT.md`.
|
||||
## 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`.
|
||||
@@ -58,9 +103,16 @@ distance, recorded in a superseding decision entry, before `DEC-GATE3-CONFIG` is
|
||||
## Sprint 3 — Production Hardening (ACTIVE)
|
||||
All tasks in order in SPRINT_BOARD.md. Full prompts in KILOCODE_RUNBOOK.md.
|
||||
|
||||
Architecture defects (blocks live trading):
|
||||
- TASK-06a: Runner Mode enum + NT8StrategyBase redesign
|
||||
- TASK-06b: ATR-based dynamic stop
|
||||
> **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)
|
||||
@@ -117,6 +169,84 @@ Gate criteria for Sprint 3 → Sprint 4:
|
||||
- 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
|
||||
@@ -139,7 +269,18 @@ 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)
|
||||
- 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)
|
||||
|
||||
Reference in New Issue
Block a user