[GAP-062]: trend confirm direction fix complete
- src/NT8.Strategies/Examples/SimpleORBStrategy.cs: publish side-specific trend confirmation values - src/NT8.Core/Intelligence/FactorCalculators.cs: score trend confirmation by intent side - tests/NT8.Core.Tests/Intelligence/OrbConfluenceFactorTests.cs: add long/short symmetry coverage - SPRINT_BOARD.md: GAP-062 prompted -> implemented - docs/00-governance/current_status.md: updated GAP-062 status - docs/00-governance/decisions.md: recorded DEC-20260826-01 - TASK_GAP062_TREND_CONFIRM_DIRECTION_PROMPT.md: committed task prompt Build: clean | Tests: 569 passing | Dual-deployed: yes, backup 20260826_005308
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# NT8 SDK — Sprint Board
|
||||
**Last Updated:** 2026-08-18 (v7.0 review — six new tasks staged)
|
||||
**Last Updated:** 2026-08-26 (GAP-062 implemented — trend_confirm direction fix; deploy skipped by prompt)
|
||||
**Truth source:** compiler output, test output, deployed-file comparisons, and runtime artifacts override board claims.
|
||||
|
||||
## Current gate state
|
||||
@@ -80,6 +80,10 @@
|
||||
- `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.
|
||||
@@ -90,15 +94,21 @@
|
||||
|
||||
**[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. Source read confirmed the sharper asymmetry: `trend_confirm` is `avwapSlope > 0.0 ? 1.0 : 0.0`, while short-side slope alignment requires `avwapSlope < 0.0`, so a short cannot earn both bonuses.
|
||||
- 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.
|
||||
### Also raised by the review, not yet prompted
|
||||
GAP-051 (`MicroUpgradeThreshold` fires every session) · GAP-052 (two hardcoded tick-value tables) ·
|
||||
GAP-053 (`executive_summary.md` and `roadmap.md` Sprint 3 list present ~12 completed tasks as open) ·
|
||||
plus the standing dirty working tree — 17 modified, 5 untracked, including two live strategy files.
|
||||
|
||||
**[GAP-062] `trend_confirm` is direction-blind, capping every short's Trend factor** | Stage 1 | ✅ IMPLEMENTED — deploy skipped by prompt
|
||||
- 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. Deploy intentionally skipped by task prompt; 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.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user