[GAP-061]: AVWAP state context telemetry complete
- SimpleORBNT8.cs: append Avwap, AvwapSlope, and TrendConfirm to STATE_CONTEXT when CustomData contains them - SimpleORBNT8DefaultsTests.cs: add source assertions for AVWAP telemetry formatting, missing-key omission, and no scoring/log-format changes - SPRINT_BOARD.md/decisions.md: record observability-only implementation and direction-blind trend_confirm finding Build: clean | Tests: 561 passing; Core 472 passing | Dual-deployed: no - skipped by prompt
This commit is contained in:
@@ -24,6 +24,16 @@ Use this file to record durable project decisions that affect implementation pat
|
||||
- **Related Files:** `src/NT8.Adapters/Strategies/NT8StrategyBase.cs` (`MaybeWriteRejectSummarySnapshot`/`LogRejectRateLimited`/`ResetRejectTracking`/`WriteSessionHeader` ~1444-1517), `src/NT8.Strategies/Examples/SimpleORBStrategy.cs` (`OnBar` ~355-432, `RecordSignalRejection` ~1015-1026), `session_20260823_230519.log`
|
||||
- **Implementation Note (2026-08-25):** GAP-060 implemented as logging/observability only. `NT8StrategyBase.MaybeWriteRejectSummarySnapshot()` no longer has a blanket midnight-to-10:00 AM suppression gate; suppression now delegates to an ORB-window-aware helper and `SimpleORBNT8` overrides that helper so the suppressed window is today's configured 09:30 + `OpeningRangeMinutes`. The once-after-ORB snapshot flag now resets per `barTime.Date`, allowing a new post-ORB summary every day in a continuous multi-day session. `OnBarUpdate()` now calls `MaybeWriteRejectSummarySnapshot(Time[0])` on the live bar heartbeat after the first realtime-bar guard, so 15-minute summary cadence can flush from regular processed bars and is not solely dependent on a newly logged reject. Existing `_rejectDetailsLogged` one-detail-line-per-reason rate limiting, reject reason strings, `REJECT:`/`REJECT SUMMARY:` formats, order flow, sizing, risk, and real trade decisions were unchanged. Open question resolved as possibility **(a)**: the missing `OrbRangeNotEstablished` visibility was adapter summary reporting, not a second SimpleORB rejection defect. A focused `SimpleORBStrategy.OnBar()` test proves the no-breakout RTH path records `OrbRangeNotEstablished` both while the ORB is building and after ORB close when no breakout confirms. Verification: focused GAP-060 tests passed 8/8; `verify-build.bat` passed with 543/543 tests (454 Core, 79 Integration, 10 Performance); `dotnet test tests\NT8.Core.Tests\NT8.Core.Tests.csproj --configuration Release --no-build --verbosity minimal` passed 454/454.
|
||||
- **Action Required:** Deployment remains pending. `deployment\deploy-to-nt8.bat` was attempted on 2026-08-25 but failed because NinjaTrader.exe PID 18800 locked `NT8.Core.dll`; operator instructed Kilocode to commit without deploy. After NinjaTrader is closed, rerun deployment, start NT8, manually compile NinjaScript, and in the next SIM session spanning a full trading day confirm `REJECT SUMMARY` appears throughout RTH at a reasonable cadence.
|
||||
### DEC-20260825-04
|
||||
- **ID:** DEC-20260825-04
|
||||
- **Date:** 2026-08-25
|
||||
- **Status:** GAP-061 implemented; trend calibration follow-up undecided
|
||||
- **Context:** Zero-trade investigation found real short-side breakout evaluations capped below Grade A, with `Trend=0.30` as the common driver on the best setups. Source read confirmed `TrendAlignmentFactorCalculator` adds `+0.4` for price on the trade side of AVWAP, `+0.3` for slope aligned with trade direction, and `+0.3` for `trend_confirm > 0.5`.
|
||||
- **Finding:** `trend_confirm` is direction-blind in `SimpleORBStrategy.UpdateConfluenceInputs()` (`context.CustomData["trend_confirm"] = avwapSlope > 0.0 ? 1.0 : 0.0`). For short trades, slope alignment requires `avwapSlope < 0.0`, while `trend_confirm` requires `avwapSlope > 0.0`; a short can therefore earn one or the other, but not both, even in a clean bearish trend. GAP-061 does not fix this scoring asymmetry; it only exposes raw telemetry for operator review.
|
||||
- **Decision:** Implement the selected observability-only instrumentation. Do not change `trend_confirm`, scoring, `MinTradeGrade`, risk, sizing, or order flow in this task.
|
||||
- **Implementation Note (2026-08-25):** `SimpleORBNT8.GetStateTelemetryContextFields()` now appends `Avwap` (`F2`), `AvwapSlope` (`F4`), and `TrendConfirm` (`F1`) from existing `context.CustomData` keys when present, omitting each field entirely when the key is missing or non-numeric. The ORB-readiness gate and existing `OrbHigh`/`OrbLow`/`OrbWindowStart`/`OrbWindowEnd`/`OrbReady` fields are unchanged. No `UpdateConfluenceInputs()`, `TrendAlignmentFactorCalculator`, `trend_confirm`, scoring, `STATE:`, `STATE_DETAIL:`, risk, sizing, or order-flow logic changed. Verification: focused `SimpleORBNT8DefaultsTests` passed 7/7; `verify-build.bat` passed with 561/561 tests (472 Core, 79 Integration, 10 Performance); `dotnet test tests\NT8.Core.Tests\NT8.Core.Tests.csproj --configuration Release --no-build --verbosity minimal` passed 472/472. Deploy intentionally skipped by task prompt.
|
||||
- **Related Files:** `src/NT8.Adapters/Strategies/SimpleORBNT8.cs`, `tests/NT8.Core.Tests/Adapters/SimpleORBNT8DefaultsTests.cs`, `TASK_GAP061_AVWAP_TELEMETRY_PROMPT.md`
|
||||
- **Action Required:** Operator decision still needed on whether to fix direction-blind `trend_confirm` or revisit Trend/MinTradeGrade calibration after reviewing real `STATE_CONTEXT` values from a deployed session.
|
||||
### DEC-20260825-02
|
||||
- **ID:** DEC-20260825-02
|
||||
- **Date:** 2026-08-25
|
||||
|
||||
Reference in New Issue
Block a user