XAUUSD M5 8:00 IST Two-Candle Breakout EA (1:2 RR, 2nd Entry Logic, Risk % Position Sizing) – MQL5 Expert Advisor Needed

Работа завершена

Время выполнения 9 часов
Отзыв от заказчика
The developer pressured me to complete early, said backtesting is useless and the EA “loves to be on the chart”. After completion it didn’t work and no real support was provided.

Техническое задание

1. Strategy Overview

I need an MQL5 Expert Advisor that trades once per day based on a 2-candle combination zone formed at 8:00 AM IST.

The EA must detect the correct server time equivalent of IST and work on any MT5 broker (Exness).

2. Combination Zone Logic

At 08:00 IST, the EA must:

  1. Take the first M5 candle starting at 08:00.

  2. Take the next M5 candle (08:05).

  3. These two candles form the Combination Zone:

comb_high = max(high of both candles)

comb_low  = min(low of both candles)

  • Ideally candles should be Green → Red or Red → Green.

  • If they are same color, still use these two candles as the combination zone.

  • Only one combination per day.

3. Trade Entry Rules

LONG Entry

  • Trigger: price breaks above comb_high

  • Order type: Market Buy

  • Stop Loss = comb_low

  • Take Profit = EntryPrice + 2 × (EntryPrice - comb_low)

    (1:2 Risk-Reward)


SHORT Entry

  • Trigger: price breaks below comb_low

  • Order type: Market Sell

  • Stop Loss = comb_high

  • Take Profit = EntryPrice - 2 × (comb_high - EntryPrice)

4. Trade Sequencing (Very Important)

First Entry

  • EA enters first breakout trade (long or short).


If FIRST trade hits TP

  • Stop trading for the rest of the day.

  • No second entry.


If FIRST trade hits SL

  • EA must allow ONE MORE trade (second entry).

  • Second entry follows same breakout rules.

  • After second entry closes (TP/SL) → stop for the day.

5. Position Sizing (Risk % Based)


Lot size must be calculated using 1% or 2% risk of account balance:

stopDistance = comb_high - comb_low

riskAmount = Balance × Risk%

lot = riskAmount / (stopDistance × valuePerPointPerLot)


EA must:

  • Detect broker min / max lot

  • Respect lot step

  • Skip trade if lot < min lot

  • Include a max lot input cap (user adjustable)

6. Filters & Safety Rules

  • Do NOT trade if spread > user input (e.g., 50 points).

  • Avoid duplicate trades on restart — use persistent variables or OnTradeTransaction tracking.

  • EA must handle restarts without forgetting:

    • combination zone

    • whether first trade was taken

    • whether second entry is allowed

  • EA must prevent more than 2 trades per day.

7. Time Handling

EA must reliably detect 08:00 IST, even if the broker server uses a different timezone.


Acceptable solutions:

  • Auto-detect using TimeLocal (if VPS is IST), OR

  • Input parameter: “Server hour equivalent of 8:00 IST”.


Either method is fine; the EA must work correctly.

8. Inputs Required

  • Symbol

  • Risk Percent (1% or 2%)

  • Max Lot Cap

  • Spread Filter

  • Slippage (Deviation)

  • Magic Number

  • Enable/Disable 2nd Entry

  • Server Start Hour (if not auto-detected)

9. Deliverables

  • Fully working .mq5 + .ex5

  • Clear, commented source code

  • Clean input menu

  • One backtest showing logic from any date range

  • 7–14 days bug-fix / correction support

10. Acceptance Criteria

The EA is considered complete when:

  1. Combination candles at 8:00 IST are detected correctly.

  2. Breakout entries occur exactly as per rules.

  3. First trade hits TP → no more trades that day.

  4. First trade hits SL → second entry allowed.

  5. Lot size matches the risk % position sizing formula.

  6. EA works after MT5 restarts with no duplicate trades.

  7. Backtest examples for:

    • 2025-Sep-24 to 2025-Nov-18




Откликнулись

1
Разработчик 1
Оценка
(510)
Проекты
977
74%
Арбитраж
27
19% / 67%
Просрочено
100
10%
Свободен
Опубликовал: 1 статью, 6 примеров
2
Разработчик 2
Оценка
(9)
Проекты
10
10%
Арбитраж
0
Просрочено
0
Свободен
3
Разработчик 3
Оценка
(33)
Проекты
36
33%
Арбитраж
5
0% / 80%
Просрочено
0
Работает
Опубликовал: 2 примера
4
Разработчик 4
Оценка
(328)
Проекты
514
19%
Арбитраж
35
46% / 31%
Просрочено
34
7%
Работает
5
Разработчик 5
Оценка
(16)
Проекты
20
15%
Арбитраж
5
40% / 40%
Просрочено
0
Свободен
6
Разработчик 6
Оценка
(43)
Проекты
62
23%
Арбитраж
10
20% / 50%
Просрочено
10
16%
Работает
7
Разработчик 7
Оценка
(434)
Проекты
640
53%
Арбитраж
34
62% / 21%
Просрочено
6
1%
Работает
8
Разработчик 8
Оценка
(33)
Проекты
38
21%
Арбитраж
5
0% / 60%
Просрочено
0
Свободен
9
Разработчик 9
Оценка
(16)
Проекты
35
23%
Арбитраж
4
0% / 50%
Просрочено
2
6%
Работает
10
Разработчик 10
Оценка
(2339)
Проекты
2944
63%
Арбитраж
124
44% / 26%
Просрочено
429
15%
Свободен
11
Разработчик 11
Оценка
(62)
Проекты
90
29%
Арбитраж
24
13% / 58%
Просрочено
7
8%
Работает
12
Разработчик 12
Оценка
(17)
Проекты
21
14%
Арбитраж
8
38% / 38%
Просрочено
3
14%
Загружен
13
Разработчик 13
Оценка
(25)
Проекты
31
13%
Арбитраж
13
0% / 77%
Просрочено
9
29%
Свободен
14
Разработчик 14
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
15
Разработчик 15
Оценка
(64)
Проекты
83
28%
Арбитраж
9
33% / 56%
Просрочено
9
11%
Свободен
Опубликовал: 1 пример
16
Разработчик 16
Оценка
(1)
Проекты
3
0%
Арбитраж
0
Просрочено
0
Свободен
17
Разработчик 17
Оценка
(28)
Проекты
34
35%
Арбитраж
0
Просрочено
2
6%
Свободен
18
Разработчик 18
Оценка
(7)
Проекты
6
0%
Арбитраж
4
25% / 75%
Просрочено
2
33%
Свободен
19
Разработчик 19
Оценка
(20)
Проекты
26
38%
Арбитраж
6
33% / 50%
Просрочено
0
Свободен
20
Разработчик 20
Оценка
(40)
Проекты
55
62%
Арбитраж
2
50% / 50%
Просрочено
0
Свободен
21
Разработчик 21
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
22
Разработчик 22
Оценка
(10)
Проекты
14
43%
Арбитраж
0
Просрочено
3
21%
Свободен
23
Разработчик 23
Оценка
(28)
Проекты
31
45%
Арбитраж
1
100% / 0%
Просрочено
3
10%
Свободен
24
Разработчик 24
Оценка
(49)
Проекты
59
36%
Арбитраж
15
27% / 60%
Просрочено
1
2%
Работает
Похожие заказы
I will like to have a dashboard that will simply show in a box the value of awesome Oscillator buy or sell, the buy box can be green when awesome Oscillator is positive while the sell box can be red when awesome is negative. The time frames should be fixed to be weekly, daily and H4. When all boxes of a currency pair is green then it should show it on buy list section by the side and if all boxes are red it should
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
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
Requirements Specification Here is an example of Requirements Specification for the development of the MACD Sample Expert Advisor, which is available in the MetaTrader 5 standard package. 1. The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average with
JazzDaBot 30+ USD
""" Wick Reversal Strategy — core logic ===================================== Rules (as specified): - Timeframe: 15-minute candles - Entry: candle wick >= WICK_MULTIPLIER x body -> signal candle - long lower wick -> enter LONG at next candle's open - long upper wick -> enter SHORT at next candle's open - Exit: an opposite-direction wick candle forms while in a position - Stop-loss: just beyond the signal candle's
Hello, I want a simple bot for NinjaTrader8. I need a bot that operates automatically on Nasdaq (NQ/MNQ). Requirements: open buys and sells following a simple trend strategy, configurable stop loss and take profit, risk per trade of 1 to 2% of capital, if it loses 3% in a day, stop trading until the next day. Compatible with backtesting, delivery of the source code and the working bot in NinjaTrader 8. My initial
a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; } Project Overview I am looking for an experienced algorithmic trading developer to build a professional Expert Advisor (EA) for MetaTrader 5 and/or cTrader. The objective is to create a robust automated trading system focused exclusively on XAUUSD (Gold) . This project is intended for serious
I'm looking for a skilled Python developer to help expand and improve an existing Python game. The project is already functional, and I need someone who can add new features, improve gameplay mechanics, optimize performance, and maintain clean, well-structured code. Experience with game development in Python is preferred
{ "strategy_name": "M5 EMA Scalper", "timeframe": "M5", "indicators": { "ema_fast": 20, "ema_slow": 50, "rsi": 14, "atr": 14 }, "entry_rules": { "buy": [ "EMA20 > EMA50", "Price closes above EMA20", "RSI > 55" ], "sell": [ "EMA20 < EMA50", "Price closes below EMA20", "RSI < 45" ] }, "risk_management": { "risk_per_trade": 1.0, "stop_loss_atr": 1.5, "take_profit_rr": 2.0
Hola, traders e inversores: Desarrollamos soluciones de trading algorítmico para MetaTrader 4 y MetaTrader 5. Creamos bots, indicadores y herramientas a medida que convierten estrategias manuales en sistemas automáticos, configurables y orientados a una gestión de riesgo sólida. Hemos trabajado en automatizaciones que integran entradas y salidas por reglas, cálculo de lotaje, control de drawdown, filtros de horario y

Информация о проекте

Бюджет
70 - 150 USD
Сроки выполнения
от 5 до 10 дн.