Spécifications
# H4 Zone Retest EA (MQL5)
An automated trading Expert Advisor (EA) for MetaTrader 5, developed in MQL5.
The EA trades gold (XAUUSD) using a multi-timeframe breakout and retest strategy: it defines the first H4 candle of each day as a trading zone, detects breakouts on the M5 chart, waits for a retest, and executes trades with risk management, trailing stops, and optional news filtering.
---
## Features
- H4 → M5 breakout and retest trading logic
- Configurable fixed lot or risk-based position sizing
- Trailing stop management
- **Smart news filter** that avoids trading around high-impact events
- Spread and terminal safety checks
- Dynamic lot calculation based on risk percentage
## Strategy Overview
1. **Zone identification (H4)**
The EA marks the first H4 candle of the current day and stores its high and low as the trading zone boundaries.
2. **Breakout detection (M5)**
On each new M5 candle:
- A bullish breakout occurs when the candle closes above `zoneHigh`.
- A bearish breakout occurs when the candle closes below `zoneLow`.
When a breakout occurs, the EA starts waiting for a retest.
3. **Retest entry**
- If price returns to the broken zone within a specified window (`MaxWaitSeconds`):
- **Buy** on bullish retest → SL = breakout candle low, TP = 1.5 × risk distance.
- **Sell** on bearish retest → SL = breakout candle high, TP = 1.5 × risk distance.
- Uses either a fixed lot (`Lots`) or a risk-based lot (`UseRiskPercent`, `RiskPercent`).
4. **Trade management and protection**
- Trailing stop control (`UseTrailingStop`, `TrailingStart`, `TrailingStep`).
- Spread and trade-permission checks (`MaxSpreadPoints`, `TERMINAL_TRADE_ALLOWED`).
- **Built-in news filter**: the EA checks the MetaTrader 5 economic calendar (`CalendarValueHistory`) and automatically avoids opening new trades within the defined window around **high-impact news events** for a selected currency (`NewsFilterCurrency`, `NewsFilterMinutes`).
- This filter helps prevent entries during volatile periods and improves stability during major market announcements.
## Input Parameters
| Parameter | Description | Default |
|------------|-------------|----------|
| `Lots` | Fixed lot size per trade | 0.01 |
| `UseRiskPercent` | Enable dynamic lot sizing by risk | false |
| `RiskPercent` | Percent of balance risked per trade | 1.0 |
| `MaxWaitSeconds` | Maximum time allowed for retest | 86400 |
| `UseTrailingStop` | Enable trailing stop | true |
| `TrailingStart` | Profit (points) before trailing begins | 200 |
| `TrailingStep` | Distance (points) of trailing stop | 100 |
| `UseNewsFilter` | Enable high-impact news filter | true |
| `NewsFilterMinutes` | Minutes before/after news to avoid trading | 30 |
| `MagicNumber` | Unique identifier for EA positions | 202503 |
---
## Requirements
- MetaTrader 5 platform
- Broker supporting XAUUSD (gold) trading
- MQL5 environment (MetaEditor)
- Historical data for backtesting
---
## Installation
1. Open **MetaEditor** → *File → Open Data Folder*
2. Copy the `.mq5` file into `MQL5/Experts/`
3. Compile the EA
4. In MetaTrader 5, open *Navigator → Expert Advisors*
5. Attach the EA to a **XAUUSD** chart
6. Adjust input parameters as needed
---
## Backtest
**Symbol:** XAUUSD
**Timeframe:** M5
**Period:** Jan 2024 – Apr 2026
**Model:** Every tick (MetaTrader 5 Strategy Tester)
### Notes
- Default parameters were used unless otherwise stated.
- The test includes realistic spreads and commissions.
- Results are for research and educational purposes only and do not guarantee future performance.
Répondu
1
Évaluation
Projets
519
24%
Arbitrage
61
57%
/
25%
En retard
60
12%
Travail
2
Évaluation
Projets
647
53%
Arbitrage
35
63%
/
20%
En retard
7
1%
Travail
3
Évaluation
Projets
1
0%
Arbitrage
0
En retard
1
100%
Gratuit
4
Évaluation
Projets
184
25%
Arbitrage
25
16%
/
76%
En retard
16
9%
Gratuit
5
Évaluation
Projets
12
33%
Arbitrage
0
En retard
2
17%
Travail
Publié : 1 code
6
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
7
Évaluation
Projets
16
38%
Arbitrage
0
En retard
1
6%
Chargé
8
Évaluation
Projets
53
57%
Arbitrage
2
100%
/
0%
En retard
1
2%
Gratuit
Publié : 5 codes
9
Évaluation
Projets
8
38%
Arbitrage
2
50%
/
50%
En retard
2
25%
Gratuit
10
Évaluation
Projets
4
0%
Arbitrage
0
En retard
0
Gratuit
11
Évaluation
Projets
21
29%
Arbitrage
2
50%
/
0%
En retard
4
19%
Travail
12
Évaluation
Projets
4
25%
Arbitrage
0
En retard
0
Gratuit
13
Évaluation
Projets
33
18%
Arbitrage
6
50%
/
33%
En retard
4
12%
Gratuit
14
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
15
Évaluation
Projets
10
10%
Arbitrage
0
En retard
0
Gratuit
16
Évaluation
Projets
8
0%
Arbitrage
2
50%
/
0%
En retard
1
13%
Travail
17
Évaluation
Projets
478
40%
Arbitrage
105
40%
/
24%
En retard
82
17%
Chargé
Publié : 2 codes
18
Évaluation
Projets
21
24%
Arbitrage
0
En retard
2
10%
Gratuit
Publié : 3 codes
19
Évaluation
Projets
14
43%
Arbitrage
0
En retard
3
21%
Gratuit
20
Évaluation
Projets
309
76%
Arbitrage
14
71%
/
0%
En retard
6
2%
Chargé
21
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
22
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
23
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
24
Évaluation
Projets
0
0%
Arbitrage
1
0%
/
100%
En retard
0
Gratuit
25
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
26
Évaluation
Projets
74
18%
Arbitrage
30
17%
/
53%
En retard
31
42%
Gratuit
27
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
28
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
29
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
30
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
31
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
32
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
33
Évaluation
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 11 codes
34
Évaluation
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 2 codes
35
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
36
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
PHANTOM PROTOCOL V1
35 - 150 USD
PHANTOM PROTOCOL V1 – MT5 EXPERT ADVISOR SPECIFICATION Develop a professional MetaTrader 5 (MT5) Expert Advisor named “PHANTOM PROTOCOL V1”. PRIMARY MARKET: - XAUUSD (Gold) - Designed primarily for M15 and H1 timeframes. - The EA must work with both 3-digit and 2-digit gold pricing where applicable. TRADING LOGIC: Use pure price-action and market-structure analysis rather than relying on a single indicator. The EA
Most of the expert is already coded . Create a panel to show the Ratio for the Range . Trigger is based on ratio . Show Distribution / project starts after we clear Distribution
Ndugelo Ravhengani Bot
30+ USD
Create a bot that can trade and read indicators easy to read for first time users. Bot that can be used on a phone and connect to MT5. It should be easy to install or use on any device especially phone and laptop, preferably the bot that can run over night and controllable when needed
V3 PRO Auto-Scalper EA
40+ USD
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {
1. Title Development of a Custom MQL5 Expert Advisor for XAUUSD (MetaTrader 5) 2. Requirements Specification Overview: I am looking for an experienced MQL5 developer to build a robust, fully custom Expert Advisor (EA) for MetaTrader 5 tailored for trading Gold (XAUUSD). Core Specifications & Features: Asset & Timeframe: Designed specifically for XAUUSD. Timeframe should be selectable directly from the EA inputs
MetaTrader 5 (MT5) Price-Level Monitoring & Automated Phone Call Alert System Developer Needed Project Overview I am looking for an experienced developer to build a custom trading assistant for MetaTrader 5 (MT5) that monitors important price levels I manually mark on my charts and immediately calls my phone when the market reaches or interacts with those levels. This is Phase 1 of a larger trading assistant project
MT4/MT5 HFT EA us30
30 - 3000 USD
Hello everybody, I'm looking for an experienced MQL4/MQL5 developer to optimize a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5. The EA performs consistently and profitably on demo accounts, but when it is run on Raw and Standard live accounts under what appear to be the same trading conditions, it begins generating losses. I do not have the original source code (.mq4/.mq5); I only have the
Informations sur le projet
Budget
30+ USD
Délais
à 10 jour(s)