Files
nt8-sdk/TASK_GAP056_INERT_BREAKEVEN_PARAMS_PROMPT.md
mo cdd9aa25bb [GAP-056]: inert breakeven params hidden
- NT8StrategyBase.cs: hide inert breakeven parameters with Browsable(false) and unused descriptions

- SimpleORBNT8.cs: label settings export AutoBreakeven values as unused compatibility fields

- NT8StrategyBaseBreakevenParamsTests.cs: add source assertions for hidden/inert parameters and no order-flow reads

- SPRINT_BOARD.md/decisions.md: record Option A and verification evidence

Build: clean | Tests: 555 passing; Core 466 passing | Dual-deployed: no - skipped by prompt
2026-08-25 13:30:11 -04:00

4.5 KiB

TASK: GAP-056 — EnableAutoBreakeven/BreakevenTriggerTicks/BreakevenOffsetTicks are fully inert

Staged: 2026-08-21 (found during GAP-054 verification, DEC-20260821-01), promoted 2026-08-25

Sprint: Stage 1 — UI/hygiene, zero trading-behaviour risk (parameters already do nothing)

Owner: Kilocode

Deploy: COMMIT ONLY — do NOT run deploy-to-nt8.bat or copy build output to

the live NT8 install as part of this task. Verify-build and commit

as usual; leave the deploy step for the operator to run manually

once ready.

─────────────────────────────────────────────────────────────────

THE DEFECT

EnableAutoBreakeven, BreakevenTriggerTicks, and BreakevenOffsetTicks are declared, defaulted (EnableAutoBreakeven=true, BreakevenTriggerTicks =20, BreakevenOffsetTicks=1), and exposed in the strategy's NinjaTrader UI — but do nothing. GAP-054 removed the only code path that ever read them (the runner breakeven block that was clobbering the trailing stop — SetStopLoss() on _runnerSignalName). There was never a separate scaler-leg breakeven implementation for them to still govern; confirmed by direct source read during GAP-054 verification (DEC-20260821-01).

This is not a trading-risk item — inert means harmless, the strategy behaves identically regardless of these values — but an operator who sets EnableAutoBreakeven=true in the NinjaTrader UI would reasonably expect it to do something, and currently it silently doesn't.

READ-FIRST

  1. Read DEC-20260821-01 in docs/00-governance/decisions.md for the full finding.
  2. Grep NT8StrategyBase.cs/SimpleORBNT8.cs for all three parameter names to confirm they are genuinely unread anywhere (declaration and settings-export/log line only) before changing anything — don't take the DEC entry's claim at face value, re-verify it's still true now that GAP-054/060/059/051/052 have all landed since.

THE CHANGE — pick one, and say which and why in your writeback

Option A — mark unused, keep declared. Add [Browsable(false)] (or update the [Display]/Description attribute text to state "Currently unused — no code path reads this value") to all three parameters so they no longer appear as live controls in the NinjaTrader UI, or at minimum no longer look actionable. Smallest diff, reversible, no risk of breaking anything that might reference them by name (e.g. saved workspace templates, settings_*.txt exports).

Option B — remove outright. Delete the three parameters entirely, including their settings-export/log line. Larger diff, cleaner end state, but check whether settings_*.txt parsing (dashboard, TOOL-002 config drift detector, or anything else that reads exported settings files) depends on these fields being present before removing — if so, either keep them in the export with a literal "unused" value or confirm nothing downstream breaks.

Default to Option A unless you find a concrete reason Option B is safe and clearly better — state that reasoning either way.

DO NOT

  • Do not re-add any breakeven logic — the removal in GAP-054 was correct and intentional (that's what fixed the runner's trailing stop). This task is about the now-dead parameters, not about restoring behavior.
  • Do not change SetStopLoss/SetTrailStop order-flow logic at all.
  • Do not touch the runner/scaler trail mechanism GAP-054 fixed.

TESTS (required)

  1. Whichever option is chosen: a test confirming the parameter(s) are genuinely unread by any code path that affects order flow, sizing, or risk (source-text assertion is fine given this class's established precedent — same pattern as prior SimpleORBNT8DefaultsTests.cs/ NT8StrategyBaseRejectSummaryTests.cs tests this session).
  2. If Option B (removal): a test or explicit confirmation that settings-export/log parsing elsewhere in the codebase does not depend on these three fields being present.

VALIDATION (operator)

None required for correctness — this is UI/hygiene only, no order flow, sizing, or risk behavior changes either way. If Option A is chosen and you want visual confirmation, open the strategy's NinjaTrader parameter dialog and confirm the three fields read as unused/non-browsable as intended.

GOVERNANCE

Track as [GAP-056] in SPRINT_BOARD.md. Update docs/00-governance/decisions.md DEC-20260821-01 status to note GAP-056 implemented, which option was chosen and why. Reference: this task, DEC-20260821-01.