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

Tâche terminée

Temps d'exécution 14 jours
Commentaires du client
Shoaib built my grid strategy exactly as required. Solid logic, clean execution, and great support throughout. Very reliable and highly skilled.

Spécifications

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

Répondu

1
Développeur 1
Évaluation
(258)
Projets
322
30%
Arbitrage
34
26% / 65%
En retard
10
3%
Travail
2
Développeur 2
Évaluation
(162)
Projets
171
43%
Arbitrage
3
33% / 33%
En retard
1
1%
Travail
3
Développeur 3
Évaluation
(62)
Projets
90
29%
Arbitrage
24
13% / 58%
En retard
7
8%
Travail
4
Développeur 4
Évaluation
(454)
Projets
717
34%
Arbitrage
34
71% / 9%
En retard
22
3%
Travail
5
Développeur 5
Évaluation
(48)
Projets
56
34%
Arbitrage
15
27% / 60%
En retard
1
2%
Gratuit
6
Développeur 6
Évaluation
(50)
Projets
64
20%
Arbitrage
11
27% / 55%
En retard
5
8%
Gratuit
7
Développeur 7
Évaluation
(1)
Projets
0
0%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
8
Développeur 8
Évaluation
(458)
Projets
798
48%
Arbitrage
73
19% / 52%
En retard
139
17%
Travail
9
Développeur 9
Évaluation
(40)
Projets
43
58%
Arbitrage
2
50% / 0%
En retard
1
2%
Travail
Publié : 5 codes
10
Développeur 10
Évaluation
(162)
Projets
289
35%
Arbitrage
18
22% / 61%
En retard
43
15%
Gratuit
11
Développeur 11
Évaluation
(21)
Projets
28
43%
Arbitrage
4
50% / 50%
En retard
1
4%
Travail
12
Développeur 12
Évaluation
(314)
Projets
561
35%
Arbitrage
81
31% / 44%
En retard
204
36%
Travail
Commandes similaires
Gold robot 3000+ USD
I really liked this training platform. I want to start a good business with this funding amount."I like crypto trading. Does it provide a demo account that is good for learning?"
Gold robot 3000+ USD
Hello, I am looking for someone who can help me to build a MT4/MT5 forex EA, by analyzing the trading history. You are responsible to find out trading logic behind the EA and Build a new EA that accurately replicates the existing strategy. I need someone who has proven previous experience to build a new EA by reverse engineering. Thanks
I am looking for an experienced MT4/MT5 developer to analyze my trading history and replicate the strategy in a new Expert Advisor (EA). The developer must have proven experience in reverse engineering strategies, analyzing trading data, and developing EAs across various trading methodologies. A deep understanding of XAUUDS and BTCUSD behavior, as well as chart analysis, is essential. Please note that we do not have
Title: MT5 Forex Trading Robot Development I need a MetaTrader 5 (MT5) Expert Advisor (EA) for automated Forex trading. Requirements: 1. The robot must be fully automated and capable of opening and closing trades without manual intervention. 2. Compatible with MetaTrader 5 (MT5). 3. Adjustable lot size, Stop Loss, and Take Profit settings. 4. Built-in risk management based on account balance. 5. Ability to trade
Risk management EA 30 - 200 USD
Looking to develop risk management EA for personal use probably commercially in the future. I want the EA to have a display panel with 0.1, 0.2, 0.5,1,2,3 percent risk management button. I also want BE, partial closure of 0.25,0.5,0.75 and full closure panel on both profit and loss. I’ll also like to include trailing stop, 2 trades max per day and BE+spread option. I’ll be attaching the image for a guidance on what
Sierra Chart Alerts to MT5 via Webhook (Alert Manager File Version) Objective: Create a Custom Study (ACSIL / C++) that monitors alerts from the Alert Manager file and forwards any valid alert directly to MT5 via an HTTP POST (Webhook) in JSON format. Additional Note: The study should allow adding any modifications in the future and provide clear insights into the alert points in Sierra Chart. 1. Data Flow Diagram
Ea.Mix 30+ USD
I am in need of a good scalping bot for gold or any currency pair. If you have one that is working, reach out. You must be able to provide a trial version so I can test the bot myself
A bot takes trades every few seconds until hit the profit with the same lots , i am attaching a picture as well. If anyone can do that please contact me i will give the account details
MT5 Expert Advisor Development Project Overview I am looking for an experienced MQL5 developer to build a custom MetaTrader 5 Expert Advisor based on a grid-cycle trading framework. This is not a standard grid EA . The system combines: Session-based trade initiation Multi-filter signal generation Dynamic grid management Advanced basket management State-machine-driven trade lifecycle management Dynamic take-profit

Informations sur le projet

Budget
130+ USD
Délais
de 1 à 5 jour(s)