-
Notifications
You must be signed in to change notification settings - Fork 0
06 Live Trading and Deployment Guide
This guide outlines the production deployment workflow for TriDomainMoE with live MetaTrader 5 order execution and the real-time institutional telemetry dashboard.
- Operating System: Windows 10/11 (required for native MetaTrader 5 IPC bridge) or Linux with Wine / MT5 Gateway.
- Python: Version 3.11+
- Hardware: Dedicated GPU (NVIDIA RTX 3060 / 4060 or higher recommended for continual ReCAP cycles).
- MetaTrader 5: Installed terminal logged into an institutional broker demo or live account with algorithmic trading enabled.
-
Clone the repository:
git clone https://github.com/ElMoorish/TriDomainMoE.git cd TriDomainMoE -
Create virtual environment and install dependencies:
python -m venv venv .\venv\Scripts\activate pip install -e .
-
Configure environment variables: Copy
.env.exampleto.envand fill in your MetaTrader 5 connection credentials:copy .env.example .env
Edit
.env:MT5_LOGIN=YOUR_ACCOUNT_LOGIN MT5_PASSWORD=YOUR_ACCOUNT_PASSWORD MT5_SERVER=YOUR_BROKER_SERVER MT5_PATH=C:\Program Files\MetaTrader 5\terminal64.exe TRADER_LOG_DIR=logs/
The trader daemon connects to the active MT5 terminal, streams real-time ticks, builds M5 features, evaluates the 4 enhancement defense vectors, and executes orders with hard stop-loss/take-profit brackets.
python scripts/live_mt5_trader.py \
--symbol BTCUSD.x \
--timeframe M5 \
--weights weights/btcusd_tri_domain_v2.pt \
--risk-pct 0.0020 \
--enhanced \
--breakeven-ratchet \
--interval 5-
--risk-pct 0.0020: Allocates$0.20%$ equity risk per trade ($20.00 cash risk on a $10k account base). -
--enhanced: Activates Vector 1 (Anti-Adverse Order Book Shield) and Vector 3 (Router Shannon Entropy Gating). -
--breakeven-ratchet: Activates Vector 2 (ratchets Stop-Loss to Breakeven$+ \text{Spread} + 2\text{ pts}$ when unrealized profit reaches$+1.5\sigma$ ). -
--interval 5: High-frequency polling frequency in seconds.
The dashboard provides a Bloomberg-style dark terminal interface displaying live streaming quotes, MT5 account solvency, active positions, expert allocation gauges, and daily trade performance.
python scripts/serve_dashboard.pyOpen your browser and navigate to:
http://localhost:8888
- Terminal Hub: Live bid/ask, floating spreads, account equity, and active position mark-to-market tracker.
-
Model Inference: Live directional forecast
$\hat{y}$ , router Shannon entropy$H(g)$ , and domain weight gauges (Tech %, Macro %, Fund %). - Auto Self-Improvement: Discrete Wavelet Energy Divergence (MRDD), episodic anomaly tracker, and ReCAP policy delta library.
- Daily Performance: Calendar-day trade attribution, daily hit rates, profit factors, and date filtering.
TriDomainMoE: Institutional Multi-Domain Mixture of Experts
Official Web Portal • GitHub Source • Hugging Face Model Hub
Cryptocurrency Research Grants (USDT TRC20): TC8TFkemSFGEeBPF5ZQKbmjK97FVEGwrwc
- Home
- 01 Architecture & Foundations
- 02 Feature Engineering Pipeline
- 03 Execution & MT5 Bridge
- 04 Continual ReCAP Adaptation
- 05 Verified 1-Year Benchmark
- 06 Live Trading & Deployment
- 07 Hugging Face Model Zoo
- Asset: USDT (Tether)
- Network: TRON (TRC20)
-
Address:
TC8TFkemSFGEeBPF5ZQKbmjK97FVEGwrwc