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

工作已完成

执行时间14 天
客户反馈
Shoaib built my grid strategy exactly as required. Solid logic, clean execution, and great support throughout. Very reliable and highly skilled.

指定

🔹 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.

反馈

1
开发者 1
等级
(295)
项目
367
30%
仲裁
37
27% / 65%
逾期
10
3%
工作中
发布者: 10 代码
2
开发者 2
等级
(186)
项目
200
47%
仲裁
4
50% / 25%
逾期
1
1%
工作中
3
开发者 3
等级
(62)
项目
90
29%
仲裁
24
13% / 58%
逾期
7
8%
工作中
4
开发者 4
等级
(457)
项目
725
34%
仲裁
35
71% / 9%
逾期
23
3%
空闲
5
开发者 5
等级
(55)
项目
68
43%
仲裁
15
27% / 60%
逾期
1
1%
工作中
6
开发者 6
等级
(50)
项目
64
20%
仲裁
11
27% / 55%
逾期
5
8%
空闲
7
开发者 7
等级
(1)
项目
0
0%
仲裁
2
0% / 100%
逾期
0
空闲
8
开发者 8
等级
(465)
项目
815
49%
仲裁
76
21% / 50%
逾期
142
17%
已载入
9
开发者 9
等级
(45)
项目
53
57%
仲裁
2
100% / 0%
逾期
1
2%
空闲
发布者: 5 代码
10
开发者 10
等级
(162)
项目
289
35%
仲裁
18
22% / 61%
逾期
43
15%
空闲
11
开发者 11
等级
(30)
项目
38
45%
仲裁
4
50% / 50%
逾期
3
8%
工作中
12
开发者 12
等级
(319)
项目
574
35%
仲裁
83
31% / 45%
逾期
207
36%
空闲
相似订单
Forex Hunter MT5 30 - 250 USD
ثبت طلبك في مواصفات البوت الثاني كذا: الجودة والأمان أهم من السعر، وما يدخل إلا إذا الفرصة قوية، مع حماية عند الخسائر وانقطاع الاتصال وارتفاع السبريد، وتشغيل مستمر على سيرفر، مع اختبارات إلزامية قبل أي تشغيل حقيقي. بهذه الصيغة يصير يشتغل وأنت مرتاح بالِك، لكنه يوقف تلقائيًا وقت عطلة السوق أو أي خلل. بس أكون واضح معك: ما في بوت يضمن عدم الخسارة، خصوصًا بالمضاربات السريعة، هدفنا نقلل المخاطر ونمنع الخسائر غير المنضبطة
I'm looking for an experienced MQL5 developer to create a Opening Range Breakout EA. The EA should identify the high and low of a configurable trading session and open trades when price breaks out of this range. It should include configurable Stop Loss, Take Profit, fixed lot size, break-even option and trading hours. Full mq5 required
Matosfx 30 USD
Am called martin sselubiri I need a robot for trading forex and stock and I want know how this robot works and how much it costs for me to use it
AI Forex Trading Bot for MT4 and MT5 I need an advanced Forex trading robot (Expert Advisor) that works on both MetaTrader 4 and MetaTrader 5. The robot should automatically analyse the Forex market, identify BUY and SELL opportunities, and execute trades when the trading conditions are met. It should support GBPUSD, EURUSD, USDJPY and GBPJPY. The robot should use EMA, RSI, MACD, price action and trend analysis
Hi there great developers I need someone who will test the ea from real account because it must cover up the spread first by calculating the next price movement points if it can cover up the spread cost using an atr, adx , if the next price movement is more then the spread after calculate it must place an order this is how the ea must work,, message me if you can , don't waste my time if you don't have an solution
Aziz Toure 50 - 400 USD
I am an independent trader and entrepreneur based in Côte d’Ivoire. I work in financial markets, analyze trading opportunities, and provide digital financial services. I am also interested in international trade, online business, and developing long-term business activities
SMC Bot Creation 350 - 550 USD
Hello, I am interested in developing a professional MT5 Expert Advisor similar in functionality and technical sophistication to your reference product, Institutional SMC Robot: https://www.mql5.com/en/market/product/187011 I want to develop my own independent EA based on advanced Smart Money Concepts (SMC), with a strong focus on institutional price action, liquidity and market structure. The key functionalities I
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to
Phixfx 30 - 150 USD
Project Brief: Multi-Asset EA/Indicator Optimization, Debugging, and Futures Strategy Refinement ​1. Project Overview & Objective ​I am looking for an experienced algorithmic developer to inspect, debug, optimize, and enhance an existing automated trading system. The system combines custom indicators and execution logic across Forex and Futures markets. ​The primary goals of this project are: ​Debug existing logic
​I am looking for an experienced MQL5 developer to build a fully automated MetaTrader 5 Expert Advisor (EA) optimized primarily for XAUUSD (Gold), featuring a clean Tkinter-style telemetry dashboard control concept or customizable input parameters. ​1. Core Strategy Rules (Full-Body Engulfing) ​Signal Identification: The EA must scan completed candles across multiple selectable timeframes (e.g., 1M, 5M, 15M, 30M, 1H)

项目信息

预算
130+ USD
截止日期
从 1 到 5 天