Skip to content

rdgsc/precision-scalper-ea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

PrecisionScalper EA

Automated trading Expert Advisor for MetaTrader 5 — Forex & Gold scalping with real-time Telegram notifications and a live performance dashboard.

Platform Language Markets Status


Overview

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.


Features

  • 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)

Tech Stack

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

Strategy Logic

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)

Architecture

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)

Dashboard Preview

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.


Setup

  1. Clone the repository
   git clone https://github.com/rdgsc/precision-scalper-ea.git
  1. Install the EA on MT5

    • Copy PrecisionScalper.mq5 to MQL5/Experts/
    • Compile in MetaEditor (F7)
    • Attach to an M15 chart (EURUSD, GBPUSD, or XAUUSD)
  2. Configure Telegram

    • Create a bot via @BotFather
    • Set your BOT_TOKEN and CHAT_ID in the EA inputs
  3. Set EA parameters

    Parameter Default Description
    RiskPercent 1.0 % of equity risked per trade
    ATR_Period 14 ATR period for SL/TP
    ATR_SL_Mult 1.5 SL multiplier
    ATR_TP_Mult 2.5 TP multiplier
    EMA_Fast 9 Fast EMA period
    EMA_Slow 21 Slow EMA period
    RSI_Period 14 RSI period
    London_Start 08:00 Session start (UTC)
    NY_End 17:00 Session end (UTC)
  4. Launch the dashboard

   open dashboard/index.html
   # or serve via Python
   python -m http.server 8080

Results (Demo Account)

All 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%

Repository Structure

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

Disclaimer

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.


Author

Rodolphe de Gouvion Saint-Cyr Finance & Management student — ESDES Lyon Business School Founder of NEURAXIS (AI automation for SMEs)

LinkedIn

About

Automated MQL5 Expert Advisor for MT5 — Forex & Gold scalping with Telegram alerts and live dashboard

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors