— Create XAUUSD Grid EA for MT5 (Full Source Code + Running Setup)

Job finished

Execution time 14 days
Feedback from customer
Shoaib built my grid strategy exactly as required. Solid logic, clean execution, and great support throughout. Very reliable and highly skilled.

Specification

🔹 COMPLETE GRID + HEDGE EA SPECIFICATION (XAUUSD)


1️⃣ GENERAL OVERVIEW


This EA is a non-directional grid strategy designed mainly for sideways and slow-trending markets.

The goal is consistent small profits and survival, not fast aggressive gains.

Symbol: XAUUSD

Timeframe: Any (logic is price-based)

Directional bias: NONE

Focus: Grid logic + controlled hedging

First priority: Execution accuracy and grid integrity



2️⃣ GRID PARAMETERS

Grid Distance: User-defined (example: 100 points / $1 / $10)

All grid actions happen strictly at exact grid prices

EA must handle:

Fast moves

Grid skips

Pending order fills

Partial positions correctly



3️⃣ START OF EVERY CYCLE (FIRST GRID)


At the start of every new cycle:


Actions (Market Orders ONLY):

BUY 0.03 (market)

SELL 0.01 (market)


⚠️ Important:

First grid must ALWAYS use market orders

No pending orders on first grid

This SELL is special (see SELL rules below)



4️⃣ DOWN MOVE LOGIC (PRICE MOVES DOWN ONE GRID)


Example:

Price moves from 2000 → 1900


Step 1: SELL Handling

Close SELL 0.01 in PROFIT


Step 2: Rebuild Grid at SAME LEVEL


At the exact price where SELL profit was closed:

BUY 0.03

SELL 0.01


Execution Rules:

BUY should preferably be BUY LIMIT at grid price

SELL can be market or valid pending

Grid must be rebuilt immediately

No missing orders allowed



5️⃣ UP MOVE LOGIC (PRICE MOVES UP ONE GRID)


Example:

Price moves from 1900 → 2000


Step 1: Normalize BUY

Close BUY 0.02

Keep BUY 0.01 as runner


Step 2: SELL Handling

Close SELL 0.01

SELL loss must be covered by BUY 0.02 profit

BUY + SELL must close together


Step 3: Open New SELL

Open SELL 0.01 at this upper grid

BUY runner remains active


Resulting Position:

BUY = 0.01

SELL = 0.01



6️⃣ DOWN MOVE AFTER UP (RUNNER GRID RESTORATION – VERY IMPORTANT)


Situation:


There is only BUY 0.01 runner active at a grid (after UP move).


Rule:


If price moves DOWN one grid to that same level:


At the EXACT GRID PRICE where BUY 0.01 exists:

Add BUY 0.02 (BUY LIMIT)

Add SELL 0.01


Final Position at that Grid:

BUY = 0.03

SELL = 0.01


➡️ This restores a normal grid structure.


⚠️ This step must never be skipped, even in fast markets.



7️⃣ SIDEWAYS MARKET BEHAVIOR


When price moves up and down inside the grid:

DOWN → SELL closes in profit → rebuild grid

UP → BUY 0.02 + SELL 0.01 close together → runner logic

EA may close entire cycle early if profit target is hit



8️⃣ PROFIT EXIT RULE (GLOBAL)


At ANY time:

If overall floating profit ≥ user-defined value (example $5):

Close ALL open positions

Delete ALL pending orders

Immediately start a new cycle

BUY 0.03 (market)

SELL 0.01 (market)


⚠️ Grid completion is NOT required.



9️⃣ SELL RULES (VERY IMPORTANT)


FIRST GRID SELL (Special Rule)

SELL must NOT close in loss

SELL can close ONLY IF:

SELL itself is in profit

OR overall profit condition is met


SUBSEQUENT GRID SELLS

SELL may close:

In profit

OR in loss if BUY profit covers it



🔟 PENDING ORDER RULES

First grid: NO pending orders

All BUY adds (except first grid):

Must use BUY LIMIT

SELL pending orders allowed only where broker rules permit

EA must:

Detect unfilled pending orders

Avoid false “BUY exists” checks due to 0.01 runner

Recover missing orders if price jumps



1️⃣1️⃣ CRITICAL EXECUTION REQUIREMENTS

No duplicate BUYs at same price

No missing BUY 0.02 after runner

No SELL left open unintentionally

Pending orders must be tracked separately from positions

EA must work correctly in:

Fast moves

Slippage

Partial fills

Requotes



1️⃣2️⃣ WHAT DEVELOPER MUST DELIVER

✔ Fully working source code (MQ5)

✔ Compiled EX5 EA

✔ Clean logs for:

Grid creation

BUY/SELL close

Runner restore

✔ Backtest-ready

✔ No repaint / no indicator dependency



🔹 FINAL NOTE FOR DEVELOPERS


This EA is logic-sensitive, not indicator-based.

Execution accuracy at grid levels is more important than optimization.


If BUY / SELL pairing is missed even once, the strategy breaks.

Responded

1
Developer 1
Rating
(264)
Projects
330
29%
Arbitration
36
25% / 64%
Overdue
10
3%
Working
2
Developer 2
Rating
(169)
Projects
179
46%
Arbitration
3
33% / 33%
Overdue
1
1%
Working
3
Developer 3
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
4
Developer 4
Rating
(454)
Projects
719
34%
Arbitration
35
69% / 9%
Overdue
22
3%
Working
5
Developer 5
Rating
(48)
Projects
58
34%
Arbitration
15
27% / 60%
Overdue
1
2%
Working
6
Developer 6
Rating
(50)
Projects
64
20%
Arbitration
11
27% / 55%
Overdue
5
8%
Free
7
Developer 7
Rating
(1)
Projects
0
0%
Arbitration
2
0% / 100%
Overdue
0
Free
8
Developer 8
Rating
(461)
Projects
803
48%
Arbitration
73
19% / 52%
Overdue
140
17%
Working
9
Developer 9
Rating
(44)
Projects
51
59%
Arbitration
2
100% / 0%
Overdue
1
2%
Free
Published: 5 codes
10
Developer 10
Rating
(162)
Projects
289
35%
Arbitration
18
22% / 61%
Overdue
43
15%
Free
11
Developer 11
Rating
(27)
Projects
33
42%
Arbitration
4
50% / 50%
Overdue
3
9%
Working
12
Developer 12
Rating
(318)
Projects
565
35%
Arbitration
81
31% / 44%
Overdue
204
36%
Free
Similar orders
Code An Loss Rate 90-100% MT5 EA , that can blow a 100 USD account a day ,with fixed TP of 3000 points and SL of 3000 For better Rate Calculations get an strategy that can lead to so
I need an Expert Advisor for MT5 on XAUUSD 1min timeframe using SMC concepts. STRATEGY RULES: SELL: 1. Identify previous day High/Low as liquidity 2. Entry only during London-NY session: 15:00-19:00 GMT+3 or broker clock. 3. If price sweeps previous day High and closes back below it 4. Check for bearish 1min FVG below sweep candle 5. Wait for BOS - lower low 6. Entry: Sell/buy at 50% of the FVG 7. SL: 10 pips above
Shooter razor 30+ USD
Makes it takes trades by it self buy and sell, it must use the higher signals, also when I press stop it must not pick any trades I want it to take trades automatically when I press start also close by it self
8 cap prop firm passing 30 - 3000 USD
I am looking for an experienced MQL4/MQL5 HFT developer to build or optimize a High-Frequency Trading (HFT) Expert Advisor that can successfully pass proprietary trading firm challenges and perform consistently under live trading conditions with brokers such as 8cap or BlackBull Markets . The developer should have proven experience with HFT execution, ultra-low-latency trading, broker execution, slippage, spreads
I need a professional MT5 Expert Advisor (MQL5) for XAU/USD (Gold) only. Requirements: - Symbol: XAU/USD only - Timeframe: H1 trend, M5 entry - Smart Money Concept (SMC) - Liquidity Sweep - Break of Structure (BOS) - Order Block Retest - Confirmation Candle (Engulfing or Pin Bar) - ATR-based Stop Loss - Risk:Reward = 1:3 (adjustable) - Auto Lot (1% risk) - Break Even - Trailing Stop - Maximum 2 trades per day - One
I have a High-Frequency Trading (HFT) Expert Advisor for both MT4 and MT5 designed primarily for US30 (Dow Jones Index) . The EA performs consistently and profitably on demo accounts, but when I run it on an IC Markets Raw or Standard live account, it starts generating losses under what appear to be the same trading conditions. At this time, I cannot provide the source code (.mq4/.mq5). I can only provide the
I need an Expert Advisor for MT5 on XAUUSD 1min timeframe using SMC concepts. STRATEGY RULES: SELL: 1. Identify previous day High/Low as liquidity 2. Entry only during London-NY session: 15:00-19:00 GMT+3 3. If price sweeps previous day High and closes back below it 4. Check for bearish 1min FVG below sweep candle 5. Wait for BOS - lower low 6. Entry: Sell at 50% of the FVG 7. SL: 10 pips above sweep wick 8. TP: 2R
Hello looking for someone to convert an indicator from tradingview to Thinkorswim I have attached the codes from trading view Also, I like make it trigger (alert) a one-time alert when the trend changes, and can also create a custom watchlist column that flags symbols currently in a new trend so you can scan multiple stocks easily. And like the watchlist to show only fresh trend changes or the current trend direction
I want to build a fundamental news trading bot that trade off economic news data, as we know every economic news data released always have effect on the asset associated with it, so this bot will take a trade instantly based on the news data released either to buy or sell, it will come with good money management and also SL and TP target based on price and pips value
I have a EA/indicator that I want built. I should say 1st off dont know how to code myself so I will be using AI to verify that the source code is complete and matches the documents spec or if better so if you can not truly do the job do not waste either of out time. This is a idea I came.up wit and used AI to produce a framework for it.... and of course AI isn't 100% accurate so I need a knowledgeable quantitative

Project information

Budget
130+ USD
Deadline
from 1 to 5 day(s)