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

Trabalho concluído

Tempo de execução 9 horas
Comentário do cliente
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.

Termos de Referência

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




Respondido

1
Desenvolvedor 1
Classificação
(496)
Projetos
963
74%
Arbitragem
27
19% / 67%
Expirado
100
10%
Ocupado
Publicou: 1 artigo, 6 códigos
2
Desenvolvedor 2
Classificação
(8)
Projetos
8
0%
Arbitragem
0
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(32)
Projetos
35
34%
Arbitragem
5
0% / 80%
Expirado
0
Trabalhando
Publicou: 2 códigos
4
Desenvolvedor 4
Classificação
(323)
Projetos
502
19%
Arbitragem
33
42% / 30%
Expirado
33
7%
Carregado
5
Desenvolvedor 5
Classificação
(15)
Projetos
19
16%
Arbitragem
5
40% / 40%
Expirado
0
Livre
6
Desenvolvedor 6
Classificação
(42)
Projetos
61
21%
Arbitragem
7
29% / 29%
Expirado
10
16%
Carregado
7
Desenvolvedor 7
Classificação
(428)
Projetos
623
54%
Arbitragem
30
53% / 23%
Expirado
6
1%
Ocupado
8
Desenvolvedor 8
Classificação
(33)
Projetos
38
21%
Arbitragem
5
0% / 60%
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(16)
Projetos
35
23%
Arbitragem
4
0% / 50%
Expirado
2
6%
Trabalhando
10
Desenvolvedor 10
Classificação
(2294)
Projetos
2888
63%
Arbitragem
122
44% / 25%
Expirado
428
15%
Trabalhando
11
Desenvolvedor 11
Classificação
(57)
Projetos
84
26%
Arbitragem
24
13% / 58%
Expirado
7
8%
Carregado
12
Desenvolvedor 12
Classificação
(15)
Projetos
18
6%
Arbitragem
8
38% / 38%
Expirado
2
11%
Carregado
13
Desenvolvedor 13
Classificação
(24)
Projetos
30
13%
Arbitragem
12
0% / 67%
Expirado
8
27%
Trabalhando
14
Desenvolvedor 14
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
15
Desenvolvedor 15
Classificação
(64)
Projetos
83
28%
Arbitragem
9
33% / 56%
Expirado
9
11%
Livre
Publicou: 1 código
16
Desenvolvedor 16
Classificação
(1)
Projetos
3
0%
Arbitragem
0
Expirado
0
Livre
17
Desenvolvedor 17
Classificação
(19)
Projetos
23
22%
Arbitragem
0
Expirado
1
4%
Trabalhando
18
Desenvolvedor 18
Classificação
(6)
Projetos
5
0%
Arbitragem
2
50% / 50%
Expirado
2
40%
Livre
19
Desenvolvedor 19
Classificação
(15)
Projetos
21
38%
Arbitragem
6
33% / 50%
Expirado
0
Trabalhando
20
Desenvolvedor 20
Classificação
(39)
Projetos
54
61%
Arbitragem
2
50% / 50%
Expirado
0
Livre
21
Desenvolvedor 21
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
22
Desenvolvedor 22
Classificação
(10)
Projetos
14
43%
Arbitragem
0
Expirado
3
21%
Livre
23
Desenvolvedor 23
Classificação
(28)
Projetos
31
45%
Arbitragem
1
100% / 0%
Expirado
3
10%
Livre
24
Desenvolvedor 24
Classificação
(30)
Projetos
34
15%
Arbitragem
13
8% / 69%
Expirado
0
Ocupado
Pedidos semelhantes
MT5 EA 30 - 60 USD
Hi i want a professional developer who can create me Ea based on candle sticks and high and lows , i have full specifications what exactly i want to be in my Ea , the inputs and how it should work and i will also tell u what type of panel i want for proper detailed specifications message me only professional developers
I am looking for an experienced MQL4 / MQL5 developer to create a custom Expert Advisor (EA). Trading details: - Symbol: XAUUSD (Gold) only - Platform: MT4 or MT5 - Strategy type: Scalping (fast trades) - Timeframes: M1 / M5 - Fixed Stop Loss and Take Profit - Risk management: - Lot size based on balance OR fixed lot (user configurable) - Maximum trades per day (user configurable) - Spread and slippage filter -
Hi, I’m looking for someone with real Build Alpha experience to help set up an index-trading ruleset inside Build Alpha. Important: This work cannot be done without full access to Build Alpha . You must already own a Build Alpha licence and actively use the platform. Please do not apply if you do not currently have Build Alpha. What needs to be set up in Build Alpha 1. Session and Time Rules • Fixed GMT trading
We're looking for a highly motivated and detail-oriented individual to fill a key position in our team. The successful candidate will be responsible for driving projects forward, analyzing complex data, and collaborating with cross-functional teams to achieve business objectives. The role requires exceptional problem-solving skills, effective communication, and adaptability in a fast-paced environment. If you're a
EA DEVELOPMENT 50+ USD
Hello, I’m interested in developing an Expert Advisor (EA). I will send you the details and examples of the type of EA I need. Please log in and review them so you can understand my requirements
I already have an EA and willing to work together with a talented professional programmer so that we can make a profitable EA for the long-term. RazorQuant AI | Buy Trading Robot (Expert Advisor) for MetaTrader 5 RAZORQUANT AI v3.7 (MT5 EA) Purpose: Automated trading EA that combines classic technical filters with machine-learning signals and optional external AI (LLM) advice to decide BUY/SELL/HOLD and manage
step by step and structure this into a full IEEE 830 / ISO/IEC/IEEE 29148 style Requirements Specification. This format will include: Introduction System Overview Functional and Performance Requirements Traceability Matrix (linking requirements to test cases) Verification and Validation Compliance Standards 1. Introduction 1.1 Purpose The purpose of this document is to define the technical requirements for the
i need an expert to help join 3 model i have in ninjatrader into one, kindly message me and i will be expecting from you and i need this work done in maximum of 4 days, so i need expert that can get it done
hello great developer i want a NinjaTrader 8 custom indicator (not a full bot) • It implements the Jackson–Dalton Trading System • Includes Z1/Z2/Z3 zones, VWAP + deviation, and session volume profile (POC/VAH/VAL) • Has day-type classification and configurable alerts • Primary instruments are BTC/USDT and ETH/USDT • Full source code and documentation are required • Semi-automation and futures support are optional /
Henryy999 30 - 3000 USD
The Ai robot must help me with forex and I don't have money soon can the Ai robot give me some money and I will pay it back if the Ai robot does a good job making me rich

Informações sobre o projeto

Orçamento
70 - 150 USD
Prazo
de 5 para 10 dias