How chi2tseng/nq-replay-trainer works
NQ Replay Trainer is a static futures-market replay and practice app. The main workflow is to select a dataset and session, inspect or replay bars on a chart, place and manage simulated orders, then review trade analytics; browser storage retains practice state. The README also documents drawing tools, indicators, multiple timeframes, and CSV export. A separate quiz engine supports entry-practice questions. The app logic is concentrated in src/app.js; unsampled implementation details are represented only where README statements support them.
Main entry points: app.js Replay Controls · quiz.js Quiz Engine · lightweight-charts.standalone.production.js Price Chart · NQ_db_1m.json Market Datasets
Components 17
Replay Practice
- Market Datasets
data/NQ_db_1m.json - Replay Controls
src/app.js - Timeframe Aggregation
src/app.js - Price Chart
lib/lightweight-charts.standalone.production.js - EMA Clouds
src/app.js - Drawing Tools
src/app.js
Orders And Analysis
- Manual Orders
src/app.js - Fill Simulation
src/app.js - ATM Management
src/app.js - Trade Log
src/app.js - Trade Analytics
src/app.js - CSV Export
src/app.js
Quiz Practice
- Quiz Engine
src/quiz.js - Quiz Questions
Browser Runtime
- Browser Storage
Other components
- Learner
- Web Browser
Connections 20
- Learner → Replay Controls: selects session
- Market Datasets → Replay Controls: supplies bars
- Replay Controls → Timeframe Aggregation: aggregates bars
src/app.js - Replay Controls → Price Chart: renders replay
- Timeframe Aggregation → Fill Simulation: provides sub-bars
src/app.js - Replay Controls → EMA Clouds: displays indicators
src/app.js - Learner → Drawing Tools: places drawings
- Drawing Tools → Price Chart: draws on chart
src/app.js - Learner → Manual Orders: places orders
- Manual Orders → Fill Simulation: simulates fills
src/app.js - Manual Orders → ATM Management: applies ATM
src/app.js - Fill Simulation → Trade Log: records trades
src/app.js - Trade Log → Trade Analytics: summarizes trades
src/app.js - Trade Analytics → CSV Export: exports CSV
src/app.js - Learner → Quiz Engine: answers questions
src/quiz.js - Quiz Questions → Quiz Engine: loads questions
src/quiz.js - Quiz Engine → Price Chart: creates chart
src/quiz.js - Web Browser → Replay Controls: hosts app
- Replay Controls → Browser Storage: persists state
- Trade Log → Browser Storage: persists trades