Specification
Overview:
I am looking for an experienced MQL5 developer to build a reliable Expert Advisor (EA) for MetaTrader 5 that executes automated trades based on external signal inputs (e.g. via Webhook or Telegram/REST API) with strict capital protection rules.
Core Requirements & Features:
1. Signal Parsing & Execution:
- Receive and process signals: Symbol (e.g. XAUUSD, EURUSD), Order Type (BUY/SELL), Entry Price, Stop Loss (SL), Take Profit (TP).
- Immediate market order execution upon signal receipt.
- Multi-Asset Support: Optimized primarily for XAUUSD (Gold), but also supports major Forex pairs. Pip/Point calculations must dynamically adjust based on symbol digits and tick value.
2. Flexible Risk & Money Management (Configurable in Settings):
- Fixed Lot Size: User can set a fixed lot size (e.g. 0.01).
- Dynamic Risk Percentage: Calculate lot size automatically based on account equity and SL distance (e.g. risk exactly 1% of account balance per trade).
- Max Lot Size Guard: Hard limit on maximum allowed lot size per trade.
3. Safety & Protection Rules (Crucial):
- Mandatory Stop Loss: The EA must NEVER open a trade without a hard Stop Loss set on the broker server.
- Daily Loss Limit (Equity Guard): If account equity drops by X% in a single day, close all open trades and halt trading until the next day.
- Max Spread Filter: Do not execute trades if current spread exceeds X pips/points.
- Max Slippage Limit: Reject order execution if price slippage is too high.
4. User Inputs & Controls:
- Enable/Disable Signal Execution toggle.
- Custom Magic Number to track orders separately.
- On-screen Dashboard showing EA status, daily PnL, and current risk parameters.
Deliverables:
- Fully functional and tested Expert Advisor executable (.ex5).
- Complete, clean, and commented source code (.mq5).
- Brief setup guide for installation.