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

Job finished

Execution time 9 hours
Feedback from customer
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.

Specification

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




Responded

1
Developer 1
Rating
(508)
Projects
976
74%
Arbitration
27
19% / 67%
Overdue
101
10%
Working
Published: 1 article, 6 codes
2
Developer 2
Rating
(8)
Projects
9
11%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(32)
Projects
35
34%
Arbitration
5
0% / 80%
Overdue
0
Working
Published: 2 codes
4
Developer 4
Rating
(327)
Projects
509
19%
Arbitration
33
45% / 30%
Overdue
34
7%
Loaded
5
Developer 5
Rating
(15)
Projects
19
16%
Arbitration
5
40% / 40%
Overdue
0
Free
6
Developer 6
Rating
(43)
Projects
62
23%
Arbitration
8
25% / 38%
Overdue
10
16%
Working
7
Developer 7
Rating
(429)
Projects
629
54%
Arbitration
32
53% / 22%
Overdue
6
1%
Loaded
8
Developer 8
Rating
(33)
Projects
38
21%
Arbitration
5
0% / 60%
Overdue
0
Free
9
Developer 9
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
10
Developer 10
Rating
(2313)
Projects
2912
63%
Arbitration
122
44% / 25%
Overdue
429
15%
Working
11
Developer 11
Rating
(60)
Projects
87
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
12
Developer 12
Rating
(16)
Projects
20
10%
Arbitration
8
38% / 38%
Overdue
3
15%
Working
13
Developer 13
Rating
(24)
Projects
30
13%
Arbitration
12
0% / 75%
Overdue
8
27%
Free
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
(64)
Projects
83
28%
Arbitration
9
33% / 56%
Overdue
9
11%
Free
Published: 1 code
16
Developer 16
Rating
(1)
Projects
3
0%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(19)
Projects
24
21%
Arbitration
0
Overdue
2
8%
Free
18
Developer 18
Rating
(6)
Projects
5
0%
Arbitration
2
50% / 50%
Overdue
2
40%
Free
19
Developer 19
Rating
(17)
Projects
23
39%
Arbitration
6
33% / 50%
Overdue
0
Free
20
Developer 20
Rating
(39)
Projects
54
61%
Arbitration
2
50% / 50%
Overdue
0
Free
21
Developer 21
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
22
Developer 22
Rating
(10)
Projects
14
43%
Arbitration
0
Overdue
3
21%
Free
23
Developer 23
Rating
(28)
Projects
31
45%
Arbitration
1
100% / 0%
Overdue
3
10%
Free
24
Developer 24
Rating
(39)
Projects
46
28%
Arbitration
14
21% / 64%
Overdue
1
2%
Loaded
Similar orders
Volume Gaps & Imbalances by Zeiierman is the indicator I want to convert to MT5. I want to work with someone who specializes /understands scalping on the 1min. You need to be able to modify and play with the settings, back & forward test, and find settings that will work best for scalping the NQ. I am not looking for a developer that just builds without completely forward testing it, that all the fields works, and
Looking for a Marketing Partner for my EAs! I am a developer looking for an experienced partner to help promote and market my Expert Advisors (MT4/MT5). How it works: > * I handle the coding, updates, and technical support. You handle the marketing, outreach, and bringing in traders. Compensation: We work on a Revenue Share / Profit Split basis. If you have an audience of traders or know how to market forex tools
The strategy is already fully defined with exact logic, scoring system, entry rules, risk management, and execution protection (spread, slippage, deviation). The strategy is already fully defined with exact logic, scoring system, entry rules, risk management, and execution protection (spread, slippage, deviation). Please follow the specification strictly without any discretionary interpretation
Job Description: I am looking for a skilled MQL5 developer to create a custom Expert Advisor (EA). The trading strategy relies on standard indicators, but requires precise execution logic and strict risk management rules. Key Technical Requirements & Skills Needed: Multi-Timeframe (MTF): Basic ability to read one indicator's data from a higher timeframe (M15) while the EA runs on a lower timeframe (M5). Instant
I need someone to recreate this indicator for mt5 for $60 it has to be non repaint ,I've been trying to code this indicator so if someone can do it my contact is , sebokomorobi6@gmail.com ,or 073 923 0151 you can contact the number on Whatsapp no calls allowed
Existing EA 30 USD
I’m looking to acquire an existing, profitable Expert Advisor (EA) with full source code to add to our client investment portfolio. To be clear, this is not a request to develop or design a new strategy. If you already have an EA that is proven, consistent, and production-ready, I’m open to reviewing it immediately. Please apply only if you meet all the requirements below. Submissions without a proper introduction or
have the Beatrix Inventor Expert Advisor (EA) that was profitable in the past but has been losing money recently. I need an experienced EA developer/optimizer to study the trade history (especially Stop Loss hits, drawdown periods, SL/TP behavior, win/loss ratio, etc.) and recommend + implement specific tweaks so it becomes consistently profitable again. Your job: 1. Deep analysis of why the EA is no longer
want to develop a trading robot (EA) for MetaTrader 5 based on 10 specific rules. The robot should include a professional interface to control all settings, including: Fixed lot size (0.50), Stop Loss (10 USD), RSI indicators for entry/exit, News filter, Trailing stop, and daily profit targets. I have the full logic ready to discuss with the developer. Please ensure high-quality code and testing
Until zone detection is coded , you will be from that point . Trailing Stop Optimization for live chart . Apply with Specific Currency Support . Clean Code . Zone Upper Limit and Lower Limit . Apply with careful understanding of the project requirement
Required Filters are working as per specification and requirement . Stop Loss Trailing needs correct execution for live chart . Need a little advice on trailing stop loss correction . Live chart only

Project information

Budget
70 - 150 USD
Deadline
from 5 to 10 day(s)