Automated trading Expert Advisor for MetaTrader 5 — Forex & Gold scalping with real-time Telegram notifications and a live performance dashboard.
PrecisionScalper is a fully automated MQL5 Expert Advisor designed for intraday scalping on major Forex pairs and Gold (XAUUSD). It combines a multi-indicator signal logic with dynamic risk management and a real-time notification pipeline via Telegram.
Built from scratch as a personal project, the EA runs 24/5 on a VPS and pushes trade alerts directly to a dedicated Telegram channel. A custom HTML dashboard aggregates performance metrics in real time.
- Signal logic — EMA 9/21 crossover confirmed by RSI filter (avoids low-momentum entries)
- Session filter — Active only during London and New York sessions (08:00–17:00 UTC) to target high-liquidity windows
- Dynamic risk management — ATR-based Stop Loss and Take Profit; position size calculated as a fixed percentage of account equity
- Telegram integration — Instant push notifications on trade open/close with entry price, SL, TP, P&L, and running balance
- HTML dashboard — Dark-themed performance dashboard with equity curve, open positions table, trade history, and key metrics (win rate, drawdown, avg RR)
- VPS-ready — Designed for uninterrupted 24/5 operation on a Contabo VPS (~€4/month)
| Layer | Technology |
|---|---|
| EA language | MQL5 (MetaTrader 5) |
| Notifications | Telegram Bot API |
| Dashboard | HTML / CSS / JavaScript |
| Hosting | Contabo VPS (Ubuntu) |
| Markets | EURUSD, GBPUSD, XAUUSD |
| Timeframe | M15 |
Entry conditions (LONG):
EMA9 crosses above EMA21
AND RSI(14) > 50
AND current session = London OR New York
Entry conditions (SHORT):
EMA9 crosses below EMA21
AND RSI(14) < 50
AND current session = London OR New York
Risk management:
SL = entry ± (ATR(14) × 1.5)
TP = entry ± (ATR(14) × 2.5)
Lot size = (equity × risk%) / (SL in pips × pip value)
MetaTrader 5 (MQL5 EA)
│
├── Signal engine (EMA + RSI + session filter)
├── Order manager (SL/TP + lot sizing)
│
├── Telegram Bot API ──► Telegram channel (live alerts)
│
└── Trade log (CSV) ──► HTML Dashboard (equity curve, stats)
The dashboard reads trade history from a local CSV log and renders:
- Equity curve — cumulative P&L over time
- Open positions — live table with entry price, current price, unrealized P&L
- Trade history — paginated log with filters by pair and outcome
- KPIs — win rate, total trades, average R:R, max drawdown
Dashboard runs locally or on the same VPS as the EA.
- Clone the repository
git clone https://github.com/rdgsc/precision-scalper-ea.git-
Install the EA on MT5
- Copy
PrecisionScalper.mq5toMQL5/Experts/ - Compile in MetaEditor (F7)
- Attach to an M15 chart (EURUSD, GBPUSD, or XAUUSD)
- Copy
-
Configure Telegram
- Create a bot via @BotFather
- Set your
BOT_TOKENandCHAT_IDin the EA inputs
-
Set EA parameters
Parameter Default Description RiskPercent1.0 % of equity risked per trade ATR_Period14 ATR period for SL/TP ATR_SL_Mult1.5 SL multiplier ATR_TP_Mult2.5 TP multiplier EMA_Fast9 Fast EMA period EMA_Slow21 Slow EMA period RSI_Period14 RSI period London_Start08:00 Session start (UTC) NY_End17:00 Session end (UTC) -
Launch the dashboard
open dashboard/index.html
# or serve via Python
python -m http.server 8080All testing performed on a MetaTrader 5 demo account. No real funds involved.
| Metric | Value |
|---|---|
| Account type | Demo |
| Testing period | Ongoing |
| Markets tested | EURUSD, GBPUSD, XAUUSD |
| Timeframe | M15 |
| Risk per trade | 1% |
precision-scalper-ea/
├── src/
│ └── PrecisionScalper.mq5 # Main EA source file
├── dashboard/
│ ├── index.html # Performance dashboard
│ ├── style.css
│ └── charts.js # Equity curve rendering
├── logs/
│ └── trades.csv # Trade history (auto-generated)
├── screenshots/
│ ├── dashboard_preview.png
│ └── telegram_alerts.png
└── README.md
This project is for educational and personal development purposes only. Trading involves significant risk. This EA is tested exclusively on demo accounts. Past performance does not guarantee future results.
Rodolphe de Gouvion Saint-Cyr Finance & Management student — ESDES Lyon Business School Founder of NEURAXIS (AI automation for SMEs)