# Project Context — NT8 SDK **Last Updated:** 2026-05-04 (Sprint 3 reboot) **Master Reference:** `NT8_SDK_Master_Document_v6_Final.docx` (22 sections + Appendices A–F) ## Mission Ship safe, compile-stable NT8 trading software. Execute the sprint board. Self-maintain documentation. --- ## Session Start (Mandatory — read in this order) 1. `docs/00-governance/executive_summary.md` — current system state 2. `docs/00-governance/current_status.md` — what is working, what is active, what is next 3. `docs/00-governance/active_work.md` — the specific task being implemented 4. `SPRINT_BOARD.md` — full task queue and status 5. `.kilocode/rules/self_learning_loop.md` — mandatory end-of-session protocol **Do not begin coding until you know:** - Which exact task is ACTIVE - Which files you are allowed to touch - What the acceptance criteria are --- ## Session End (Mandatory — do not skip) Follow `.kilocode/rules/self_learning_loop.md` completely. All 6 steps. Every time. --- ## Hard Constraints (Non-negotiable) - C# 5.0 only — no `$""`, no `?.`, no `=>` expression-bodied members, no `async/await` - Verify NT8 API signatures at `https://developer.ninjatrader.com/docs/desktop` before any implementation - Dual-deploy rule: every change to `src/NT8.Adapters/Strategies/` MUST ALSO go to `C:\Users\billy\Documents\NinjaTrader 8\bin\Custom\Strategies\` in the same task - Delete `NinjaTrader.Custom.dll` before NT8 startup on every deploy (deploy script handles this) - `SetStopLoss` / `SetProfitTarget` MUST be called BEFORE `EnterLong` / `EnterShort` - `EntriesPerDirection = 2` required for dual-leg Runner Mode 1 architecture --- ## File Touch Scope - Modify ONLY files explicitly listed in the active task spec - Do not touch adjacent files for cleanup or style-only changes - If a required fix is outside scope, stop and add it as a BLOCKED item in SPRINT_BOARD.md - Respect `.kilocode/rules/file_boundaries.md` at all times --- ## Known Architecture State - Runner leg redesigned in Sprint 3 (TASK-06a): RunnerMode enum replaces Qty≥2 gate - ATR dynamic stop added in Sprint 3 (TASK-06b): EnableDynamicStop parameter - Portfolio Heat (Tier 3.5) added in Sprint 3 (GAP-019): MaxHeatPct enforcement - All prior tasks TASK-01 through TASK-05 are COMPLETE (archived in docs/archive/completed-tasks/) --- ## Git Commit Format (always follow this) ``` [TASK-ID]: [task name] complete - [file]: [what changed] - SPRINT_BOARD.md: [old] → [new active] - NEXT_PROMPT.md: staged [next task] Build: clean | Tests: [N] passing ```