XAUUSD Grid Recovery EA — HTF Trend Filter, Server-Side Pending Orders, Low-Latency Execution (MQL5)

Spezifikation

PROJECT OVERVIEW

I need an experienced MQL5 developer to build a production-grade Expert Advisor for
XAUUSD (Gold) on MT5, intended for continuous, unattended live operation. This is a
trend-confirmed grid recovery system. Execution speed and reliability are the top
priorities — every recovery level must be a real pending order resting on the broker's
server, not something the EA monitors and reacts to on ticks. No blocking calls of any
kind are allowed in the tick-processing path.

CORE IDENTIFICATION

- Magic Number: 25051996
- Trade comment: TRCN-FX GOLD MINER 2.0

1. HTF TREND FILTER (H1, EMA5/EMA15 crossover)

- Direction is confirmed on the H1 timeframe using a 5-period EMA vs a 15-period EMA,
  read from the last FULLY CLOSED H1 candle (must not repaint intrabar).
- Fast EMA above Slow EMA = confirmed BUY trend. Fast EMA below Slow EMA = confirmed
  SELL trend.
- The EA may only open a NEW basket in the currently confirmed direction.
- If a basket is already open and the trend later flips against it, do not close it —
  keep managing it normally until it closes on its own (TP or max loss). No new trades
  are opened until it's fully closed, at which point the EA switches to the newly
  confirmed direction.
- Two opposite-direction baskets must never run at the same time.

2. LIVE MA-DISTANCE FILTER (new-trade qualification only)

- Before opening any NEW basket, check the live distance between the fast and slow H1
  EMA, measured on the current, still-forming candle (recalculated every tick — this is
  different from the direction check above, which only updates once per closed H1
  candle).
- A new basket may only open if this distance is at least a customizable minimum
  (default 200 points). Purpose: avoid opening new trades when the trend looks
  exhausted or is about to reverse.
- This filter does not affect an already-open basket.

3. INITIAL ENTRY — TRAP ORDERS

- Once flat and a direction is confirmed, place two real pending orders on the server,
  both in the confirmed direction:
  - A Stop order (breakout entry), default 25 points from current price.
  - A Limit order (pullback entry), default 25 points from current price.
  - Both distances must be independently customizable.
- Whichever triggers first becomes Order #1 and opens the basket. The other (untriggered)
  order must be deleted immediately.
- If the trend flips before either triggers, cancel both and re-place in the new
  direction.

4. RECOVERY GRID — REAL SERVER-SIDE PENDING ORDERS

This is the most important architectural requirements. 

- When Order #1 fills, immediately calculate the full remaining sequence of orders
  (up to a customizable Max Orders, default 20): price, lot size, and direction for
  each. Calculate this once.
- Immediately place ALL remaining levels as real pending Limit orders directly on the
  broker's server (Buy Limit below price for a BUY basket, Sell Limit above price for
  a SELL basket), so the broker's own matching engine triggers each fill instantly.
- Grid spacing: Orders 1–5 = 100 points apart, Orders 6–25 = 200 points apart (both
  customizable). - start lot = 0.02
- Lot sizing: each order's lot = previous lot x multiplier (default 1.65, customizable),
  respecting the broker's minimum/maximum/step lot rules.
- Track each level by its order ticket, and detect fills precisely by ticket (not by
  guessing which position belongs to which level).
- Every tick, verify each unfilled level's order still exists on the server; if it was
  deleted, expired, rejected, or stopped out without filling, re-place it automatically.

5. TREND REVERSAL MITIGATION

- If the H1 trend filter (see #1) flips against an already-open basket, apply this
  exactly once per basket:
  - All already-filled levels are left untouched.
  - All remaining unfilled levels keep their original prices, but their lot sizes are
    recalculated using a separate, smaller multiplier (default 1.30, customizable)
    compounding from the last filled level's lot.
  - Any live pending order affected by this must be deleted and re-placed at the new
    lot size (MT5 does not allow changing a pending order's volume in place).

6. SHARED BASKET TAKE-PROFIT

- One shared TP for the whole basket, default 50 points (customizable), calculated
  from the volume-weighted average entry price of all open basket positions.
- Recalculate and reapply after every new fill.
- On TP hit: close every position in the basket, verify full closure, and reset for a
  new cycle.

7. MAX BASKET LOSS

- A configurable maximum floating loss in account currency (default 15,000). When
  reached: stop placing any further recovery orders, close the entire basket, verify
  closure, reset.

8. TRADING SESSION FILTER

- Configurable daily trading window in Nigeria time (WAT, UTC+1), default 23:05 to
  21:00 (overnight, wraps past midnight).
- Outside this window: no new trap or recovery orders may be placed. Existing open
  positions and live pending orders continue to be managed normally.

9. MANUAL NEWS FILTER

- Up to 4 configurable news times (WAT), each with a configurable minutes-before and
  minutes-after buffer (default 15/15).
- During a news window: no new orders placed; existing positions/orders still managed.

10. EXECUTION REQUIREMENTS (highest priority)

- All trade actions must be asynchronous / non-blocking — no Sleep() or any other
  blocking wait anywhere in the tick-processing path.
- Retry any failed action on a short, non-blocking, time-gated basis so failures self-heal without spamming the
  server.
- Include a spread filter (on/off, configurable max spread) and slippage control that
  gate new order placement without affecting management of existing positions/orders.

11. STATE RECONCILIATION (every tick)

The EA must compare its internal state against the live MT5 account every tick and
self-correct:
- Detect and warn on any untracked/unexpected position.
- Detect and clean up stray or duplicate pending orders, without ever touching
  legitimate tracked recovery orders.
- Keep the basket TP correct on all open positions at all times.
- Detect a grid level whose order disappeared without filling, and re-place it.
- If a basket is flagged active but has no positions left, reset cleanly.

12. RESTART RECOVERY

After an EA, terminal, or VPS restart:
- Reconstruct the entire basket state from the live account: direction, filled levels,
  lot sizes, average entry, current TP, and which grid levels are still live as pending
  orders vs. already filled vs. missing.
- Resume without duplicating any order or skipping any level.
- Persist and restore the "highest floating account drawdown" figure across restarts.

13. DASHBOARD

A minimal, professional dark-panel dashboard on the chart showing: Status
(Waiting/Buy/Sell/Paused), Orders filled (X/20), total lots, average entry, basket TP,
floating P/L, basket drawdown, account balance, equity, account growth/loss (as a
currency amount), highest floating account drawdown (as a currency amount), current
HTF trend, live MA distance, reversal-mitigation status, the next unfilled grid level,
session status, and news status.

DELIVERABLES & EXPECTATIONS

- Fully commented MQL5 source code (.mq5), compiling with zero errors and zero
  warnings.
- A short test report or screen recording showing: a basket opening, at least 2–3
  recovery levels filling, the shared TP closing the basket, and a restart-recovery
  test (restart the terminal mid-basket and confirm the EA reconstructs state
  correctly).
- Please ask questions before quoting if anything above is unclear — I'd rather clarify
  upfront than renegotiate scope later.

Bewerbungen

1
Entwickler 1
Bewertung
(615)
Projekte
718
33%
Schlichtung
46
48% / 41%
Frist nicht eingehalten
14
2%
Beschäftigt
2
Entwickler 2
Bewertung
(395)
Projekte
556
41%
Schlichtung
30
57% / 3%
Frist nicht eingehalten
57
10%
Frei
Veröffentlicht: 11 Beispiele
3
Entwickler 3
Bewertung
(2344)
Projekte
2949
63%
Schlichtung
124
44% / 26%
Frist nicht eingehalten
429
15%
Frei
4
Entwickler 4
Bewertung
(62)
Projekte
90
29%
Schlichtung
24
13% / 58%
Frist nicht eingehalten
7
8%
Arbeitet
5
Entwickler 5
Bewertung
(434)
Projekte
640
53%
Schlichtung
34
62% / 21%
Frist nicht eingehalten
6
1%
Arbeitet
6
Entwickler 6
Bewertung
(17)
Projekte
21
19%
Schlichtung
5
40% / 40%
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
8
Entwickler 8
Bewertung
(173)
Projekte
185
46%
Schlichtung
3
33% / 33%
Frist nicht eingehalten
1
1%
Arbeitet
9
Entwickler 9
Bewertung
(83)
Projekte
95
32%
Schlichtung
9
22% / 56%
Frist nicht eingehalten
5
5%
Arbeitet
10
Entwickler 10
Bewertung
(319)
Projekte
567
35%
Schlichtung
82
30% / 45%
Frist nicht eingehalten
205
36%
Arbeitet
11
Entwickler 11
Bewertung
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
12
Entwickler 12
Bewertung
(2674)
Projekte
3413
68%
Schlichtung
77
48% / 14%
Frist nicht eingehalten
342
10%
Frei
Veröffentlicht: 1 Beispiel
13
Entwickler 13
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
14
Entwickler 14
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
15
Entwickler 15
Bewertung
(3)
Projekte
9
67%
Schlichtung
0
Frist nicht eingehalten
0
Arbeitet
16
Entwickler 16
Bewertung
(28)
Projekte
34
35%
Schlichtung
0
Frist nicht eingehalten
2
6%
Frei
17
Entwickler 17
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
1
100%
Frei
18
Entwickler 18
Bewertung
(1)
Projekte
1
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Arbeitet
19
Entwickler 19
Bewertung
(18)
Projekte
22
18%
Schlichtung
8
38% / 38%
Frist nicht eingehalten
3
14%
Arbeitet
Veröffentlicht: 1 Beispiel
20
Entwickler 20
Bewertung
(6)
Projekte
8
38%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
2
25%
Frei
21
Entwickler 21
Bewertung
(14)
Projekte
20
25%
Schlichtung
0
Frist nicht eingehalten
2
10%
Arbeitet
Veröffentlicht: 3 Beispiele
22
Entwickler 22
Bewertung
(8)
Projekte
8
0%
Schlichtung
2
50% / 0%
Frist nicht eingehalten
1
13%
Arbeitet
23
Entwickler 23
Bewertung
(25)
Projekte
31
13%
Schlichtung
13
0% / 77%
Frist nicht eingehalten
9
29%
Arbeitet
24
Entwickler 24
Bewertung
(551)
Projekte
839
61%
Schlichtung
33
27% / 45%
Frist nicht eingehalten
24
3%
Frei
Veröffentlicht: 1 Beispiel
25
Entwickler 25
Bewertung
(209)
Projekte
271
21%
Schlichtung
24
50% / 17%
Frist nicht eingehalten
0
Arbeitet
26
Entwickler 26
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
27
Entwickler 27
Bewertung
(366)
Projekte
449
55%
Schlichtung
23
57% / 17%
Frist nicht eingehalten
30
7%
Arbeitet
28
Entwickler 28
Bewertung
(3)
Projekte
4
0%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
1
25%
Frei
29
Entwickler 29
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
30
Entwickler 30
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
ZONDII Scalpers 30+ USD
I need an Expert Advisor called ZONDII Scalpers for MT5 (MQL5). Timeframe: M5 Pairs: XAUUSD / EURUSD BUY when: Price > EMA200 and EMA50 crosses above EMA200 and RSI(14) > 50 SELL when: Price < EMA200 and EMA50 crosses below EMA200 and RSI(14) < 50 Risk: Fixed lot 0.01, SL 300 points, TP 600 points, Trailing start 200 points / step 100 points. Filter: Max spread 30 points. Only 1 trade at a time. Inputs must be
I am looking for a professional MT5 EA developer to build a high-performance trading bot specifically for XAUUSD (Gold). My target is approximately 200% return within 3 months, while keeping the drawdown and risk as controlled as reasonably possible. Requirements: MT5 Expert Advisor (EA) XAUUSD only Fully automated trading Clear risk management Stop Loss and Take Profit on trades No martingale or grid strategy unless
Hello, I’m looking for an experienced MT5 developer to build a professional Expert Advisor (EA) for trading Gold (XAUUSD). My requirements: Platform: MT5 Instrument: XAUUSD (Gold) Fully automatic trading Both BUY and SELL trades Adjustable lot size Stop Loss and Take Profit Trailing Stop / Break Even Daily maximum loss limit Maximum drawdown protection Maximum number of open trades Trading hours/session filter Spread
B6 EA 30 - 50 USD
Develop an Expert Advisor trading trend reversals. Reversal signals will be generated based on Price Action patterns. Trend will be determined based on ADX, Alligator and MACD, while the indicator selection should be available in the EA's input parameters
EA VAULT V5.1 30 - 200 USD
//+------------------------------------------------------------------+ //| EA_VAULT_V5_1_Otsile_Classic.mq5 | //| v5.11: CLASSIC VAULT EDITION - Smart Risk + License| //| Author: Otsile Trading | //| Icon: Bank Vault Guardian | //+------------------------------------------------------------------+ #property strict #property version "5.11" #property description "EA VAULT V5.1 CLASSIC EDITION" #property icon
Abba Wale 30 - 100000 USD
//+------------------------------------------------------------------+ //| XAUUSD_SMART_EA_V2.mq5 | //| BOS + Liquidity Sweep + FVG + EMA + ATR | //+------------------------------------------------------------------+ #property strict #property version "2.00" #include <Trade/Trade.mqh> CTrade trade; //================================================================== // INPUTS
Dfwluxea 30 - 6000 USD
MetaTrader 5 Smart Trading Robot – Description Create an advanced MetaTrader 5 (MT5) Expert Advisor designed to analyze the market, generate high-quality trading signals, identify potential trading mistakes, and manage trades using strict risk-management rules. The robot should continuously analyze price action, market structure, trend direction, volatility, support and resistance, momentum, and selected technical
1. PROJECT OVERVIEW Development of a custom automated and manual trading bot for NinjaTrader 8, primarily designed for Nasdaq Futures (NQ/MNQ). The bot will contain the original trading strategy, configurable risk management, automatic and manual operating modes, alerts, profit/loss management, partial profit taking, Break Even, backtesting functionality, and the additional configurable contract-averaging system
Hello, I have a custom indicator with a specific line. Logic I want: 1. When a candle closes and crosses the indicator line (I will tell you the buffer number of this line), start counting. 2. After the cross, wait for 3 consecutive candles with the same color / same direction. 3. If the 3 candles are bullish, open a BUY trade on the next candle open. 4. If the 3 candles are bearish, open a SELL trade on the
I need I trading robot with a dashboard for stop and start working 99%accurate profit while scalping me the user only putting password of mt5 then I run it that doesn't take a long time to process a trade and always making sure that altlest it makes 500dollars per day using 0.05 lot size

Projektdetails

Budget
50 - 100 USD
Ausführungsfristen
bis 20 Tag(e)

Kunde

Veröffentlichte Aufträge1
Anzahl der Schlichtungen0