XAUBOT v2
Automated XAU/USD trading bot on MetaTrader 5 + Python with live Flask dashboard. First profitable version: +$160 over 50 trades at 52% win rate.

Building a consistently profitable algorithmic trading bot for XAU/USD on FTMO prop firm demo accounts. V1 was net negative — the bot fired trades against the trend due to a critical inversion bug in the H1 trend filter, costing weeks of P&L before diagnosis.
Rewrote the entry logic with a corrected H1 trend filter as the primary gating condition, added an asymmetric SHORT bias boost (+15/−5), introduced a break-even trigger at 0.90, and built a real-time Flask dashboard at localhost:5000 for live monitoring. V2 shipped May 2026 as the first profitable iteration.
Key Features
What makes this project stand out from the crowd.
Multi-Timeframe Analysis
Pulls live OHLCV data from MT5 and runs H1 trend direction + M15 entry confirmation scoring, ensuring no trade fires against the dominant trend.
Asymmetric Bias Engine
Custom directional scoring with a +15 SHORT boost vs −5 LONG penalty, tuned specifically for XAUUSD behavior in bearish H1 conditions.
Break-Even Management
Automated SL-to-entry movement when profit reaches 90% of TP target, locking in safety on high-conviction setups without cutting winners short.
Real-Time Flask Dashboard
Live equity curve visualization, trade log, session breakdown, and bot config panel running on localhost:5000 for instant regime detection.
Tech Stack
Cutting-edge technologies powering this project.
The Results
Measurable impact delivered for Personal Project.