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

Specifiche

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.

Con risposta

1
Sviluppatore 1
Valutazioni
(615)
Progetti
718
33%
Arbitraggio
46
48% / 41%
In ritardo
14
2%
Caricato
2
Sviluppatore 2
Valutazioni
(395)
Progetti
556
41%
Arbitraggio
30
57% / 3%
In ritardo
57
10%
Gratuito
Pubblicati: 11 codici
3
Sviluppatore 3
Valutazioni
(2344)
Progetti
2949
63%
Arbitraggio
124
44% / 26%
In ritardo
429
15%
Gratuito
4
Sviluppatore 4
Valutazioni
(62)
Progetti
90
29%
Arbitraggio
24
13% / 58%
In ritardo
7
8%
In elaborazione
5
Sviluppatore 5
Valutazioni
(434)
Progetti
640
53%
Arbitraggio
34
62% / 21%
In ritardo
6
1%
In elaborazione
6
Sviluppatore 6
Valutazioni
(17)
Progetti
21
19%
Arbitraggio
5
40% / 40%
In ritardo
0
Gratuito
7
Sviluppatore 7
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
8
Sviluppatore 8
Valutazioni
(173)
Progetti
185
46%
Arbitraggio
3
33% / 33%
In ritardo
1
1%
In elaborazione
9
Sviluppatore 9
Valutazioni
(83)
Progetti
95
32%
Arbitraggio
9
22% / 56%
In ritardo
5
5%
In elaborazione
10
Sviluppatore 10
Valutazioni
(319)
Progetti
567
35%
Arbitraggio
82
30% / 45%
In ritardo
205
36%
In elaborazione
11
Sviluppatore 11
Valutazioni
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
(2674)
Progetti
3413
68%
Arbitraggio
77
48% / 14%
In ritardo
342
10%
Gratuito
Pubblicati: 1 codice
13
Sviluppatore 13
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 1 codice
14
Sviluppatore 14
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
15
Sviluppatore 15
Valutazioni
(3)
Progetti
9
67%
Arbitraggio
0
In ritardo
0
In elaborazione
16
Sviluppatore 16
Valutazioni
(28)
Progetti
34
35%
Arbitraggio
0
In ritardo
2
6%
Gratuito
17
Sviluppatore 17
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
1
100%
Gratuito
18
Sviluppatore 18
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
1
0% / 100%
In ritardo
0
In elaborazione
19
Sviluppatore 19
Valutazioni
(18)
Progetti
22
18%
Arbitraggio
8
38% / 38%
In ritardo
3
14%
In elaborazione
Pubblicati: 1 codice
20
Sviluppatore 20
Valutazioni
(6)
Progetti
8
38%
Arbitraggio
1
100% / 0%
In ritardo
2
25%
Gratuito
21
Sviluppatore 21
Valutazioni
(14)
Progetti
20
25%
Arbitraggio
0
In ritardo
2
10%
In elaborazione
Pubblicati: 3 codici
22
Sviluppatore 22
Valutazioni
(8)
Progetti
8
0%
Arbitraggio
2
50% / 0%
In ritardo
1
13%
In elaborazione
23
Sviluppatore 23
Valutazioni
(25)
Progetti
31
13%
Arbitraggio
13
0% / 77%
In ritardo
9
29%
In elaborazione
24
Sviluppatore 24
Valutazioni
(551)
Progetti
839
61%
Arbitraggio
33
27% / 45%
In ritardo
24
3%
Gratuito
Pubblicati: 1 codice
25
Sviluppatore 25
Valutazioni
(209)
Progetti
271
21%
Arbitraggio
24
50% / 17%
In ritardo
0
In elaborazione
26
Sviluppatore 26
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
27
Sviluppatore 27
Valutazioni
(366)
Progetti
449
55%
Arbitraggio
23
57% / 17%
In ritardo
30
7%
In elaborazione
28
Sviluppatore 28
Valutazioni
(3)
Progetti
4
0%
Arbitraggio
1
100% / 0%
In ritardo
1
25%
Gratuito
29
Sviluppatore 29
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
30
Sviluppatore 30
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
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

Informazioni sul progetto

Budget
50 - 100 USD
Scadenze
a 20 giorno(i)

Cliente

Ordini effettuati1
Numero di arbitraggi0