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

MQL5 Uzmanlar

Şartname

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.

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(632)
Projeler
1000
47%
Arabuluculuk
33
36% / 36%
Süresi dolmuş
98
10%
Çalışıyor
Yayınlandı: 6 kod
2
Geliştirici 2
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
3
Geliştirici 3
Derecelendirme
(328)
Projeler
512
19%
Arabuluculuk
33
45% / 30%
Süresi dolmuş
34
7%
Yüklendi
4
Geliştirici 4
Derecelendirme
(258)
Projeler
264
30%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
Yayınlandı: 2 kod
5
Geliştirici 5
Derecelendirme
(158)
Projeler
168
43%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
1
1%
Çalışıyor
6
Geliştirici 6
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
7
Geliştirici 7
Derecelendirme
(363)
Projeler
436
54%
Arabuluculuk
21
52% / 14%
Süresi dolmuş
30
7%
Yüklendi
8
Geliştirici 8
Derecelendirme
(10)
Projeler
11
0%
Arabuluculuk
3
0% / 33%
Süresi dolmuş
1
9%
Çalışıyor
9
Geliştirici 9
Derecelendirme
(279)
Projeler
375
72%
Arabuluculuk
19
32% / 47%
Süresi dolmuş
14
4%
Çalışıyor
Yayınlandı: 14 kod
10
Geliştirici 10
Derecelendirme
(543)
Projeler
824
62%
Arabuluculuk
33
27% / 45%
Süresi dolmuş
23
3%
Serbest
Yayınlandı: 1 kod
11
Geliştirici 11
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
12
Geliştirici 12
Derecelendirme
(24)
Projeler
30
13%
Arabuluculuk
12
0% / 75%
Süresi dolmuş
8
27%
Çalışıyor
13
Geliştirici 13
Derecelendirme
(46)
Projeler
59
53%
Arabuluculuk
7
86% / 0%
Süresi dolmuş
2
3%
Çalışıyor
14
Geliştirici 14
Derecelendirme
(640)
Projeler
864
48%
Arabuluculuk
29
38% / 17%
Süresi dolmuş
63
7%
Çalışıyor
15
Geliştirici 15
Derecelendirme
(62)
Projeler
90
29%
Arabuluculuk
24
13% / 58%
Süresi dolmuş
7
8%
Çalışıyor
16
Geliştirici 16
Derecelendirme
(8)
Projeler
8
0%
Arabuluculuk
2
50% / 0%
Süresi dolmuş
1
13%
Çalışıyor
17
Geliştirici 17
Derecelendirme
(2664)
Projeler
3391
68%
Arabuluculuk
77
48% / 14%
Süresi dolmuş
342
10%
Çalışıyor
Yayınlandı: 1 kod
18
Geliştirici 18
Derecelendirme
(7)
Projeler
8
88%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
19
Geliştirici 19
Derecelendirme
(40)
Projeler
43
58%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
1
2%
Çalışıyor
Yayınlandı: 5 kod
20
Geliştirici 20
Derecelendirme
(162)
Projeler
289
35%
Arabuluculuk
18
22% / 61%
Süresi dolmuş
43
15%
Serbest
21
Geliştirici 21
Derecelendirme
(16)
Projeler
20
0%
Arabuluculuk
10
0% / 80%
Süresi dolmuş
6
30%
Serbest
22
Geliştirici 22
Derecelendirme
(13)
Projeler
20
40%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
5%
Serbest
23
Geliştirici 23
Derecelendirme
(16)
Projeler
23
17%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
4
17%
Çalışıyor
24
Geliştirici 24
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
25
Geliştirici 25
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
26
Geliştirici 26
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
27
Geliştirici 27
Derecelendirme
(75)
Projeler
85
28%
Arabuluculuk
8
13% / 63%
Süresi dolmuş
4
5%
Çalışıyor
28
Geliştirici 28
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
29
Geliştirici 29
Derecelendirme
(242)
Projeler
285
77%
Arabuluculuk
13
69% / 0%
Süresi dolmuş
4
1%
Çalışıyor
Benzer siparişler
I need an experience programmer on news based EA, the EA will be able to fetch or return both historical and current calendar data and implore them into trading, The rest EA details will be communicated in the chat section
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

Proje bilgisi

Bütçe
80 - 150 USD
Son teslim tarihi
to 4 gün

Müşteri

Verilmiş siparişler1
Arabuluculuk sayısı0