80 lines
4.4 KiB
Markdown
80 lines
4.4 KiB
Markdown
# TASK: DASH-001 — Standalone Read-Only Dashboard (v1 scaffold)
|
|
# Staged: 2026-08-10
|
|
# Sprint: Parallel Product Work (safe during Gate Run #3 — does NOT touch NT8 or the strategy DLL)
|
|
# ─────────────────────────────────────────────────────────────────
|
|
|
|
## Critical framing — read this first
|
|
|
|
This is **not** a NinjaScript task. This tool never references NT8 assemblies, is never
|
|
deployed via `deployment\deploy-to-nt8.bat`, and is never compiled into
|
|
`NinjaTrader.Custom.dll`. **None of the C# 5.0 / .NET Framework 4.8 constraints that
|
|
apply elsewhere in this repo apply here.** Modern C#/.NET, or another stack entirely, is
|
|
fine — see step 2.
|
|
|
|
It reads existing on-disk artifacts only. It never writes to NT8, never connects to a
|
|
brokerage, and never submits orders. It is safe to build, run, and iterate on at any time,
|
|
including while a gate strategy is armed and trading, because it shares no process, no
|
|
DLL, and no compiled code with NT8.
|
|
|
|
## READ-FIRST (no scaffolding yet)
|
|
|
|
1. Review these real sample files to confirm the actual schema (field names/types can
|
|
drift from documentation — trust the files):
|
|
- `trades_Simple_ORB_NT8_20260730.jsonl` — note some pre-8/3 files show
|
|
`confluence_grade:"Unknown"` and `confluence_score:0.0`; the reader must handle this
|
|
as a valid historical state, not an error.
|
|
- `provenance_Simple_ORB_NT8_20260730_081321.json` — full config snapshot per session,
|
|
includes `config_hash`, `ninjascript_properties` (all NinjaScript parameters),
|
|
`test_mode_banner`, `session_tag`.
|
|
- Any `settings_Simple_ORB_NT8_*.txt` — human-readable export, useful as fallback/cross-check.
|
|
- Any `session_*.log` — note two log verbosity levels exist: some lines
|
|
(`SIGNAL`, `SUBMIT`, `FILL`, `PNL_UPDATE`, `BREAKEVEN`, `RUNNER closed`,
|
|
`CONNECTION LOST`/`RESTORED`) print regardless of `EnableVerboseLogging`; confirm
|
|
which lines are verbose-gated vs always-on by comparing a `VerboseLog:True` and a
|
|
`VerboseLog:False` session file.
|
|
- Confirm the actual `LogDirectory` path in current provenance:
|
|
`C:\Users\billy\Documents\NinjaTrader 8\log\nt8-sdk`.
|
|
2. `tools\market-data\` and `tools\replay\` are both currently empty — there's no existing
|
|
stack convention in this repo's tooling to match. Propose a stack (e.g. a small local
|
|
web server + browser UI) with a one-paragraph rationale, and **stop for approval before
|
|
scaffolding** — don't guess and build.
|
|
3. Confirm file-watching approach for "live" behavior — these are files being appended to
|
|
by a separate running process (NT8), not files under this tool's control. Plan for
|
|
safe concurrent reads (the writer may have a file open) and partial-line handling on a
|
|
JSONL file mid-write.
|
|
|
|
## v1 SCOPE (after stack approval)
|
|
|
|
Build only:
|
|
1. **Live trade state** — tail the most recent session log's `PNL_UPDATE`/`FILL`/
|
|
`RUNNER closed`/connection-event lines.
|
|
2. **Today's trades table** — parsed from today's `trades_*.jsonl`: timestamp, side, qty,
|
|
grade, score, resolved_runner_mode, session_tag. Render `"Unknown"`/`0.0` gracefully,
|
|
not as an error state.
|
|
3. **Config/provenance panel** — from the latest `provenance_*.json`: `config_hash`,
|
|
`EnableKillSwitch`, `TestMode` / `test_mode_banner`, `BarsPeriod` (or its absence,
|
|
pending the separate ConfigHash fix), `session_tag`.
|
|
4. **Raw session log tail** — scrolling, filterable, no interpretation layer.
|
|
|
|
## EXPLICIT NON-GOALS for v1
|
|
|
|
- No control layer — no pause/flatten/kill-switch/order submission of any kind. Read-only.
|
|
- No NT8 process interaction of any kind — file reads only.
|
|
- No write access to any file in `C:\dev\nt8-sdk\src\` or the NT8 deployed strategy folder.
|
|
|
|
## VALIDATION
|
|
|
|
- Confirm the tool has zero references to NT8 assemblies or NinjaScript namespaces.
|
|
- Confirm it can run fully standalone with NT8 closed, using only historical files, and
|
|
separately while NT8/the gate strategy is running, with no lock conflicts on the log
|
|
files.
|
|
- Report back the proposed stack and file layout under `tools\dashboard\` before writing
|
|
any application code.
|
|
|
|
## GOVERNANCE
|
|
|
|
- This is tracked as `[DASH-001]` in `SPRINT_BOARD.md` under "PARALLEL — Non-Algorithm
|
|
Product Work."
|
|
- No `decisions.md` entry needed for the scaffold itself; log one only if a
|
|
schema ambiguity forces a judgment call (e.g. how to represent `"Unknown"` grades).
|