- src/NT8.Adapters/Strategies/NT8StrategyBase.cs: add ORDER lifecycle FileLog and FILL signal name - tests/NT8.Core.Tests/Adapters/NT8StrategyBaseOrderLifecycleTests.cs: add source-text regression coverage - SPRINT_BOARD.md: GAP-025 prompted -> implemented/deployed - docs/00-governance/current_status.md: record GAP-025 implementation - docs/00-governance/decisions.md: record DEC-20260826-04 Build: clean | Tests: 572 passing | Dual-deployed: yes, backup 20260826_010153
230 lines
33 KiB
Markdown
230 lines
33 KiB
Markdown
# NT8 SDK — Sprint Board
|
||
**Last Updated:** 2026-08-26 (GAP-025 implemented/deployed; GAP-030 prompted next)
|
||
**Truth source:** compiler output, test output, deployed-file comparisons, and runtime artifacts override board claims.
|
||
|
||
## Current gate state
|
||
|
||
| Area | State | Evidence / required next step |
|
||
|---|---|---|
|
||
| Core source build | ✅ | `dotnet test NT8-SDK.sln --configuration Release --verbosity minimal`: build succeeded. |
|
||
| Automated tests | ✅ | 511 passed: 422 Core, 79 Integration, 10 Performance. |
|
||
| Provenance | ✅ | Gate 3 fix serializes grade, score, submitted runner mode, and ORB ticks from the accepted intent/submission data. |
|
||
| Scenario coverage | 🟡 | 5/8 genuine assertions; 3 explicitly deferred for missing seams. |
|
||
| Gate Run #2 | ❌ | Contaminated; provenance defects were identified after the run. |
|
||
| Gate Run #3 | ⏳ | Working tree clean; freeze capture succeeded: `docs/gate-runs/gate3/baseline.json` from `freeze_20260816_170304`; `DEC-GATE3-CONFIG.md` regenerated and still `draft` pending GAP-034. Complete manual NinjaScript compile/re-arm before starting the clock. |
|
||
|
||
> **Gate deployment rule:** Once RB-4.1 is recorded and Gate Run #2 begins, do not dual-deploy to the gate machine. Run GAP-025 and connection-seam work in branches only.
|
||
|
||
---
|
||
|
||
## 🔴 BLOCKERS — staged 2026-08-18 by the v7.0 master-document review
|
||
|
||
> Source: `docs/NT8_SDK_Master_Document_v7.0_Complete.docx` (+ `docs/NT8_SDK_v7.0_Visual_Pack.html`).
|
||
> All six were found by cross-referencing source against the live NinjaTrader log directory.
|
||
> **No source code was changed by the review** — each item below is a staged prompt awaiting execution.
|
||
> **2026-08-19: all four proposed decisions accepted by operator (DEC-20260818-18/19/20/21, plus new DEC-20260819-01 on MNQ cutover sequencing). All six items below marked ✅ READY.**
|
||
> **2026-08-19, later same day: 🛑 PREFLIGHT HALTED by operator before GAP-054 start.** `git status` showed uncommitted `src/` changes, NinjaTrader was running, position status was unconfirmed, and the configured account logged itself as `"gate account SimSimple ORB"`.
|
||
> **2026-08-19, still later: 🟡 PARTIALLY CLEARED.** Operator confirmed: position flat, NinjaTrader closed, and `SimSimple ORB` is "not of consequence" — a new account with `gate3` explicitly in its name will be stood up for actual Gate Run #3 evidence. **One item still open: the uncommitted DASH-002 diff in `src/` (`NT8StrategyBase.cs`, `SimpleORBNT8.cs`) has not been committed or otherwise reconciled** — recommended before GAP-054 lands on top of it. Full detail: `docs/00-governance/current_status.md` § 2026-08-19.
|
||
> **2026-08-21: GAP-054 Option 0 IMPLEMENTED and source-verified.** Landed on top of the still-uncommitted DASH-002 diff (unresolved from the line above). Builds/tests/deploy all passed; deployed hash matches repo. **Not yet SIM-validated, not yet committed, not yet cleared for RUNNER-001.** New low-priority follow-ups logged: GAP-056 (breakeven params now fully inert, not just runner-scoped as this board previously assumed) and GAP-057 (no test seam for NT8 managed SetStopLoss/SetTrailStop calls). See DEC-20260818-18 and DEC-20260821-01.
|
||
|
||
**[GAP-054] Auto-breakeven destroys the runner's trailing stop** | Stage 2 | 🟡 IMPLEMENTED, UNVALIDATED — **still blocks RUNNER-001**
|
||
- `SetStopLoss()` on `_runnerSignalName` (`NT8StrategyBase.cs` ~803) replaces the `SetTrailStop()` issued at entry (~2188/2196). Mutually exclusive per signal name in NinjaScript.
|
||
- Confirmed in 4/4 broker-confirmed trades: trail was 12–16 ticks in profit when breakeven fired, moved back to +1. **The runner has never trailed.**
|
||
- Conservative floor estimate: 55 ticks (~$275 gross / ~$252 net) forgone vs $25 / $1.96 realised — ≈24% of total P&L.
|
||
- Supersedes the "retune the breakeven trigger" framing of DEC-20260810-02 and DEC-20260815-01.
|
||
- Prompt: `TASK_GAP054_RUNNER_TRAIL_PROMPT.md` (updated 2026-08-19: unconditional-skip default resolved, no new flag). Validate on SIM/replay only before any live gate run.
|
||
|
||
**[GAP-045 / GAP-046] Risk-envelope coherence guards** | Stage 0/1 | ✅ IMPLEMENTED — deployed 2026-08-23
|
||
- GAP-045: `MaxStopTicks` 50 × $5 = $250 > `MaxTradeRisk` $200 on NQ. Five valid signals rejected 2026-08-18 10:10 ET at $225.00. The top 20% of the ATR stop range is unreachable.
|
||
- GAP-046: `EnableTrailingDrawdown=True` with `AccountStartingBalance=$0.00` blocked every entry from 14:30 ET, 27 rejections. No startup assertion pairs the two.
|
||
- GAP-050: tracked separately below — its own entry has the corrected 2026-08-25 finding (live path already safe; fix scoped to the `IRiskManager` interface contract, not this NQ risk-guard work).
|
||
- **Decided 2026-08-19:** collision resolved via MNQ (staged separately, DEC-20260819-01); MaxTradeRisk is per-position (total). Tier 1 check reorders to post-sizing. Implement and validate on NQ first — MNQ cutover is a later, separate step.
|
||
- Prompt: `TASK_GAP045_GAP046_RISK_GUARDS_PROMPT.md` (Part 3 rewritten 2026-08-19, now fully actionable). Verification: `verify-build.bat` 535/535, Core Release no-build 446/446, deploy backup `20260823_144817`. Manual NT8 compile and NQ SIM validation still required; MNQ cutover remains separate.
|
||
|
||
**[GAP-047] Confluence factor weights pre-populated to 1.0** | Stage 1 | ✅ PART 2 IMPLEMENTED — fresh freeze required
|
||
- `ConfluenceScorer.cs` ~108–117 / ~410–419: the calculators' designed weights (0.20/0.15/0.15/0.20/0.15) are unreachable dead code. Every `STATE:` factor reads `x1.00`.
|
||
- Designed total weight 5.85 vs actual 10.00. Grade A reachable on factors 1–5 alone under the design; close to structurally unreachable under equal weights.
|
||
- Live example: 0.640 (C) as logged vs 0.727 (B) under designed weights. **Leading hypothesis for GAP-034a and for the low trade rate.**
|
||
- Part 1 (offline study) complete 2026-08-23: `TASK_GAP047_WEIGHT_RESCORE_PROMPT.md`, evidence `tools/rescore/GAP-047_weight_rescore_output.md`/`.json`, commit `cbf45df`.
|
||
- **Part 2 implemented 2026-08-23 (DEC-20260823-01):** replaced the five wrong `1.0` literals with the designed values. Composite normalization already correct (dynamic `weightedScoreSum/totalWeight`) — verified, unchanged. No SIM trade required to validate; fully tested in `NT8.Core`.
|
||
- Prompt: `TASK_GAP047_PART2_WEIGHT_RUNTIME_PROMPT.md`. Verification: `verify-build.bat` 514/514, Core Release no-build 425/425, deploy backup `20260823_135331`. Fresh gate config freeze needed before any gate evidence collected after this lands.
|
||
|
||
**[GAP-055] `MaxDailyTrades` does not survive a strategy restart** | Stage 0 | ✅ IMPLEMENTED — deployed 2026-08-23
|
||
- In-memory counter only (`SimpleORBStrategy.cs` ~39). CME trading date 2026-08-17 took two trades under `MaxDailyTrades=1` across two NT8 sessions; the second session's `DayPnL=$271.96 → $545.44` proves NT8 treated them as one day.
|
||
- Same class as the 7/28 breach that helped void Gate Run #2. **A gate run cannot currently guarantee its own cap.**
|
||
- Prompt: `TASK_GAP055_MAXDAILYTRADES_PERSIST_PROMPT.md`. Verification: `verify-build.bat` 521/521, Core Release no-build 432/432, deploy backup `20260823_143311`. Manual NT8 compile and SIM restart validation still required.
|
||
|
||
**[GAP-048] Reject-reason taxonomy conflates four causes under `KillSwitch`** | Stage 0 | ✅ IMPLEMENTED — deployed 2026-08-23
|
||
- 2026-08-17 logged `reason=KillSwitch count=647` from a real kill switch; 2026-08-18 logged `count=5` from `MaxTradeRisk`. Same label. `GradeFilter` is overloaded four ways as well.
|
||
- `REJECT SUMMARY` aggregates on `reason`, so the counts operators and the dashboard read are ambiguous. Defeats what GAP-035 was built for.
|
||
- Prompt: `TASK_GAP048_REJECT_TAXONOMY_PROMPT.md`. Verification: `verify-build.bat` 516/516, Core Release no-build 427/427, parser syntax checks passed, deploy backup `20260823_142014`. Manual NT8 compile and live/SIM dashboard spot-check still required.
|
||
- GAP-058 housekeeping implemented 2026-08-23: replaced the tautological reject-line format test with production-path coverage; no production code changed.
|
||
|
||
**[GAP-049] Telemetry `STATE:` score is direction-incorrect and presented as the trade grade** | Stage 1 | ✅ IMPLEMENTED — deployed 2026-08-23
|
||
- `GapDirectionAlignmentCalculator` reads `daily.TradeDirection`, which the telemetry path deliberately does not set (DEC-20260818-06). Confirmed: a −523 gap scored "opposes trade" on a `Direction=Sell` setup.
|
||
- The dashboard's headline Score/Grade is therefore not the trade's. Also degrades the GAP-047 study.
|
||
- Prompt: `TASK_GAP049_TELEMETRY_DIRECTION_PROMPT.md`. Telemetry now clones `DailyBarContext`, sets clone-only direction/session-open/volume fields from the synthetic telemetry intent path, and adds `orb_range_ticks` metadata for `OrbRangeVsAtr`. Verification: focused tests 30/30, `verify-build.bat` 538/538, Core Release no-build 449/449, deploy backup `20260823_151931`. Manual NT8 compile and live/SIM STATE_DETAIL spot-check still required. P1-E finding: the cited `-523.25` was a telemetry data-alignment defect, not a real overnight gap; NQ SEP26 daily data showed 2026-08-17 close `30096.00` and 2026-08-18 open `30077.00` (`-19.00`).
|
||
|
||
**[GAP-060] REJECT SUMMARY snapshot mechanism goes dark for hours, including the entire RTH day** | Stage 1 | ✅ IMPLEMENTED — deploy blocked by running NT8
|
||
- Live SIM spot-check 2026-08-23/24: file log shows a ~16-hour `REJECT SUMMARY` blackout (`23:55:01` Aug 23 night → `16:00:00` Aug 24 afternoon), covering the entire 09:30-16:00 ET trading day. Confirmed the 09:30-10:00 "Grade A" telemetry Mo saw is by-design (real order path correctly blocked pre-ORB-close; those are hypothetical default-long diagnostic scores, not real signals) — but the log currently cannot show *why* any bar was rejected for that whole span.
|
||
- Root cause: `MaybeWriteRejectSummarySnapshot`'s blanket `TimeOfDay < 10:00 AM` gate suppresses the entire midnight-10am span daily (not just the ORB window); `_orbRejectSummarySnapshotWritten` is a session-lifetime flag that fires once (here, accidentally, during the first night's ETH activity) and never again on a multi-day run; snapshots are only ever reject-triggered with no independent timer.
|
||
- Prompt: `TASK_GAP060_REJECT_SUMMARY_VISIBILITY_PROMPT.md`. Implemented as observability-only: suppression is now ORB-window/date-aware, the once-after-ORB flag resets per day, and `OnBarUpdate` checks summary cadence on the live bar heartbeat instead of only inside reject logging. Open question resolved as (a): `SimpleORBStrategy.OnBar()` does record `OrbRangeNotEstablished` before and after ORB close during an RTH no-breakout path; missing visibility was adapter summary reporting, not a distinct SimpleORB defect. Verification: focused tests 8/8, `verify-build.bat` 543/543, Core Release no-build 454/454. Deployment attempted but blocked because NinjaTrader.exe PID 18800 locked `NT8.Core.dll`; commit made per operator instruction without deploy.
|
||
**[GAP-059] Telemetry `OrbRangeVsAtr` always reports "no daily bar context"** | Stage 1 | ✅ IMPLEMENTED — deploy blocked by running NT8
|
||
- `SimpleORBNT8.OnBarUpdate()` computed `orbRangeTicks` from `_openingRangeHigh`/`_openingRangeLow`, two fields declared but never assigned anywhere in the file — permanently `0.0`. GAP-049's telemetry fix depended on this value being nonzero and never fired as a result.
|
||
- Correct live values already existed in the same file (`sdkOrb.OpeningRangeHigh`/`OpeningRangeLow`, used correctly at the `STATE_CONTEXT` and diagnostics call sites) — this was a wiring fix, not new logic. Confirmed data-source only; no order flow, sizing, or risk behavior changed.
|
||
- Prompt: `TASK_GAP059_ORB_RANGE_TELEMETRY_PROMPT.md`. Implemented by sourcing the adapter-built daily context's ORB range from `SdkSimpleORB.OpeningRangeHigh/OpeningRangeLow` only when `OpeningRangeReady` is true, then removing the dead adapter fields. This lets GAP-049's telemetry clone emit nonzero `orb_range_ticks` and gives `OrbRangeVsAtrFactorCalculator` the context it already expected. Verification: focused tests 32/32, `verify-build.bat` 545/545, Core Release no-build 456/456. Deployment blocked because NinjaTrader.exe PID 18800 locked `NT8.Core.dll`; commit made per operator instruction without deploy.
|
||
**[GAP-051] `MicroUpgradeThreshold` advisory re-fires every restart** | Stage 1 | ✅ IMPLEMENTED — deploy skipped by operator
|
||
- `_microUpgradeSuggested` resets to `false` in `State.SetDefaults`, which runs on every strategy enable — an account already above `MicroUpgradeThreshold` gets `TIER_UPGRADE_SUGGESTED` re-logged every restart, not once per lifetime. Advisory-only (`Print`/`FileLog`), never touches order flow, sizing, or risk.
|
||
- Prompt: `TASK_GAP051_MICRO_UPGRADE_PERSISTENCE_PROMPT.md`. Implemented Option A: once-per-account-lifetime advisory persistence in a dedicated `micro_upgrade_suggested_<Account>.json` file under the configured/default log directory. Missing/corrupt files safely fall back to allowing the reminder and logging a warning; `Account == null`/non-realtime paths perform no file I/O. Verification: focused tests 5/5, `verify-build.bat` 550/550, Core Release no-build 461/461. Deployment skipped per operator instruction.
|
||
**[GAP-052] Two hardcoded tick-value tables have already drifted out of sync** | Stage 1 | ✅ IMPLEMENTED — deploy skipped by operator
|
||
- `BasicRiskManager.GetTickValue` (6 symbols) and `BasicPositionSizer.GetTickValue` (8 symbols) disagreed: `BasicPositionSizer` supported `6E`/`6A`, while `BasicRiskManager` fell through to its `default: 12.50`. For `6A`, the real tick value is `$10.00`, creating a latent 25% risk-calculation error if traded. NQ/MNQ were unaffected and remain unchanged.
|
||
- Prompt: `TASK_GAP052_TICK_VALUE_CONSOLIDATION_PROMPT.md`. Implemented Option A: shared platform-neutral `InstrumentTickValueTable` containing the union of existing symbols (`ES`, `MES`, `NQ`, `MNQ`, `CL`, `GC`, `6E`, `6A`). Basic and Advanced risk/sizing helpers now delegate to the shared table, and `6A` risk validation uses `$10.00` instead of falling through to `$12.50`. Verification: focused tests 26/26, `verify-build.bat` 552/552, Core Release no-build 463/463. Deployment skipped per operator instruction.
|
||
|
||
**[GAP-053] `executive_summary.md`/`roadmap.md` present ~12 completed tasks as open** | Stage 1 | ✅ READY
|
||
- `roadmap.md` already contains its own `STALE-LIST WARNING (GAP-053, added 2026-08-18)` naming TASK-06a, TASK-06b, GAP-003/004/005/006/008/009/010/019/022 as stale (all completed 2026-07-11/07-14), plus GAP-011/GAP-040 also resolved but left dangling. `executive_summary.md` (dated 2026-05-04, still references the retired v6 master doc) separately lists four of the same already-completed items as "Critical Open Issues." Documentation-only, zero trading-behaviour risk.
|
||
- Prompt: `TASK_GAP053_STALE_DOCS_PRUNE_PROMPT.md`.
|
||
|
||
**[GAP-056] `EnableAutoBreakeven`/`BreakevenTriggerTicks`/`BreakevenOffsetTicks` are fully inert** | Stage 1 | ✅ IMPLEMENTED — deploy skipped by prompt
|
||
- Found during GAP-054 verification (`DEC-20260821-01`): GAP-054 removed the only code path that ever read these three parameters (the runner breakeven block that was clobbering the trailing stop). They remain declared, defaulted, and exposed in the NinjaTrader UI but do nothing — harmless, but an operator toggling `EnableAutoBreakeven` would reasonably expect an effect.
|
||
- Prompt: `TASK_GAP056_INERT_BREAKEVEN_PARAMS_PROMPT.md`. Implemented Option A: retained the properties for saved workspace/settings compatibility, hid all three from the NT8 property grid with `[Browsable(false)]`, and labeled the SimpleORB settings export as `UNUSED`. No order-flow, sizing, risk, `SetStopLoss`, or `SetTrailStop` logic changed. Verification: focused tests 3/3, `verify-build.bat` 555/555, Core Release no-build 466/466. Deploy intentionally skipped by task prompt.
|
||
|
||
**[GAP-057] No test seam for NinjaScript's SetStopLoss/SetTrailStop managed-order calls** | Stage 1 | ✅ IMPLEMENTED — test-only, deploy skipped by prompt
|
||
- Found during GAP-054 verification (`DEC-20260821-01`): the regression test GAP-054's own task asked for (no `SetStopLoss` after `SetTrailStop` for a runner signal) was never written because no test seam exists — Kilocode correctly declined to fabricate coverage rather than write a fake test. Same defect class as GAP-054 (silent exit-order clobbering) currently has zero regression protection.
|
||
- Prompt: `TASK_GAP057_STOP_TRAIL_TEST_SEAM_PROMPT.md`. Implemented Option B: source-text regression seam. Added tests proving the runner entry block never calls `SetStopLoss(_runnerSignalName...)` after `SetTrailStop(_runnerSignalName...)`, the post-entry runner monitor in `OnBarUpdate()` contains no `SetStopLoss`/`SetTrailStop` calls, and no production order-management indirection was introduced. Verification: focused tests 3/3, `verify-build.bat` 558/558, Core Release no-build 469/469. Deploy intentionally skipped by task prompt.
|
||
|
||
**[GAP-050] MaxTradeRisk quantity term missing from IRiskManager contract** | Stage 1 | ✅ IMPLEMENTED — deploy skipped by prompt
|
||
- Originally flagged as a live risk-math gap ("$600 vs $1,000 daily limit"). Investigation on 2026-08-25 found the live path is already safe: `SimpleORBNT8`/`NT8StrategyBase` constructs `BasicRiskManager` directly and reaches its quantity-aware 4-arg `ValidateOrder` overload via a runtime type-check. The real gap is that `IRiskManager` itself never declared a quantity-aware member — `AdvancedRiskManager` (unwired to anything live) and `NT8OrderAdapter` (unwired scaffolding, also validates before sizing) would silently reintroduce the 1-contract assumption if either is ever wired up.
|
||
- Operator decision 2026-08-25: **Option A** — add the 4-arg `ValidateOrder` to the `IRiskManager` interface itself, implement it on `AdvancedRiskManager`, remove the `as BasicRiskManager` type-check workaround in `NT8StrategyBase.cs`, and fix `NT8OrderAdapter`'s validate-before-size ordering. No live-behaviour change; live path stays byte-identical.
|
||
- Prompt: `TASK_GAP050_ADVANCED_RISK_QTY_PROMPT.md`. Implemented Option A: `IRiskManager` now declares the quantity-aware 4-arg `ValidateOrder`; `AdvancedRiskManager` delegates Tier 1 through the quantity-aware `BasicRiskManager` overload while retaining 3-arg one-contract behavior; `NT8StrategyBase` uses the interface directly instead of an `as BasicRiskManager` type-check; `NT8OrderAdapter` sizes first, rejects zero-size, then validates risk with the sized contract count. Verification: focused Core 10/10, focused Integration 13/13, `verify-build.bat` 566/566, Core Release no-build 476/476. Deploy intentionally skipped by task prompt.
|
||
|
||
**[GAP-061] Expose raw AVWAP/slope/trend-confirm inputs in STATE_CONTEXT telemetry** | Stage 1 | ✅ IMPLEMENTED — deploy skipped by prompt
|
||
- Found during the "zero trades this week" investigation (`DEC-20260825-04`): every real breakout this week and on 2026-08-18 capped at Grade B/C, driven by `Trend=0.30` on every best short setup. Traced to a provable-from-source asymmetry — `trend_confirm` (`SimpleORBStrategy.cs:970`) is set to `avwapSlope > 0.0 ? 1.0 : 0.0`, unconditionally rewarding a *positive* slope regardless of trade direction. For a short trade, this is mutually exclusive with the correctly-aligned (negative-slope) bonus — a short can never earn both, even with a cleanly confirmed downtrend.
|
||
- Scoped observability-only: exposes `Avwap`/`AvwapSlope`/`TrendConfirm` raw values in `STATE_CONTEXT` (same class as GAP-059) so the remaining open question (whether early ORB-timing structurally blocks the price-vs-AVWAP bonus too) can be checked against real numbers. Does not fix `trend_confirm`'s asymmetry — that's a separate, not-yet-decided follow-up.
|
||
- Prompt: `TASK_GAP061_AVWAP_TELEMETRY_PROMPT.md`. Implemented as observability-only: `STATE_CONTEXT` now includes `Avwap` (`F2`), `AvwapSlope` (`F4`), and `TrendConfirm` (`F1`) when those existing `context.CustomData` keys are present. Missing keys are omitted with no placeholders. No scoring, `trend_confirm`, `STATE:`, `STATE_DETAIL:`, risk, sizing, or order-flow logic changed. Verification: focused tests 7/7, `verify-build.bat` 561/561, Core Release no-build 472/472. Deploy intentionally skipped by task prompt.
|
||
|
||
**[GAP-062] `trend_confirm` is direction-blind, capping every short's Trend factor** | Stage 1 | ✅ IMPLEMENTED — deployed 2026-08-26 by operator request
|
||
- Found while drafting GAP-061 (`DEC-20260825-04` addendum), independently re-confirmed by Kilocode's own GAP-061 commit writeback: `trend_confirm` (`SimpleORBStrategy.cs:970`) is `avwapSlope > 0.0 ? 1.0 : 0.0` — unconditionally rewards a positive slope regardless of trade direction. For a short, this is mutually exclusive with the correctly-aligned (negative-slope) `+0.3` bonus, capping every short's Trend score at 0.30 (or 0.70 with price below AVWAP) even with a cleanly confirmed downtrend. Matches real data exactly: every best real short setup this week and on 2026-08-18 scored `Trend=0.30`. With `MinTradeGrade=A`, this has silently vetoed every well-formed short setup.
|
||
- **Unlike GAP-050/GAP-061, this is a real scoring-behaviour change, not behaviour-neutral** — fixing it can newly qualify short setups that were previously capped below Grade A. Task requires symmetric before/after test proof (long-side unchanged, short-side now earns the same max score a symmetric long would) and explicit SIM before/after observation, not "none required."
|
||
- Prompt: `TASK_GAP062_TREND_CONFIRM_DIRECTION_PROMPT.md`. Implemented by publishing side-specific `trend_confirm_long`/`trend_confirm_short` inputs from `SimpleORBStrategy.UpdateConfluenceInputs()` and having `TrendAlignmentFactorCalculator` select the value matching `intent.Side`, leaving the `+0.4`/`+0.3`/`+0.3` additive score structure unchanged. Tests prove a short in a confirmed downtrend now reaches the same max Trend score as a symmetric long, a short against an uptrend does not earn trend confirmation, and long confirmed-uptrend behavior remains fully confirmed. Verification: focused Intelligence tests 89/89, `verify-build.bat` 569/569. Deployed after explicit operator request; backup `20260826_005308`. SIM before/after observation required because this is a scoring-behavior change.
|
||
|
||
### Standing item
|
||
The dirty working tree — several modified/untracked files including live strategy files — is still unresolved; recommend operator check `git status` directly on the machine.
|
||
|
||
---
|
||
|
||
## 🟢 PARALLEL — Non-Algorithm Product Work (safe during Gate Run #3)
|
||
|
||
**[DASH-001] Standalone Read-Only Dashboard** | Sprint 5 (pulled forward) | 🔵 ACTIVE
|
||
- Scope: `tools\dashboard\` — external app, reads `trades_*.jsonl`, `provenance_*.json`, `settings_*.txt`, `session_*.log` from disk. No NT8 assembly references, never compiled into `NinjaTrader.Custom.dll`, no writes back to NT8.
|
||
- v1 features: live trade state (session log tail), today's trades table (grade/score/runner-mode/session-tag), config/provenance panel (config_hash, EnableKillSwitch, TestMode, BarsPeriod), raw session log tail view.
|
||
- Explicit non-goal for v1: no control layer (pause/flatten/kill switch) — that's Sprint 6, different risk profile (writes to NT8).
|
||
- Zero-risk classification: safe to build, run, and iterate at any time, including while the gate strategy is armed. No timing-rule constraint applies.
|
||
- Approved: 2026-08-10 (Mo).
|
||
- Related: `docs/IDEAS_BACKLOG.md` (n8n AM Briefing — related but separate item), `NT8_SDK_Master_Document` Appendix B (Command Center spec — source of feature inspiration for external version).
|
||
- **Extension (2026-08-16):** Add outbound notification module to the dashboard's Python server (NOT to the NinjaScript strategy) using Apprise for unified Discord/Notifiarr/ntfy/etc. delivery. Alerts on FILL, SUBMIT, BREAKEVEN, CONNECTION LOST/RESTORED, daily P&L milestones. Bind server to 127.0.0.1 only, read-only endpoints, no POST/write routes. Poll interval must be explicit/configurable: 1-2s for live session-log tail, 5-10s for trades table/config panel.
|
||
- **Bugfix/Extension (2026-08-17):** Live server current-session selection now uses newest root-level `session_*.log` by file modification time and populates `current_session` even when notification offsets start at EOF. Dashboard adds a Bars/Days-Loaded panel from existing Historical readiness and FactorWarmup log lines.
|
||
- **[DASH-003] Bugfix/Extension (2026-08-17):** `/api/state` live trades now reads only the current session date's `trades_*.jsonl` instead of falling back to old historical trade records; `/api/state` also returns current-session rows/diagnostics so Daily Timeline, Config Integrity, Silent Day Explorer, and Decision/Defect headline populate without manual JSON load.
|
||
- **[DASH-004] Trading Console Alternate Dashboard Page (2026-08-17):** Add `console.html`, `console.css`, and `console.js` as a second read-only dashboard page. It uses only real `/api/state` fields, links back to the triage board, and avoids fabricated trade P&L, multi-instrument, or multi-timeframe telemetry.
|
||
|
||
**[DASH-002] Continuous Confluence & Regime Telemetry** | Weekend window 2026-08-16 | 🔵 ACTIVE
|
||
- Scope: `src\` source change — adds `EnableStateTelemetry` parameter emitting periodic factor/regime state to session log (currently only logged at signal time). Additive observability only; existing SIGNAL/SUBMIT/FILL/PNL_UPDATE lines must remain byte-for-byte unaffected.
|
||
- Requires gate strategy DISABLED for build+deploy+recompile. Confirmed disabled for this weekend window; must be verified clean and re-armed before Monday market open.
|
||
- Emission cadence to be proposed by Kilocode (wall-clock throttle, not per-primitive-bar) and approved before implementation.
|
||
- Prompt: `TASK_DASH-002_PROMPT.md`.
|
||
- decisions.md entry required once cadence is finalized.
|
||
|
||
---
|
||
|
||
## 🔵 ACTIVE — Gate 3 Preparation
|
||
|
||
**[RB-4.1] Gate Run #3 Configuration Freeze** | Human operator | 🔵 ACTIVE
|
||
- In SimSimple ORB, set and verify: `EnableDynamicStop=TRUE`, `RunnerActivationMode=Auto`, `RegimeGate=GradePenalty`, `MinTradeGrade=A`, `MaxDailyTrades=1`, `TestMode=FALSE`, `EnableFileLogging=TRUE`, `EnableVerboseLogging=TRUE`, and `LogDirectory=C:\\Users\\billy\\Documents\\NinjaTrader 8\\log\\nt8-sdk`.
|
||
- Export settings, retain the parameter hash and code-version stamp, and record `DEC-GATE3-CONFIG` with the gate start date.
|
||
- Freeze evidence is archived in `docs/gate-runs/gate3/baseline.json` (`freeze_20260816_170304`).
|
||
- Remaining acceptance: manual NinjaScript compile/re-arm completed, GAP-034 closed, and the no-deploy rule is in force at gate start.
|
||
|
||
---
|
||
|
||
## 📋 QUEUE — no deploy to the gate machine during a run
|
||
|
||
**[GAP-025] Runner/scaler order lifecycle invisible in the persistent session log** | Sprint 2.7 | ✅ IMPLEMENTED — deployed 2026-08-26
|
||
- Reading `OnOrderUpdate`/`OnExecutionUpdate` (`NT8StrategyBase.cs` ~1270-1345) on 2026-08-26 found the actual gap behind the old "runner no-fill anomaly" framing: `OnOrderUpdate` never writes to `FileLog` for any order state except `Rejected` (everything else — submitted, accepted, working, cancelled — is Print-only, invisible outside NT8's live Output window), and the `FILL` line in `OnExecutionUpdate` doesn't include the order/signal name, so scaler vs. runner fills can't be told apart from the file log at all.
|
||
- Scoped diagnostic-only: adds an `ORDER {signal} State=... Filled=.../... AvgFillPrice=...` FileLog line to `OnOrderUpdate` for every transition, and adds the signal name to the existing `FILL` line. Zero change to order submission, sizing, or execution-adapter logic.
|
||
- Prompt: `TASK_GAP025_RUNNER_ORDER_LIFECYCLE_LOGGING_PROMPT.md`. Implemented as additive logging only: `OnOrderUpdate` now writes realtime `ORDER SDK_... State=... Filled=.../... AvgFillPrice=...` lines for SDK-managed order transitions, and the existing `FILL` line now includes `Signal=...` so scaler/runner fills are distinguishable. Existing circuit-breaker, execution-adapter, and portfolio-risk callbacks were left unchanged. Verification: focused Adapter tests 81/81, `verify-build.bat` 572/572. Deploy backup `20260826_010153`.
|
||
|
||
**[GAP-022-FOLLOWUP] Connection-State Test Seam** | Sprint 2.7 | ⏳ QUEUED — branch-only during Gate Run #2
|
||
- Add an injectable connection-state seam around `NT8StrategyBase`.
|
||
- Then implement the three deferred scenarios: news-day reduced sizing, mid-trade disconnect, and pre-entry disconnect.
|
||
|
||
**[GAP-030] Historical ORB range hydration on a late strategy enable** | Sprint 2.7 | 🟡 PROMPTED — verify-first
|
||
- Traced on 2026-08-26: `SimpleORBStrategy.OnBar()`'s ORB-building logic is state-blind (no `State.Historical`/`Realtime` awareness at all in `StrategyContext`) and accumulates the range from whatever bars it's given; `NT8StrategyBase.OnBarUpdate()` doesn't currently block `State.Historical` bars from reaching it; and `ProcessStrategyIntent()` already has an explicit `State == State.Historical` guard blocking any real order from a historical-replay bar. **This suggests both halves GAP-030 originally asked for may already exist by construction** — but the task explicitly requires Kilocode to verify (not assume) that NT8 actually delivers same-day historical catch-up bars on a late enable before treating it as settled, and to only implement new logic if that verification finds a real gap; otherwise the task closes the missing test-coverage gap instead.
|
||
- Prompt: `TASK_GAP030_ORB_HYDRATION_VERIFY_PROMPT.md`.
|
||
|
||
**[GAP-007] Walk-Forward Validation** | Sprint 2.7 | ⏳ QUEUED — only after a passing Gate Run #2 ruling
|
||
|
||
---
|
||
|
||
## ✅ COMPLETED — Sprint 2.7
|
||
|
||
**[GAP-031] Trade Provenance Signal/Submission Wiring** | ✅ 2026-08-03
|
||
- Trade JSONL now serializes confluence grade/score and ORB ticks from the accepted intent metadata and the exact runner mode resolved for submission.
|
||
- Release build passed with zero errors; 498 tests passed; deployed source and assembly hashes match. Manual NinjaScript compile remains part of RB-4.1.
|
||
|
||
**[GAP-032] Session-Scoped MaxDailyTrades Enforcement** | ✅ 2026-08-03
|
||
- Position-flat updates no longer reset trade eligibility; the accepted-intent count persists until trading-date rollover.
|
||
- Same-session rejection logs `MaxDailyTrades reached`; next-session first entry is covered by tests.
|
||
- Release build passed; 500 tests passed; deployed source and assembly hashes match. Manual NinjaScript compile remains part of RB-4.1.
|
||
|
||
**[GAP-033] Session Historical-Readiness and Gate Safety Logging** | ✅ 2026-08-03
|
||
- Session startup logs `BarsRequiredToTrade`, resolved `DaysToLoad`, and actual loaded bars for every data series at DataLoaded and Realtime transition.
|
||
- Logs explicit 7-daily-bar NarrowRange and 5-daily-bar OrbRangeVsAtr readiness, warning without blocking when insufficient.
|
||
- Warns when `EnableKillSwitch=False` on an account containing `SimSimple`.
|
||
- Additive logging only; Release build and all 500 tests passed; deployed hashes match. Manual NinjaScript compile remains part of RB-4.1.
|
||
|
||
**[TASK-GOV-02] Governance Truth Reconciliation** | ✅ 2026-07-13
|
||
- Restored the July 11 historical record, corrected documentation placement, and logged DEC-20260713-02.
|
||
|
||
**[TASK-00a] Provenance Controls (reissued)** | ✅ 2026-07-13
|
||
- Session provenance, trade JSONL, SHA256 parameter hashing, settings export, TestMode state, and July 11 parameter export are implemented.
|
||
|
||
**[GAP-024] Session Tagging Data Layer** | ✅ 2026-07-13
|
||
- Exact `RTH_ORB`, `ETH`, `HOLIDAY`, and `EARLY_CLOSE` tags are written to provenance and trade records.
|
||
|
||
**[GAP-022] Scenario Tests** | 🟡 PARTIAL — 5/8 verified 2026-07-14
|
||
- Implemented with real assertions: high volatility rejection, low liquidity degradation, partial fill, daily-loss halt, and circuit-breaker open.
|
||
- Deferred honestly with source TODOs: news-day reduced sizing needs calendar/sizing-policy API; mid-trade and pre-entry disconnect scenarios need an injectable connection-state seam.
|
||
|
||
**[GAP-029] Code-Version Provenance Stamp** | ✅ 2026-07-14
|
||
- Session provenance, per-trade JSONL, settings exports, and SimpleORB snapshots now record the compiled assembly version plus module MVID.
|
||
- Each real-time signal also writes its TestMode/LIVE MODE state to the session file log.
|
||
|
||
---
|
||
|
||
## 📋 HISTORICAL RECORD: July 11 Sprint (Sprint 2) — COMPLETED
|
||
|
||
The following 11 tasks were completed on 2026-07-11 and are already implemented in code. They were incorrectly erased/re-queued during a prior governance rewrite; this record preserves their actual completion dates.
|
||
|
||
| Task | Sprint | Date | Status |
|
||
|---|---:|---|---|
|
||
| TASK-06a Runner Mode | 2 | 2026-07-11 | ✅ |
|
||
| TASK-06b ATR Dynamic Stop | 2 | 2026-07-11 | ✅ |
|
||
| GAP-019 Portfolio Heat | 2 | 2026-07-11 | ✅ |
|
||
| GAP-003 RiskPerTrade Assert | 2 | 2026-07-11 | ✅ |
|
||
| GAP-004 orbRangeTicks Fix | 2 | 2026-07-11 | ✅ |
|
||
| GAP-005 GetRiskStatus Live | 2 | 2026-07-11 | ✅ |
|
||
| GAP-006 Position-Close Re-arm | 2 | 2026-07-11 | ✅ |
|
||
| GAP-010 Short-Side Filter | 2 | 2026-07-11 | ✅ |
|
||
| GAP-008 CME Holiday | 2 | 2026-07-11 | ✅ |
|
||
| GAP-009 ATR Trailing | 2 | 2026-07-11 | ✅ |
|
||
| GAP-011 Gitea CI | 2 | 2026-07-11 | ✅ |
|
||
|
||
---
|
||
|
||
## 📋 Sprint 3 Backlog — deferred until Gate Run #2 ruling
|
||
|
||
- TASK-06d — VWAP Mean Reversion
|
||
- GAP-013 — ContractRollHandler completion
|
||
- GAP-014 — LiquidityMonitor Level II preparation
|
||
- GAP-015 — Config JSON export/import
|
||
- MNQ-001 / MNQ-002 — MNQ preparation and parameter calibration
|