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

MQL5 Experts

Termos de Referência

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.

Respondido

1
Desenvolvedor 1
Classificação
(632)
Projetos
1000
47%
Arbitragem
33
36% / 36%
Expirado
98
10%
Trabalhando
Publicou: 6 códigos
2
Desenvolvedor 2
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(328)
Projetos
512
19%
Arbitragem
33
45% / 30%
Expirado
34
7%
Carregado
4
Desenvolvedor 4
Classificação
(258)
Projetos
264
30%
Arbitragem
0
Expirado
3
1%
Livre
Publicou: 2 códigos
5
Desenvolvedor 5
Classificação
(158)
Projetos
168
43%
Arbitragem
3
33% / 33%
Expirado
1
1%
Trabalhando
6
Desenvolvedor 6
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
(363)
Projetos
436
54%
Arbitragem
21
52% / 14%
Expirado
30
7%
Carregado
8
Desenvolvedor 8
Classificação
(10)
Projetos
11
0%
Arbitragem
3
0% / 33%
Expirado
1
9%
Trabalhando
9
Desenvolvedor 9
Classificação
(279)
Projetos
375
72%
Arbitragem
19
32% / 47%
Expirado
14
4%
Trabalhando
Publicou: 14 códigos
10
Desenvolvedor 10
Classificação
(543)
Projetos
824
62%
Arbitragem
33
27% / 45%
Expirado
23
3%
Livre
Publicou: 1 código
11
Desenvolvedor 11
Classificação
(1)
Projetos
1
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
(24)
Projetos
30
13%
Arbitragem
12
0% / 75%
Expirado
8
27%
Trabalhando
13
Desenvolvedor 13
Classificação
(46)
Projetos
59
53%
Arbitragem
7
86% / 0%
Expirado
2
3%
Trabalhando
14
Desenvolvedor 14
Classificação
(640)
Projetos
864
48%
Arbitragem
29
38% / 17%
Expirado
63
7%
Trabalhando
15
Desenvolvedor 15
Classificação
(62)
Projetos
90
29%
Arbitragem
24
13% / 58%
Expirado
7
8%
Trabalhando
16
Desenvolvedor 16
Classificação
(8)
Projetos
8
0%
Arbitragem
2
50% / 0%
Expirado
1
13%
Trabalhando
17
Desenvolvedor 17
Classificação
(2664)
Projetos
3391
68%
Arbitragem
77
48% / 14%
Expirado
342
10%
Trabalhando
Publicou: 1 código
18
Desenvolvedor 18
Classificação
(7)
Projetos
8
88%
Arbitragem
0
Expirado
0
Livre
19
Desenvolvedor 19
Classificação
(40)
Projetos
43
58%
Arbitragem
1
100% / 0%
Expirado
1
2%
Trabalhando
Publicou: 5 códigos
20
Desenvolvedor 20
Classificação
(162)
Projetos
289
35%
Arbitragem
18
22% / 61%
Expirado
43
15%
Livre
21
Desenvolvedor 21
Classificação
(16)
Projetos
20
0%
Arbitragem
10
0% / 80%
Expirado
6
30%
Livre
22
Desenvolvedor 22
Classificação
(13)
Projetos
20
40%
Arbitragem
1
0% / 100%
Expirado
1
5%
Livre
23
Desenvolvedor 23
Classificação
(16)
Projetos
23
17%
Arbitragem
4
50% / 25%
Expirado
4
17%
Trabalhando
24
Desenvolvedor 24
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
25
Desenvolvedor 25
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
26
Desenvolvedor 26
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
27
Desenvolvedor 27
Classificação
(74)
Projetos
84
27%
Arbitragem
8
13% / 63%
Expirado
4
5%
Trabalhando
Pedidos semelhantes
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

Informações sobre o projeto

Orçamento
80 - 150 USD
Prazo
para 4 dias

Cliente

Pedidos postados1
Número de arbitragens0