Build a Bi-Directional Grid Hedge EA with Dynamic ATR Spacing & Strict Safety Filters

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 25 minutos
Comentario del Ejecutor
Thank you!

Tarea técnica

Hello, I am looking for a highly skilled MQL5 developer to code a complex "Bi-directional Grid Hedge" EA. I have the reference settings from a previous EA, but I need to upgrade the static grid distance to a Dynamic ATR-based distance and implement strict account protection features.

Crucial Requirement: ALL variables, limits, and settings MUST be fully adjustable manually (Inputs) via the EA's properties window.

1. Core Logic (The Bi-Directional Grid System):
* Initial Trade: The EA opens a single initial directional trade.
* If it hits Target: Trade closes, wait for next setup.
* Recovery & Hedging (When in Drawdown): If the initial trade goes into DD, the EA activates a dual-grid system:
  - It opens Averaging trades for the losing direction (e.g., more Buys) using a Multiplier (e.g., 1.08).
  - Simultaneously, it opens a Counter-trade (e.g., Sell) to capture the trend reversal.
  - Crucial Rule: If the price reverses again, the counter-trades will also go into DD. The EA must then average those counter-trades as well. Essentially, it manages an independent "Buy Grid" and an independent "Sell Grid" simultaneously based on price movement.

2. The Core Upgrade: Dynamic ATR Spacing (NO STATIC DISTANCE):
* Do not use a static distance (like 100 pips).
* The distance for opening ANY new grid/hedge trade MUST be calculated dynamically using the ATR indicator.
* Logic: Grid Step Distance = Current ATR Value * ATR_Multiplier.
* The EA must recalculate this distance dynamically as volatility changes.

3. Basket Closure & Critical Safety Limits:
* Basket TP (Lock Minimum Profit): Close ALL open trades (both grids) when the combined total profit reaches a specific dollar amount (e.g., $500).
* Equity Stop Loss (Lock Drawdown %): If the combined floating drawdown hits a set percentage of the account (e.g., 10%), close ALL trades immediately.
* The "Cooldown" Timer: If the Equity SL (10% DD) is triggered, the EA MUST pause all trading activities for a user-defined number of minutes (Cooldown Input). This prevents instant re-entry during a market crash.
* One Trade Per Bar: To avoid rapid-fire order execution during spikes, the EA must only open a maximum of ONE trade per candle (per direction).

4. News Filter:
* Standard News Filter (stop trading X mins before/after Medium/High impact news).
* Exception Rule: If the EA is already in an active Grid/Hedge cycle (Recovery Mode), it must ignore the news filter and continue managing the open grids to resolve the cycle.

Required Inputs for the User Interface (Must be fully customizable):
* Start Lot / Multiplier / Max Buy Orders / Max Sell Orders.
* ATR Period / ATR Multiplier.
* Lock Minimum Profit (in USD).
* Lock Drawdown (%) / Cooldown Timer (in Minutes).
* News Filter settings (True/False, Mins before/after, URL setup).
* Magic Number / Slippage.

Important Notes:* The EA must be fully compatible and optimized for highly volatile assets, specifically Gold (XAUUSD) and Bitcoin (BTCUSD). 
* The code must dynamically handle different point/pip calculations perfectly for both symbols.
* I test exclusively on 'Every tick based on real ticks'. The logic must be flawless with zero execution errors, margin errors, or order spamming.
* The raw .mq5 source code must be provided upon completion.

Han respondido

1
Desarrollador 1
Evaluación
(636)
Proyectos
1007
47%
Arbitraje
33
36% / 36%
Caducado
99
10%
Trabaja
Ha publicado: 6 ejemplos
2
Desarrollador 2
Evaluación
(2)
Proyectos
2
50%
Arbitraje
0
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(329)
Proyectos
515
19%
Arbitraje
35
46% / 31%
Caducado
34
7%
Trabaja
4
Desarrollador 4
Evaluación
(258)
Proyectos
269
29%
Arbitraje
2
50% / 0%
Caducado
3
1%
Trabaja
Ha publicado: 2 ejemplos
5
Desarrollador 5
Evaluación
(179)
Proyectos
193
46%
Arbitraje
4
50% / 25%
Caducado
1
1%
Trabajando
6
Desarrollador 6
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(369)
Proyectos
453
55%
Arbitraje
24
54% / 17%
Caducado
30
7%
Trabajando
8
Desarrollador 8
Evaluación
(10)
Proyectos
12
0%
Arbitraje
3
33% / 33%
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(279)
Proyectos
378
72%
Arbitraje
19
32% / 47%
Caducado
16
4%
Libre
Ha publicado: 15 ejemplos
10
Desarrollador 10
Evaluación
(553)
Proyectos
844
61%
Arbitraje
33
27% / 45%
Caducado
24
3%
Libre
Ha publicado: 1 ejemplo
11
Desarrollador 11
Evaluación
(1)
Proyectos
1
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(25)
Proyectos
31
13%
Arbitraje
14
0% / 79%
Caducado
9
29%
Libre
13
Desarrollador 13
Evaluación
(47)
Proyectos
61
54%
Arbitraje
7
86% / 0%
Caducado
2
3%
Trabaja
14
Desarrollador 14
Evaluación
(645)
Proyectos
873
48%
Arbitraje
29
38% / 17%
Caducado
63
7%
Libre
15
Desarrollador 15
Evaluación
(62)
Proyectos
90
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
16
Desarrollador 16
Evaluación
(8)
Proyectos
8
0%
Arbitraje
2
50% / 0%
Caducado
1
13%
Trabaja
17
Desarrollador 17
Evaluación
(2676)
Proyectos
3414
68%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
18
Desarrollador 18
Evaluación
(8)
Proyectos
9
89%
Arbitraje
0
Caducado
0
Libre
19
Desarrollador 19
Evaluación
(45)
Proyectos
53
57%
Arbitraje
2
100% / 0%
Caducado
1
2%
Libre
Ha publicado: 5 ejemplos
20
Desarrollador 20
Evaluación
(162)
Proyectos
289
35%
Arbitraje
18
22% / 61%
Caducado
43
15%
Libre
21
Desarrollador 21
Evaluación
(16)
Proyectos
20
0%
Arbitraje
10
0% / 80%
Caducado
6
30%
Libre
22
Desarrollador 22
Evaluación
(13)
Proyectos
20
40%
Arbitraje
1
0% / 100%
Caducado
1
5%
Libre
23
Desarrollador 23
Evaluación
(24)
Proyectos
32
38%
Arbitraje
4
50% / 25%
Caducado
5
16%
Trabaja
24
Desarrollador 24
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
25
Desarrollador 25
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
26
Desarrollador 26
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
27
Desarrollador 27
Evaluación
(83)
Proyectos
95
32%
Arbitraje
9
22% / 56%
Caducado
5
5%
Trabaja
28
Desarrollador 28
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
29
Desarrollador 29
Evaluación
(260)
Proyectos
305
76%
Arbitraje
13
77% / 0%
Caducado
5
2%
Trabajando
30
Desarrollador 30
Evaluación
(6)
Proyectos
8
38%
Arbitraje
1
100% / 0%
Caducado
2
25%
Libre
31
Desarrollador 31
Evaluación
(1)
Proyectos
1
0%
Arbitraje
2
0% / 0%
Caducado
0
Trabaja
32
Desarrollador 32
Evaluación
(9)
Proyectos
16
19%
Arbitraje
2
0% / 50%
Caducado
3
19%
Trabajando
33
Desarrollador 33
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
34
Desarrollador 34
Evaluación
(11)
Proyectos
16
31%
Arbitraje
5
40% / 40%
Caducado
4
25%
Libre
35
Desarrollador 35
Evaluación
(14)
Proyectos
15
40%
Arbitraje
2
50% / 50%
Caducado
1
7%
Libre
36
Desarrollador 36
Evaluación
(22)
Proyectos
25
24%
Arbitraje
5
20% / 80%
Caducado
1
4%
Libre
Ha publicado: 6 ejemplos
37
Desarrollador 37
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
38
Desarrollador 38
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
39
Desarrollador 39
Evaluación
(28)
Proyectos
34
35%
Arbitraje
0
Caducado
2
6%
Trabaja
40
Desarrollador 40
Evaluación
(271)
Proyectos
553
50%
Arbitraje
57
40% / 37%
Caducado
227
41%
Trabaja
41
Desarrollador 41
Evaluación
(52)
Proyectos
64
39%
Arbitraje
15
27% / 60%
Caducado
1
2%
Trabaja
42
Desarrollador 42
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
I need an experienced MQL5 developer to build a prototype MT5 Expert Advisor called RiskLock. The software should enforce user-defined trading risk rules before trades are executed. It should support risk percentage or fixed monetary risk, calculate position size using account equity, entry price, stop loss, tick value and contract specifications, block or reduce oversized trades, and include daily loss limits
I need EA Lil-MeProBot for MT5. Phone user, deliver .mq5 + .ex5. Symbols: XAUUSD EURUSD GBPUSD USDJPY BTCUSD, M15, Magic 777001 Strategy 6X Confluence score 4/6: 1. EMA 50/200 trend 2. Break of Structure 3. RSI 14 4. Strong body FVG/Order Block 5. Session 8am-9pm GMT+2 6. ATR filter Money Management LASTING: Lot 0.01 fixed, NO martingale, NO grid, Max 1 per symbol Max 2 total, SL ATR*2 TP ATR*3, Daily loss R40 stop
Project Overview I have an existing MT5 Expert Advisor (EA) written in MQL5. The source code ( .mq5 ) will be provided. The underlying strategy is a trend-following system that performs well during trending market conditions, but requires professional quantitative research to improve its ability to identify and avoid highly sideways/range-bound market conditions. The objective of this project is not to build a new EA
I am looking for an experienced MQL5 Expert Advisor (EA) developer to analyze an existing trading setup and develop a similar automated trading robot. Project Overview I have access to a demo trading account where trades are being executed automatically. The trading results look very promising, but I do not know exactly what strategy, logic, indicators, or trade-management rules are being used. I will provide access
Most of the expert is already coded . Create a panel to show the Ratio for the Range . Trigger is based on ratio . Show Distribution / project starts after we clear Distribution
Modification of existing ea …. Add ema filter, add risk percentage per trade, and modify the pips per day filter. I already have the ea code I just need these things added and modifified
Expert Advisors 300+ USD
double CRiskManager::CalculateLotSize(double slPoints) { double balance = AccountInfoDouble(ACCOUNT_BALANCE); double riskMoney = balance * (m_riskPercent / 100.0); double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE); double tickSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE); double pointValue = tickValue / tickSize; double lot = riskMoney / (slPoints * pointValue);
i share my strategy i need a bot trending bot fo mt5 . i attached the photo with this it help to make bot. it basicly 1 hours time frame base. i try but failed to make it
Title: Simple background trading bot for my Oanda account (v20 REST API) Overview Hi, I need a simple, lightweight event based standalone trading bot that connects directly to my Oanda account using broker’s standard REST API (V20 account) via VPS The bot just needs to look at group of 5 currency pairs (manually selectable and adjustable) in different 4 baskets, do some basic percentage math every period, and place
MQL5 Developer 30+ USD
📄 وثيقة المواصفات الفنية لروبوت التداول (MQL5 EA Specification) 📌 1. ملخص المشروع والهدف * اسم المشروع: Gold Cent Grid-Hedge EA * المنصة: MetaTrader 5 (MQL5) * أداة التداول: الذهب (XAUUSD) * نوع الحساب: حساب سنت (Cent Account) * فكرة الاستراتيجية: تداول شبكة هيدج متوازنة (Grid-Hedging) تفتح صفقات تعزيز كل مسافة محددة، وتغلق الطرف الأكثر ربحاً عند تحقيق هدف مالّي مجمع بالدولار/السنت لإعادة هيكلة التوازن. ⚙️ 2

Información sobre el proyecto

Presupuesto
80 - 150 USD
Plazo límite de ejecución
a 4 día(s)