An event-driven algorithmic trading bot with four independent strategies, an AI market-regime filter, a full risk management stack, and a multi-client rental portal — all running on your MetaTrader 5 account.
Every trade flows through eight stages. Each stage can veto — a trade only fires when all gates pass.
M15 event fires; pipeline starts
4 strategies run in parallel
Weighted consensus + min score
ADX / ATR / Volume filter
Exposure + correlation guard
Lot calc, spread gate, limits
Market order via MT5 API
Breakeven + trailing stop
Each strategy runs independently on every M15 candle close and casts a weighted vote: BUY, SELL, or NONE.
After the signal engine votes, an AI overlay classifies the current market using ADX, ATR%, and relative volume. It can only reduce or veto — never inflate a signal.
| Regime | Trigger Condition | Threshold | Effect on Trades |
|---|---|---|---|
| TRENDING | ADX (14-period Wilder's) | ADX ≥ 25 |
Favours EMA_Cross, MACD_Cross, Breakout. No confidence penalty. |
| RANGING | ADX (14-period Wilder's) | ADX < 20 |
Favours RSI_Reversal. Trend strategies signal outside preferred regime. |
| VOLATILE | ATR(14) as % of price | ATR% ≥ 0.25% |
−30% confidence multiplier (×0.70). Favours Breakout; all others dampened. |
| QUIET | Volume ratio (current ÷ 20-bar avg) | ratio < 0.70 |
−20% confidence multiplier (×0.80). Low participation — all signals dampened. |
0.40, the trade is vetoed entirely — regardless of what the strategies voted.
Every position is sized from equity, not fixed lots. Stop and take-profit are derived from live volatility via ATR, not fixed pips.
Enforced at the portfolio layer, before any order reaches the broker. These gates cannot be overridden by strategy signals.
0.90 — same-direction positions on both are blocked.
Every decision is logged, every trade is alerted, every anomaly is caught — in real time.
FastAPI web dashboard showing open positions, equity curve, daily P&L, and bot health status.
Real-time trade alerts and remote control commands. Notifies on every open/close; controllable from your phone.
Three rotating log files, separated by purpose. Searchable and persistent across restarts.
Equity sampled and stored across sessions. Visualised in the dashboard. Up to 5,000 sample points retained — persistent across restarts.
Currently live on four instruments. Any MT5 symbol can be added — broker suffix variants (EURUSD.m, XAUUSD…) are auto-resolved transparently.
Euro / US Dollar · Most liquid FX pair
British Pound / US Dollar · Correlated with EURUSD
Gold / US Dollar · Point = 0.01 · Verified live
Silver / US Dollar · Point = 0.001 · 5000 oz contract
A complete onboarding-to-trading pipeline for managed client accounts. Each client runs in an isolated process on the operator's server, with credentials encrypted at rest.
10% of realised profit per client. No upfront fee — clients only pay when the bot is profitable.
MT5 passwords encrypted with Fernet (AES-128-CBC) and never written to disk in plaintext. Dashboard passwords hashed with scrypt.
Each client runs as its own Python subprocess with a dedicated log file, state database, and dashboard port. One client crashing does not affect others.
On portal reboot, all previously-running clients are automatically relaunched. No manual intervention needed after a server restart.
Each client can specify their own symbols, timeframes, and risk percentage at onboarding. Settings stored in an encrypted SQLite database.
Client bots send trade alerts to the client's own Telegram chat. Falls back to operator notifications if client hasn't set up Telegram.
The bot runs on your own MetaTrader 5 account. You keep full control of your funds — I take 10% of realised profit only when the bot is profitable.
⚠️ Trading bots are for personal research and automation only. Not financial advice. Past performance does not guarantee future results. Consult a licensed financial advisor.