Техническое задание
# 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.
Откликнулись
1
Оценка
Проекты
506
23%
Арбитраж
60
57%
/
25%
Просрочено
59
12%
Свободен
2
Оценка
Проекты
640
53%
Арбитраж
34
62%
/
21%
Просрочено
6
1%
Работает
3
Оценка
Проекты
1
0%
Арбитраж
0
Просрочено
1
100%
Свободен
4
Оценка
Проекты
180
25%
Арбитраж
24
17%
/
75%
Просрочено
16
9%
Свободен
5
Оценка
Проекты
4
25%
Арбитраж
0
Просрочено
0
Загружен
Опубликовал: 1 пример
6
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
7
Оценка
Проекты
1
100%
Арбитраж
0
Просрочено
0
Свободен
8
Оценка
Проекты
52
58%
Арбитраж
2
100%
/
0%
Просрочено
1
2%
Свободен
Опубликовал: 5 примеров
9
Оценка
Проекты
8
38%
Арбитраж
1
100%
/
0%
Просрочено
2
25%
Свободен
10
Оценка
Проекты
4
0%
Арбитраж
0
Просрочено
0
Свободен
11
Оценка
Проекты
18
22%
Арбитраж
1
100%
/
0%
Просрочено
4
22%
Загружен
12
Оценка
Проекты
4
25%
Арбитраж
0
Просрочено
0
Свободен
13
Оценка
Проекты
32
19%
Арбитраж
5
40%
/
40%
Просрочено
4
13%
Работает
14
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
15
Оценка
Проекты
10
10%
Арбитраж
0
Просрочено
0
Свободен
16
Оценка
Проекты
8
0%
Арбитраж
2
50%
/
0%
Просрочено
1
13%
Работает
17
Оценка
Проекты
478
40%
Арбитраж
105
40%
/
24%
Просрочено
82
17%
Загружен
Опубликовал: 2 примера
18
Оценка
Проекты
20
25%
Арбитраж
0
Просрочено
2
10%
Свободен
Опубликовал: 3 примера
19
Оценка
Проекты
14
43%
Арбитраж
0
Просрочено
3
21%
Свободен
20
Оценка
Проекты
301
76%
Арбитраж
13
77%
/
0%
Просрочено
4
1%
Загружен
21
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
22
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
23
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
24
Оценка
Проекты
0
0%
Арбитраж
1
0%
/
100%
Просрочено
0
Свободен
25
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
26
Оценка
Проекты
74
18%
Арбитраж
30
17%
/
53%
Просрочено
31
42%
Свободен
27
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
28
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
29
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
30
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
31
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
32
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
33
Оценка
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 2 примера
34
Оценка
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 1 пример
35
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
36
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
Похожие заказы
Martingale / Grid CHALLENGE!
31 - 466 USD
I would like you to create, or if you already have one: purchase a profitable martingale OR grid EA from you that NEVER blows up the account. REQUIREMENTS Platform : only MT4 Pair : any Timeframe : any Strategy : any Profitability : 10% / month, every month. Not an "average", but: every month. Lots : dynamic (as the account grows, so do the lot sizes) THE PROCESS Send me a trial version of the .ex4 file. I will
We are looking for an expert algorithmic trading developer to build a high-performance, fully automated Custom Expert Advisor (EA) or trading bot. The bot must integrate advanced Smart Money Concepts (SMC) , Inner Circle Trader (ICT) methodologies, and Volume Spread Analysis (VSA) with a high-frequency trading (HFT) style execution and scaling model. The core objective is to program a bot that identifies
An Expert Advisor builder needed!
100 - 300 USD
I need an MT5 Expert Advisor based on my A+ ICT/SMC Institutional Anticipation Framework. The EA must use a strict multi-timeframe hierarchy: Daily = Liquidity Map ONLY: Identify BSL/SSL, swept/unswept liquidity, equal highs/lows, major OBs, FVGs and institutional POIs. H4 = Institutional Direction: H4 determines the ONLY bias (BUY or SELL) using structure, BOS/CHoCH, OB, FVG and Premium/Discount. Lower timeframes
Automatic buy and sell entries. stoploss (sl) take profit (tp) risk management and adjustable lot size. Adjustable risk percentage per trade. Trailing stop maximum number of open trades. Trading hours filter. Ability to backtest and optimize the strategy. Easy to use settings. The EA should work reliably on mt5 and provide the source code. I want the developer to test the EA and provide backtest results before
I am looking to see if you can convert my pinescript into a NinjaTrader bot so I can get automated trading instead of manually doing it in TradingView i would like to get it to just do the trades for me based on my script. let me know who can do this perfectly
EA: Smart Break-Even & Partial Close Manager
30 - 200 USD
Develop an Expert Advisor for MetaTrader 5 that manages existing positions. Features Automatically detect all open positions. Apply Break-Even after price reaches a configurable profit. Partial Close: Close X% of volume at the first target. Move Stop Loss to Break-Even. ATR Trailing Stop (optional). Magic Number filter. Comment filter. Symbol filter. Trading session filter. Retry mechanism for trade operations
WillyFX
30+ USD
need an MT5 Expert Advisor designed for educational and demo-account testing. The robot should identify trading opportunities using clear technical rules, manage entries and exits automatically, include stop-loss and take-profit controls, limit risk per trade, avoid excessive trading, and provide adjustable settings for backtesting and optimization
Mt5 ea
30+ USD
I have a fast execution ea that need a little touch, it trade on gold and my problem is about the risk ratio the tp is 3pip and stop loss 20 but i cannot get it right to make the average win larger and average loss lower. I would like to know if i can get help to get it right without touching the tragedy and the trade frequency. Those two pictures I attached is the example of what my bot actually do like i explained
REWARD!
35 - 200 USD
I will pay you a REWARD, if you find / create an EA that fits ALL the below criteria! Platform : MT4 ONLY! NOT MT5, I repeat: NOT MT5!! Timeframe : doesn’t matter Pair : doesn’t matter Strategy : doesn’t matter Drawdown : no more than 25% Return : minimum 5%, every month Lot sizing : dynamic lots I will backtest the EA with 99.9% tick data accuracy for a period of 20+ years . If the EA can produce minimum 5% returns
hello could you make me same indicator for ninja ? https://www.youtube.com/watch?v=pxs2MuqvH3w if yes for how much and timeline ? thks in advance and please reply me as soon as possible you get my notification
Информация о проекте
Бюджет
30+ USD
Сроки выполнения
до 10 дн.