Self-hosted two-brain architecture. Python AI generates and validates strategies. Rust executor enforces safety rails at hardware speed. Fully autonomous on MT5.
┌─────────────────────────────────────────────────────────────────┐ │ AURION SYSTEM ARCHITECTURE │ ├─────────────────────────────────────────────────────────────────┤ │ │ │ ┌──────────────┐ Redis ┌──────────────┐ │ │ │ PYTHON BRAIN │───────────────│RUST EXECUTOR │ │ │ │ │ commands ──► │ │ │ │ │ • AI Engine │ │ • Safety │ ┌───────┐ │ │ │ • Regime Det │ │ • WebSocket │───│ MT5 │ │ │ │ • Backtester │ │ • Kill Switch│ │ Bridge│ │ │ │ • Risk Calc │ │ • Pos Limits │ └───────┘ │ │ └──────┬───────┘ └──────────────┘ │ │ │ │ │ ┌──────┴───────┐ FastAPI ┌──────────────┐ │ │ │ PostgreSQL │◄──────────────│ Next.js │ │ │ │ (all state) │ REST API │ (terminal) │ │ │ └──────────────┘ └──────────────┘ │ │ │ └─────────────────────────────────────────────────────────────────┘
Scheduled loop: detects market regime every 15min, generates AI strategies every hour, validates with walk-forward backtesting, publishes commands to Redis.
Subscribes to Redis commands. Validates every order against safety rails before sending to MetaTrader 5. Enforces daily loss limits, position caps, per-trade risk.
Claude generates trading strategies tailored to the current market regime. Walk-forward backtesting validates every strategy before deployment.
Real-time classification: trending, ranging, volatile, low-volatility. Session-aware (Asian, London, Overlap, NY). Recalculated every 15 minutes.
Order execution via MetaTrader 5. Independent safety rails: daily loss circuit breaker, position limits, per-trade risk caps.
Rules derived from 13,000+ trade samples. Max 2% per trade, 25% equity limit, minimum 2:1 reward-to-risk. Automatic position sizing.
Train/test split validation. Full metrics: Sharpe, Sortino, max drawdown, profit factor, win rate. Strategies must pass all thresholds.
Emergency stop closes all positions instantly. Triggered manually or automatically when daily loss exceeds threshold. Hardware-level enforcement in Rust.