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

MQL5 Asesores Expertos

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
(632)
Proyectos
1000
47%
Arbitraje
33
36% / 36%
Caducado
98
10%
Trabaja
Ha publicado: 6 ejemplos
2
Desarrollador 2
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(328)
Proyectos
512
19%
Arbitraje
33
45% / 30%
Caducado
34
7%
Trabajando
4
Desarrollador 4
Evaluación
(258)
Proyectos
264
30%
Arbitraje
0
Caducado
3
1%
Libre
Ha publicado: 2 ejemplos
5
Desarrollador 5
Evaluación
(158)
Proyectos
168
43%
Arbitraje
3
33% / 33%
Caducado
1
1%
Trabaja
6
Desarrollador 6
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(363)
Proyectos
436
54%
Arbitraje
21
52% / 14%
Caducado
30
7%
Trabajando
8
Desarrollador 8
Evaluación
(10)
Proyectos
11
0%
Arbitraje
3
0% / 33%
Caducado
1
9%
Trabaja
9
Desarrollador 9
Evaluación
(279)
Proyectos
375
72%
Arbitraje
19
32% / 47%
Caducado
14
4%
Trabaja
Ha publicado: 14 ejemplos
10
Desarrollador 10
Evaluación
(543)
Proyectos
824
62%
Arbitraje
33
27% / 45%
Caducado
23
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
(24)
Proyectos
30
13%
Arbitraje
12
0% / 75%
Caducado
8
27%
Trabaja
13
Desarrollador 13
Evaluación
(46)
Proyectos
59
53%
Arbitraje
7
86% / 0%
Caducado
2
3%
Trabaja
14
Desarrollador 14
Evaluación
(640)
Proyectos
864
48%
Arbitraje
29
38% / 17%
Caducado
63
7%
Trabaja
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
(2664)
Proyectos
3391
68%
Arbitraje
77
48% / 14%
Caducado
342
10%
Trabaja
Ha publicado: 1 ejemplo
18
Desarrollador 18
Evaluación
(7)
Proyectos
8
88%
Arbitraje
0
Caducado
0
Libre
19
Desarrollador 19
Evaluación
(40)
Proyectos
43
58%
Arbitraje
1
100% / 0%
Caducado
1
2%
Trabaja
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
(16)
Proyectos
23
17%
Arbitraje
4
50% / 25%
Caducado
4
17%
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
(74)
Proyectos
84
27%
Arbitraje
8
13% / 63%
Caducado
4
5%
Trabaja
Solicitudes similares
1. Project Overview - This project aims to develop a "Manual Backtesting Assistant Tool" that operates exclusively within the MT4 (MetaTrader 4) Strategy Tester environment. - [CRITICAL NOTE]: This is NOT an automated trading EA! There is NO need to implement any automated entry/exit logic based on technical indicators like Moving Averages, MACD, etc. - Core Mechanism: During historical backtesting, a UI interactive
I'm looking for develop a predictive program that trades in forex currencies .The program will identify patterns and triggers and use this data to make high probability trades. If you're a professional developer that's capable to take on this project. Kindly send me a message and let's discuss further
Sira 30+ USD
I want 90% accuracy fast and reliable indicate signals able to read risk and profit to keep a good trade notify when trade is going down or when it will be a loss
Hello! I am searching skilled CTRADE programmer to fix my Expert Advisor. Details will be showed for selected programmer. I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from
preciso de um programa paracido com o CAP channel com botao de refresh e opcaos de alterar o periodo. utilizava um muito bom, mas o vendedor acredito ter sido excluido da comunidade, sumiu. e o que tinha parou de funcionar
Hello I need a Person who write for me a EA on MT5 on renko charts, refreshed time 10s (optionally other timeframes 5s, 15s, 30s, 1min etc). EA will base on The bollinger band modified indicator, the source code is from Tradingwiev. I will share it. Rules: EA will open positions when price close above/under some band from indicator, always on closed brick (EA must wait to close timeframe, SL or Trailing stop will
Krushan 30+ USD
#property copyright "Krishh yadav" #property link "https://krishhautomationfx.in" #property version "1.07" #property strict #include <Trade\Trade.mqh> #include <Trade\AccountInfo.mqh> #include <Trade/PositionInfo.mqh> CTrade trade; CPositionInfo posinfo; CPositionInfo pos; enum LotMode { FixedLot = 0, RiskLot = 1, EquityLot = 2, }; enum ENUM_HOUR { h00=0, h01=1, h02=2, h03=3, h04=4, h05=5, h06=6, h07=7
I want to convert an MT4 Fractal Breakout EA to MT5. This EA places pending stop order to capture the fractal breakout and trail it. No complex indicator or rules. Enable only Buy or Only Sell or Both Buy Sell option in any indices. MT4 backtest should match Mt5 to some extent
Hello! Is there any person who can teach me Forex. I prefer high time frame strategies Like H4, D1, but I am open for your propositions. Have a nice day
SNIPER X AI 30 - 200 USD
I really need a developer Who can help me to create my SNIPER X AI - Elite AI Trading System Overview SNIPER X AI BOT is an AI-assisted trading system for Forex, Crypto, Stocks, Indices, and Gold. Currency: USD,RAND,KWD, POUND,EURO Core Features AI Scalping, Sniper Entries, Auto Buy/Sell, Smart Risk Management, Telegram Alerts, Mobile Monitoring, VPS Deployment. Supported Platforms MetaTrader 4, MetaTrader 5, Exness

Información sobre el proyecto

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

Cliente

Encargos realizados1
Número de arbitrajes0