The Trading Engine Blueprint is the complete engineering guide — gates, ladders, guards, journaling, operations — distilled from an engine that runs live money unattended every market day. With a fully commented Python reference implementation.
Most trading-bot content sells you a signal. Signals are hypotheses — most fail. What separates a weekend script from an engine you can trust with real money is everything around the signal:
Why breadth beats index gates, live-vs-daily arming, and the solo-leader exception — the code that keeps you in cash through chop.
The tiered trail/lock ladder — and the production bug where locks silently loosened on the way down, told in full so you never ship it.
Milestone ladders that ratchet a hard floor under every gain, and a kill switch a human must reset.
CPI/FOMC calendar blocks, VIX brakes, and why guards must pause rotations too — the layer almost every home-built engine is missing.
Dry-runs that make orders impossible, idempotent order ids, marketable limits, and reconciling against fills instead of intentions.
The two-loop cron architecture, flocks, market calendars, GFV/T+1 rules for cash accounts, journals, and the daily report that stops you from interfering.
Architecture → gates → ladders → guards → broker seam → operations → an honest chapter on edge, closing with a four-week build order. Clean HTML: read anywhere, print to PDF.
engine.pythe main loop — how everything composesladder.pymilestone floors + peak-ratchet profit locksregime.pybreadth gate · index trend · VIX brakemacro_guard.pyeconomic-calendar entry guardbroker.pyadapter pattern + the sacred dry-runjournal.pyJSONL journal · reconcile · scorecardindicators.pySMA · EMA · RSI · ATR · extensionconfig.example.jsonevery tunable in one placecrontab.examplethe two-loop cron architecture