AB Trade-X Architecture Map

Current simplified operating model: platform-first routing, MNQ focus, Breakout crypto active, MES test-only, and Webull isolated.

Current Execution Surfaces

2026-07-01 ET

Lucid / Tradovate

Primary futures bridge on port 8000 for Lucid/Tradovate execution.

Webull

Isolated worktree and hook on port 8001 for Webull MNQ execution.

Breakout / Kraken

Crypto execution on port 8002 through the Breakout/Kraken lane.

Component Journey Map

alert to broker
1. TradingView Pine Chart alerts emit the JSON payload: action, symbol, strategy, script_id, source_symbol, order type, limit, TP, and SL.
Pine identityTP/SL source
->
2. Webhook Lane The public tunnel lands on the intended FastAPI process. Tests and proofs use /webhook/test only.
:8000 Lucid:8001 Webull:8002 Breakout
->
3. Parser + Guards Secret, parser shape, script/strategy pair, source symbol, allowed symbols, session, order type, TP/SL direction, and strategy guard all pass or block.
block here first
4. Account Router Route overrides, target_accounts, account qty overrides, runtime disables, account symbol allowlists, stack rules, and token pauses resolve final fanout.
qtyaccountsphase
->
5. Broker Executor Tradovate submits OSO/limit brackets, Webull manages child orders, and Breakout/Kraken uses the UI executor or supported REST paths.
order pathcrypto
Lucid / Tradovate MNQ and MES arrive on port 8000. Current MNQ route truth is the table below; final proof is the running /webhook/test preview.
Webull Isolated worktree and webhook on port 8001. Webull has its own account gates and child-order watcher.
Breakout / Kraken Crypto lane on port 8002. BTC/ETH routes should resolve only to breakout_01 and preserve Pine TP/SL.

Legend

Platform / execution surface
MNQ / active test route
MES / test-only or caution state
Crypto / Breakout route
Quantity and stack policy
Excluded or blocked state

Architecture Source

single public view

MNQ Golden Audit Matrix

BACKEND/PINE PARITY

Current MNQ Golden source contract from the repo audit. This replaces the old route matrix: Con26 public names are retired, JP Legacy keeps the 180-minute consumed-026 behavior, and former Original X2/X3 routes are ReArm families. Final proof is still the running /webhook/test preview.

Sizing
qty/max/stack/pend = order size / max account contracts / open filled exposure cap / pending limit wave cap.
Static docs
The table documents expected Pine/backend/account parity. It is not a broker-readiness check.
Family Script ID Key Pine model Pine/TTL Targets Sizing Status
JP GB33MNQ-JP-GB-33mnq_jp_gb_33consumed/session-reset180m / 180mLTE008,LTE009,LTE010,LTF001,Abe0032/2/6/3live
JP GB33 CPYMNQ-JP-GB-33-CPYmnq_jp_gb_33_cpyconsumed/session-reset180m / 180mLTE008,LTE009,LTE010,LTF001,Abe0032/2/6/3live
JP Legacy X2MNQ-JP-GB-33-X2-Run-33Stop-ATmnq_jp_gb_33_x2_run_33stop_atconsumed-026 until JP/reset180m / 180mLTE0032/2/2/1live
JP Legacy X3MNQ-JP-GB-3345-X3-Run-ATmnq_jp_gb_3345_x3_run_atconsumed-026 until JP/reset180m / 180mLTE0033/3/3/1live
JP ReArm X2MNQ-JP-GB-33-X2-Run-33Stop-AT-ReArmmnq_jp_gb_33_x2_run_33stop_at_rearm45m same-026 rearm45m / 45mLFE003,LFE004,Abe0192/2/2/2live
JP ReArm X3MNQ-JP-GB-3345-X3-Run-AT-ReArmmnq_jp_gb_3345_x3_run_at_rearm45m same-026 rearm45m / 45mLFE003,LFE004,Abe0193/3/3/2live
NY ReArm X2MNQ-NY-GB-33-X2-Run-33Stop-AT-ReArmmnq_ny_gb_33_x2_run_33stop_at_rearm45m same-026 rearm; lunch reset45m / 45mLFE0032/2/2/2live
NY ReArm X3MNQ-NY-GB-3345-X3-Run-AT-ReArmmnq_ny_gb_3345_x3_run_at_rearm45m same-026 rearm; lunch reset45m / 45mLFE0043/3/3/2live

Platform Route Containers

foundation model
Lucid / Tradovate
Main tree, port 8000. Core scripts trade the same intended Lucid pool at the same contract size unless an approved exception is documented and proved. Test/exception account: vb_lucid_lfe050_0003 / LFE05076763860003.
Webull
Separate Webull tree, port 8001. Webull route, lane, webhook, and readiness reporting live in that worktree. Current MES JP and NY live-indicator rows are 1 contract each, with max stacking 2 only across dissimilar scripts.
Breakout / Kraken
Separate Breakout/Kraken route ownership, port 8002. BTC/ETH caps, UI executor readiness, webhook state, and route proof stay out of Lucid confirmation.

Paste This To Confirm Live Routing

operator prompt
Use the route proof skill: - Lucid/main: $confirm-live - Webull: $confirm-webull - Breakout: $confirm-breakout Confirm live route, not docs/config. Rules: - Test only with /webhook/test. Never use the live TradingView webhook endpoint. - Main confirm-live scope is Lucid :8000 only. Do not mix Webull or Breakout into Lucid tables. - Webull route checks must run from the Webull tree with $confirm-webull on :8001. - Breakout route checks must use the Breakout-specific workflow on :8002. - Expected route: <script/strategy -> account IDs + broker IDs + qty per account>. - Final proof must be the running bot's /webhook/test preview after any write/restart/reload. - If preview account/qty/symbol/order type/limit/TP/SL/TP2/phase differs, say NOT READY - live preview mismatch. - If any runtime gate is closed, say NOT READY - runtime gate closed. Return one table: Script | Strategy | Lane | Account ID | Broker ID | Qty | Phase | Allowed Also show totals, /webhooks/status, /status active_trades/safe_to_restart, account-gate mismatches, and final READY or NOT READY.

Paste This To Create Or Revise A Script

operator prompt
Create/revise SCRIPT_NAME for SYMBOL on LANE/PORT with STRATEGY_KEY, SCRIPT_ID, SOURCE_SYMBOL, ACCOUNT_ID, BROKER_ID, QTY, PHASE, ALLOWED_TIMEFRAMES, SESSION, ORDER_TYPE, TP/SL_SOURCE, ROUTE/GATE_CHANGES, HOOK_ALLOWLIST, REPORTING_LABELS, JOURNAL_TAGS, and TEST_PROOFS; update Pine, parser, strategy registry/guards, router, account qty overrides, symbol allowlists, hook gates, broker executor assumptions, README/arch-map, journal/reporting metadata, and verify only with /webhook/test. Dashboard row: Script | Symbol | Lane:Port | Strategy | Script ID | Source Symbol | Account ID | Broker ID | Qty | Phase | Allowed TF/Session | Order/TP/SL | Route/Gates/Hook Allows | Reporting/Journal Tags | Required /webhook/test Proof