System Configuration & Maintenance
Global trade-plan defaults and destructive paper-trade maintenance
System Kill Switch
Desk-wide operational state, stored in optionforge.tbl_system_kill_switch. This is not the STOP ORDERS button in the ribbon. STOP ORDERS is the one-click operator halt and needs no PIN; this is the durable desk posture. Each state below adds one restriction to the one above it. Only PROTECTIVE_EXIT liquidates — it is the state that sends sell orders, and misreaching for it is what produced 37 sell orders on 2026-10-02. To stop the desk without selling anything, use ENTRY_LOCKOUT or FULL_STOP.
| State | New entries | Open positions | Outbound orders |
|---|---|---|---|
| NORMAL | Allowed | Managed normally | Allowed |
| ENTRY_LOCKOUT | Blocked | Managed normally | Allowed |
| PROTECTIVE_EXIT | Blocked | Flattened — sends sell orders | Allowed |
| FULL_STOP | Blocked | Frozen — nothing automated acts | Blocked, including exits |
—
—
—
Saved.
Corrected 2026-10-02 (v7.83). Previously ENTRY_LOCKOUT and FULL_STOP both flattened the book — the exit overlay read the same blocks_new_entries flag that gates entries — while PROTECTIVE_EXIT was read by nothing. Liquidation now hangs off its own predicate, and an unreadable switch blocks new entries without selling anything.
Autonomous Trading (AT)
While ON, the Screen 300 Short List is staged, planned (Recalculate Optimal Sizing) and armed into the Trade Queue by the clock — 08:05–08:25 CT, rank order, one side per name — and Execution Awareness takes over exactly as it does for a hand-queued entry. AT never transmits itself. It leaves alone any name you have already touched this session (a NO-GO stamp, a staged workspace, an active queue claim) and any Short List row without a lean. The kill switch and STOP ORDERS still rule it. Stored in tbl_settings; survives redeploy.
—
—
—
A cap only reduces the planned contract count (premium × 100 × n ≤ cap). Default = the plan's own risk-budget sizing.
Refill is the original behaviour. 2026-11-11: clearing the queue at 09:02 CT freed slots and AT armed TNGX and INTC behind the operator's back — Allocated only prevents that.
The same pair Screen 100's Stage Call & Put makes by hand: EA sends whichever location admits first and the first fill retires the other. A pair holds one slot and one Max $ per side. Its own switch, separate from Intraday AT's. Ships OFF. With it ON a no-lean Short List row is taken too, in rank order, as an either-way pair (single bias leaves it to the operator); its bell read is its own cohort, never a lean verdict.
Intraday AT (3 % mover lane)
A second autonomous lane, separate from the pre-market pass above — its own switch, caps, window, run log and thesis label (Source: Intraday AT). While ON, 09:15–14:00 CT it reads the Screen 050 Intraday Movers table for names first seen within the last Max age minutes, takes only those whose volume pace, CMF(20) and daily 5/13 pass the gates below, and stages, plans and arms them into the Trade Queue the same way a hand does — the broker prices the plan; the mover's vendor fields never touch it. It leaves alone any name you have touched this session and never adopts an orphan shell. Ships OFF (operator 2026-11-14): the movers are tracked and graded from first sight first; the lane is armed once the scorecard earns it.
—
—
—
The gates above qualify the name (moving, on volume, with the daily flow); EA's location read picks the side and the first fill retires the other — a 3 % impulse that fails is a trade too. One slot per pair. Its own switch, separate from the pre-market lane's. Ships OFF.
The worker reads every universe name's pre-market print against its prior close off the same Massive stream, 07:00–08:30 CT (price ≥ $10, |gap| ≥ 2 %, ≥ 25k shares) — the TradingView Premarket Losers / Gainers list, native. The rows are measured either way; with this ON a gap-down name reaches the Short List's bearish seats on its own instead of by hand. Ships OFF until the bell read's GAP_DOWN cohort has ten sessions.
Climax AT (pre-market spike & reversal / continuation)
A third autonomous lane, separate from both passes above — its own switch, caps, window, run log and thesis label (Source: Climax AT). While ON, 08:10–08:28 CT it reads the worker's pre-market gap table for the climax shape — a spike (not a gap) on pre-market volume that is still holding its extension into the bell — and arms each one as an either-way pair: the reversal leg (a spike-up's PUT, a spike-down's CALL) that EA admits on the first against-spike TURN after 08:30 (the IOB turn, sized by the opening single), and the continuation leg (the spike's own side) held until the print takes out the pre-market extreme read from DXLink. The first fill retires the other. It leaves alone any name you or another lane already hold and never adopts an orphan shell. Ships ON (operator 2026-11-23: "have it armed for tomorrow's open" — the Monday AMD / SNDK / AVGO / ORCL tape).
—
—
—
Without a DXLink read of the extreme the continuation leg is not armed — the worker's row is discovery only and never becomes a level on a claim.
Post-close desk clear (Screen 101)
At 17:00 CT on a trading day — after the RTH close — the closed session's unfilled Trade Entry rows leave Screen 101: a saved plan from before that close (15:00 CT) that never filled and that nothing live still claims (no armed / queued entry). Plans stay in history; the ticker + side slot is free for AT or a fresh stage. Anything saved after the close — evening, weekend, pre-market — stays until the next session has closed (operator 2026-11-21). 2026-11-13: AT skipped LUNR (#2) on a Thursday leftover. One Telegram names what was cleared. Stored in tbl_settings.
—
—
Multi-Day Queue Interest (carry the thesis, not the arm)
TTWO-shaped misses: a hand-staged name never fills under same-session book / geometry holds, then moves. Keep on Screen 200 cancels today's arm and marks interest (ticker + lean). Interest survives morning clear and session rollover; the arm does not (2026-10-15). When ON, each RTH at 07:35–08:00 CT re-stages carried names through Quick Queue under tighter gates: WITH structure only, book ≤ the ceiling below, half size on the first carried session, no late opening-drive chase. Expires after N sessions without a fill. OFF (default): Keep still marks rows; no restage and no tighter Gate 2 holds until you turn it on. Stored in tbl_settings / tbl_queue_interest.
—
—
—
House-Money Carry (overnight runner)
A climax scale-out that sells half at ≥ 2.0× entry has paid for the whole lot; the remainder is HOUSE_MONEY and runs on the planned stop + a Session VWAP completed close only (no bar trail, no ladder, no 9 EMA exit). At 14:45 CT each house-money runner is read through the carry gate — mark ≥ entry, sold ≥ runner, DTE ≥ 2, |Δ| ≥ 0.75 or extrinsic ≤ 10 %, close with the trend, no earnings. OFF (default): an eligible read is a read-only Telegram — select SWING on Screen 202 to hold. ON: an eligible read promotes the lot to SWING [HOUSE MONEY] and spares it the 14:45 CT flatten; a DAY pin on 202 still wins. Every read is scored against the next session (table below). Stored in tbl_settings.
—
—
EOD Trend Carry (open DAY lots)
KLAR / OMER 11-17: both DAY lots were closed into the 14:45 CT flatten and both gapped up with the tape the next morning (+5.0 % / +4.2 %, SPY +0.3 %). At 14:38 CT every open DAY lot that is not a house-money runner is read through the trend gate — lot green (mark ≥ entry), last completed 3m bar on the trade's side of session VWAP and the print in the top third of the day range (bottom third for a put), SPY and the name's sector ETF on the trade's side of their own VWAPs, DTE ≥ 2 at the next session, no earnings. OFF (default): every read lands in the carry ledger (lane TREND) with a read-only Telegram — select SWING on Screen 202 to hold — and is scored against the next session the same way as a house-money read. ON: an eligible read promotes the lot to SWING [TREND CARRY] and spares it the flatten; a DAY pin on 202 still wins. Ten sessions of scored reads before ON. Stored in tbl_settings.
—
—
Climax Reversal Re-entry (re-entry bound 10)
A profit exit (trail / climax / VWAP) re-arms the same side only — right when a trend pauses, wrong on a V-day. CRWV 11-13: 56.06 open, 49.24 low at 09:36 CT, 53.11 close; the put left on a CLIMAX exit at the bottom and the retired call was the afternoon trade. ON: when the filled side of an either-way pair (Stage Call & Put, or AT dual bias) leaves on a profit exit whose regime at close is CLIMAX, the side its fill retired comes back as the reversal trade beside the same-side child — one attempt for the pair, the workspace Reverse re-entry switch still gates it, same new-structure gate (the call needs a higher low after the exit minute), cap, loss cap and 14:30 CT cutoff. A TREND-regime exit never revives the other side. OFF (default): bounds 7–9 as before, no reversal leg. Stored in tbl_settings.
—
Execution / Test Controls
After-hours automated transmission harness. When enabled outside RTH, AUTO-armed entries fire a Day ticket after 60 seconds (TastyTrade queues it for the next valid session), then auto-cancel at TastyTrade after 5 minutes. Safety: this toggle cannot be turned on while the regular session is open.
Mode: OFF
Saved.
Sub-second DXLink quotes stay in the in-process tick cache unless this is on. This is an arming switch, not a firehose: while it is on, each trade you commit from Screen 102 records its own underlying and option NBBO to optionforge.market_underlying_ticks and market_option_ticks, and rolls 1m / 3m bars. Unrelated subscribed symbols are never captured. Capture runs for the life of the trade and stops when it is no longer armed or open — so turning this off does not stop a trade already recording, it only stops new commits from being captured. It is the only Raw Tick Capture control; Screen 102 shows status but cannot enable it. Retention: ticks 10d · aggregated bars 60d · Section 34 snapshots 60d · execution profiles 180d.
Mode: OFF — in-memory only
Saved.
Extended-Hours Option Sessions
Tastytrade routes extended-hours option orders on a short list of classes (badged EXT on the Watchlist, Screen 100 and the desk). ON: an armed plan on an eligible class may send from 06:30 CT, a held eligible lot is managed and may exit in either extended session, and its DAY flatten moves to 15:15 CT. Quotes are read from 06:15 CT. Orders in an extended session carry TIF Ext. Non-eligible classes are unaffected. OFF: RTH only.
Mode: OFF — RTH only
Saved.
Execution Awareness v1.1
SHADOW records underlying, relative-context, entry-path, and post-fill directives without changing execution. ENFORCED gates TAPE/ORB entry selection and applies hysteretic 9EMA/VWAP ↔ Bollinger Runner transitions through the existing engines.
Mode: SHADOW (no autonomous execution changes)
Saved.
Global Trade-Plan Defaults
Canvassing Hub Thresholds
Minimum sizes for Screen 050 Whale option prints and Institutional Order Block (IOB) equity trades, plus the IV Scanner Volatility Threshold used by Exploding / Imploding panes. Values are used as the default filters on the Canvassing Hub.
Scanner & CMF Thresholds
Active filters for Screen 050 CMF flow, volume/price gates, Screen 055 reversal prior-impulse checks, and Call-Flow Squeeze. Persisted via POST/PUT /api/settings.
Trade Evaluation Model Calibration
Counts closed trades toward a scheduled review of evaluation scoring weights. When the interval is reached, run a model calibration review, then reset the counter.
Collecting Trade Data...
Saved.
Opening Range Breakout
ORB window length from the 08:30 CDT cash open (15 / 30 / 60 minutes) and the late-day watch cutoff for breakout confirmation. Default ORB30 (08:30–09:00) with a 14:30 CDT expiration.
Notifications
Control outbound alerts by delivery channel and alert type. Additional alert types can be added here over time.
Environment Mode
Global execution environment for automation desks and reconciliation. Live mode is intended for production broker routing when enabled.
Saved.
Schwab APIs
Click Connect to open the Schwab portal, log in, and return here. Epilego captures the OAuth token JSON on redirect and stores it in tbl_schwab_tokens (account → default, market data → market). Manual JSON paste remains a fallback. Refresh uses Schwab_Client_ID / Schwab_Client_Secret for accounts and Schwab_Market_Client_ID / Schwab_Market_Client_Secret (aliases SCHWAB_MARKET_APP_KEY / SCHWAB_MARKET_APP_SECRET) for a separate market-data Schwab app — not the account Trading API keys. Register the same callback /api/broker/schwab/callback on both Schwab apps (or set SCHWAB_MARKET_REDIRECT_URI if the market app uses a different URL).
Stale Capital / Opportunity Cost
Day trades older than 2 hours with |unrealized PnL| under 1.5% are flagged as opportunity cost (“Stale Price Action: Tied capital with zero velocity”). Default is Alert Only (flag + note). Enable Auto-Close to liquidate those positions automatically.
Mode: OFF / Alert Only
Saved.
System Milestones & Backups
Create a timestamped zip archive of core application source, config, SQL migrations, and scripts. Archives are written to the project backups/ folder. Volatile caches, logs, secrets, and prior backups are excluded.
Open Log
Review allowlisted runtime logs from the project logs/ folder (trade_execution.log, macro_data_errors.log, planning_math.log). Large files open as a trailing window; use Download for the full file.
Select a log to preview size.
Dashboard Preferences
Display the Epilego branding splash once per browser session on the first Home screen visit.
Database Health & Maintenance
Repeatable Postgres bloat audit from pg_stat_user_tables / pg_stat_user_indexes. Maintenance runs non-locking VACUUM ANALYZE (never VACUUM FULL).
| Sel | Relation | Total | Table | Indexes | Live | Dead | Dead % | Last Autovacuum |
|---|---|---|---|---|---|---|---|---|
| Run an audit to load relation metrics | ||||||||
Reset Account Balance to $0
Delete every ledger row and zero starting balance, current cash, tax reserve, and available-to-trade for the selected account (Schwab, TastyTrade, or any other ledger account). Requires Admin PIN unlock above. Use this to clear incorrect baselines before posting manual adjustments.
Select an account to preview balances.
Data Management & Ledger Maintenance
Permanently erase paper trade execution tranches, plans, management rows, and workspace locks for selected tickers. This cannot be undone.