2026-05-12 17:36:08 +05:00
2026-04-04 17:14:10 +05:00
2026-04-04 17:11:31 +05:00
2026-04-04 17:08:20 +05:00
2026-05-12 17:36:08 +05:00
2026-04-04 17:05:20 +05:00

ApexFX: Institutional-Grade Multi-Symbol MT5 Framework

An Advanced Event-Driven Ecosystem for High-Fidelity Quantitative Trading & Market Microstructure Analysis.

License Python Architecture Status


🌐 The Vision: Leveling the Playing Field

ApexFX is not just a trading bot; it is a Quant Infrastructure. It bridges the gap between retail trading and institutional-grade execution by bringing Market Microstructure, Genetic Optimization, and Regime-Aware Risk Gating to the MetaTrader 5 ecosystem.

Our mission is to provide an open-core framework that handles the "Heavy Lifting" of data ingestion and risk management, allowing quants to focus on alpha generation.


🏗️ Architectural Excellence

1. The Core Intelligence

  • Asynchronous Data Pipeline: Multi-symbol ingestion (EURUSD, XAUUSD) with micro-second level state updates using asyncio.
  • Institutional Volume Profile: Real-time POC (Point of Control), HVN (High-Volume Nodes), and LVN (Low-Volume Nodes) integrated directly into decision gating.
  • Genetic Strategy Evolver: An adaptive multi-objective GA that evolves parameters for maximum Sharpe and minimum Drawdown.

2. Risk-First Execution

  • Microstructure Gating: Signals are filtered through liquidity pressure and toxicity metrics before reaching the broker.
  • Regime-Aware Sizing: Automated lot-scaling that adjusts based on volatility clustering and market regime (Bull/Bear/Sideways).
  • Smart Routing: Advanced MT5 controller with retry logic, slippage protection, and async order management.

📊 Visual Intelligence (Real-Time Dashboard)

The system serves a high-performance monitoring interface via WebSockets:

  • Pipeline Introspection: Watch every stage (Data → Signal → Risk) live.
  • Visual Volume Profile: Interactive histogram overlays with color-coded institutional zones.
  • Monte-Carlo & VaR: Institutional risk metrics rendered in real-time.

📂 Project Anatomy (Modular Scalability)

ApexFX/
├── 🧠 core/                # The Brain: State, Decision, Risk, & Volume Profile
├── 📈 features/            # The Eyes: Spectral, Wavelet, & Statistical Features
├── 🤖 models/              # The Intelligence: Genetic Optimizers & RL Agents
├── 🛡️ risk/                # The Shield: Monte-Carlo, VaR, & Correlation Management
├── 🖥️ monitoring/          # The Face: Real-time WebSocket Dashboard
└── 🧪 tests/               # The Truth: End-to-end verifiable unit tests
Use code with caution.

🛠️ Quick Start & Deployment
Designed for engineers, built for quants.
Clone & Environment:
bash
git clone https://github.com
pip install -r requirements.txt
Use code with caution.

Configure: Edit config/runtime_config.json to toggle Volume Profile and Genetic Optimizers.
Ignition:
bash
python main.py
Use code with caution.

Observe: Open monitoring/dashboard.html for real-time pipeline telemetry.
📜 Professional Ethics & Disclaimer
ApexFX is provided for research and educational purposes. Algorithmic trading involves substantial risk. The Proprietary Alpha Modules (HFT Execution & Secret Mutation Algorithms) are restricted to institutional partners.
Developed with ❤️ by Umais Khan
Senior Systems Architect | Specialized in AI-Augmented Quantitative Engineering
S
Description
No description provided
Readme 81 KiB
Languages
Python 53.7%
HTML 46.3%