Develop the Grid (with Pending orders) + Hedge EA for Currency Pairs and XAUUSD

İş tamamlandı

Tamamlanma süresi: 11 gün
Müşteri tarafından geri bildirim
Ужасный исполнитель который никак не проявляет инициативу и даже не пытается чем-то помочь

Şartname

The discription attached below in English and Russian languages. Kindly note that I want to get the source code(.mq5 + .ex5) too, for self education. Thank you at advance

Grid Hedge 2026 EA Trading Expert Advisor

 

  • Development language: MQL5
  • Account type: Hedge
  • Trading on Forex pairs and XAUUSD
  • No indicators used
  • No time restrictions — the EA trades 24/7, with the option to limit or stop trading before important news
  • Currency: USD
  • Swap is not taken into account
  • Places only pending orders: BuyLimit - SellStop / BuyStop - SellLimit
  • Backtested in MT5

The EA should be fundamentally similar to the Magic Grid EA.
Reference:
https://www.mql5.com/ru/market/product/76546?source=Unknown


Main Parameters

 

This Expert Advisor places pending orders in a grid similar to Magic Grid. It uses TakeProfit/StopLoss. When launched, grids are created at equal distances relative to the current price. The EA always places only pending orders.

1.     Base Grid Lot = 0.01 (adjustable)

2.     Grids (Up & Down) = 10 (adjustable)

o    Total: 10 grids upward and 10 grids downward

o    Due to limitations on placing pending orders within one trading account, orders must be placed/removed gradually as the price moves

o    Number of grid levels = 10 (adjustable), with expansion capability when approaching grid boundaries (+10 levels in the direction of price)

3.     Grid Distance = 2000 (adjustable)

4.     Grid Take Profit = 2000 (adjustable)

o    Take Profit applies only to base grid orders

5.     Grid Stop Loss = 2000 (adjustable)

o    Stop Loss applies only to base grid orders

6.     Grid Deviation = 150 (adjustable, slippage)

7.     Magic Number = 9812345 (adjustable)

o    Used to allow running the EA on multiple instruments within one terminal


Risk Management

 

Risk management works on every tick if enabled.

8.     Risk Management = true (adjustable)

9.     Target Profit = 1000.0 (adjustable, % of equity)

o    When reached: closes all orders and trades, fully stops trading, and sends a notification

10. Max Drawdown = 80.0 (adjustable, % of equity)

  • When reached: closes all orders and trades, fully stops trading, and sends a notification

11. Extra Notification for Equity Drawdown = true (adjustable)

12. Extra Notification for Equity Drawdown Percentage = 70.0 (adjustable)


First Stage Compensator Logic

 

The mechanism called the first-stage compensator places additional pending BuyStop or SellStop orders to support the current price direction.

  • Initially places orders on grids according to input parameters at EA start
  • When active orders show an imbalance in buy/sell lots, restrictions on compensator order placement are activated
  • Unlike the main grid:
    • Buy pending orders are placed only above the current price
    • Sell pending orders are placed only below the current price
  • Due to account limitations, pending orders are placed gradually (only inactive ones are removed) as price moves

First Stage Compensator Parameters

 

(No TakeProfit/StopLoss — only a two-stage Trailing Stop)

13. First Stage Compensator = On/Off (adjustable)

14. First Stage Compensator Mode = limited / unlimited (adjustable)

  • Sell restriction formula:
    (sum of buy lots below current price − sum of sell lots below current price) / grid lot ≤ -6
    • If ≤ -6 → sell pending compensators above current price are NOT placed (to prevent increasing drawdown)
  • Buy restriction formula:
    (sum of buy lots above current price − sum of sell lots above current price) / grid lot ≥ 6
    • If ≥ 6 → buy pending compensators below current price are NOT placed (to prevent increasing drawdown)

15. First Stage Compensator Lot = 0.01 (adjustable)

  • Can be fixed or dynamic:
    • Fixed: standard (adjustable)
    • Dynamic: calculated as follows:
      (sum of active buy lots − sum of active sell lots) / lot difference divisor × Base Grid Lot
      • If result > 0 → sell compensator lot = result
      • If result < 0 → buy compensator lot = absolute value
      • If result = 0 → lot = Base Grid Lot

16. Lot Difference Divisor = 3 (adjustable)

17. First Stage Compensator Mode = each_grid
(adjustable, struct Mode = each_grid, second_grid, third_grid)

18. Trailing Stop Start At = 2000 (adjustable)

  • When a compensator trade moves 2000 points into profit, the first trailing stop is activated

19. Trailing Stop Placed At = 1000 (adjustable)

  • The trailing stop remains fixed

20. Trailing Stop Additional Moved To = 4000 (adjustable)

  • Additional shift at profit = 2 × Grid Distance

 


Dosyalar:

ZIP
TZ_2026.zip
440.5 Kb

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(394)
Projeler
551
40%
Arabuluculuk
30
57% / 3%
Süresi dolmuş
57
10%
Serbest
Yayınlandı: 11 kod
2
Geliştirici 2
Derecelendirme
(5)
Projeler
13
54%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
4
31%
Serbest
Yayınlandı: 6 kod
3
Geliştirici 3
Derecelendirme
(266)
Projeler
598
35%
Arabuluculuk
64
20% / 58%
Süresi dolmuş
147
25%
Çalışıyor
Yayınlandı: 1 makale, 22 kod
4
Geliştirici 4
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
1
100%
Serbest
6
Geliştirici 6
Derecelendirme
(4)
Projeler
4
0%
Arabuluculuk
4
25% / 75%
Süresi dolmuş
1
25%
Serbest
7
Geliştirici 7
Derecelendirme
(362)
Projeler
435
54%
Arabuluculuk
20
55% / 15%
Süresi dolmuş
30
7%
Çalışıyor
8
Geliştirici 8
Derecelendirme
(571)
Projeler
662
32%
Arabuluculuk
42
45% / 45%
Süresi dolmuş
12
2%
Çalışıyor
9
Geliştirici 9
Derecelendirme
(39)
Projeler
52
19%
Arabuluculuk
15
27% / 67%
Süresi dolmuş
8
15%
Serbest
Yayınlandı: 1 kod
10
Geliştirici 10
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
11
Geliştirici 11
Derecelendirme
(193)
Projeler
249
20%
Arabuluculuk
22
50% / 18%
Süresi dolmuş
0
Yüklendi
12
Geliştirici 12
Derecelendirme
(42)
Projeler
43
7%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 2 makale, 23 kod
13
Geliştirici 13
Derecelendirme
(19)
Projeler
21
19%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
2
10%
Çalışıyor
14
Geliştirici 14
Derecelendirme
(298)
Projeler
477
40%
Arabuluculuk
105
40% / 24%
Süresi dolmuş
81
17%
Yüklendi
Yayınlandı: 2 kod
15
Geliştirici 15
Derecelendirme
(10)
Projeler
14
43%
Arabuluculuk
0
Süresi dolmuş
3
21%
Serbest
16
Geliştirici 16
Derecelendirme
(1)
Projeler
2
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
Добрый день! 30 - 100 USD
Требуется адаптировать простенький индикатор для МТ5 под новые существующие сейчас билды. Раньше в 2015гг. индикатор работал. как обновились билды на мт5 , индикатор перестал прикрепляться к графику. Мой емейл: Eduardfoer@mail.ru
Need an advisor that works on the retest of the first five-minute New York candle. Entry is on the breakout of the M1 candle testing the range of the first five M1 candles. Automatic and adjustable GMT. Adjustable take profit in PP. Stop loss is per M1 candle. The M1 candle should test the range and close with a body outside it. The ability to customize stop-loss orders by RR and points. Add the ability to trail
Уровни Фибоначчи — инструмент технического анализа в трейдинге, основанный на последовательности чисел дневной диапазон — расстояние между максимальной и минимальной ценой в течение дня. Ешо на долгосрочный, недельный диапазон фиксируется работает уверенной лицам
Description: Hello! We are looking for a developer to create a custom MT5 indicator. Requirements: — Detection of breakout zones — Detection of FVG (fair value gap) zones — Clean logic, non-repainting Preferred: — Experience with MT5 indicator development — Understanding of market structure / price action (SMC is a plus) Please include: — Examples of similar work (if available) We are ready to discuss details and
Советник нужен полноценный, хотя он нужен для поиска закономерностей. Так как я в первый раз заказываю советник, то нужен опытный человек, который сможет направить (подсказать) по составлению грамотного ТЗ. Желательно чтобы исполнитель был русскоязычным, так как я с России. Всем благ
Нужен советник на золото , закинул скрин каком принципе . На mt5, и что бы код был бы свободный , смогбы его доработать . Встроенный стоп лосс, тайк профит , интерфейс .что бы автоматически открывал и закрывал позиции
Ищу для покупки исходный код адекватного торгового робота на долгосрок. Интересуют только прозрачные алгоритмы с понятным обоснованием входов и выходов. Сразу мимо: мартингейл, сеточники, усреднения убытков и торговля без стопов. Каждая сделка должна быть защищена расчетным или фиксированным Stop Loss. В приоритете системы, работающие по тренду, на пробой импульса или возврат к среднему. Чтобы начать предметный

Proje bilgisi

Bütçe
100 - 200 USD
Son teslim tarihi
from 5 to 10 gün