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

Trabajo finalizado

Plazo de ejecución 11 días
Comentario del Ejecutor
Terrible customer. Don't work with him.
Comentario del Cliente
Ужасный исполнитель который никак не проявляет инициативу и даже не пытается чем-то помочь

Tarea técnica

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

 


Archivos adjuntos:

ZIP
TZ_2026.zip
440.5 Kb

Han respondido

1
Desarrollador 1
Evaluación
(395)
Proyectos
556
41%
Arbitraje
30
57% / 3%
Caducado
57
10%
Libre
Ha publicado: 11 ejemplos
2
Desarrollador 2
Evaluación
(5)
Proyectos
13
54%
Arbitraje
2
50% / 0%
Caducado
4
31%
Trabaja
Ha publicado: 6 ejemplos
3
Desarrollador 3
Evaluación
(268)
Proyectos
603
34%
Arbitraje
65
22% / 57%
Caducado
146
24%
Trabaja
Ha publicado: 1 artículo, 22 ejemplos
4
Desarrollador 4
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
5
Desarrollador 5
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
1
100%
Libre
6
Desarrollador 6
Evaluación
(4)
Proyectos
4
0%
Arbitraje
4
25% / 75%
Caducado
1
25%
Libre
7
Desarrollador 7
Evaluación
(370)
Proyectos
460
55%
Arbitraje
24
58% / 17%
Caducado
31
7%
Trabaja
8
Desarrollador 8
Evaluación
(638)
Proyectos
746
34%
Arbitraje
49
53% / 39%
Caducado
14
2%
Trabaja
9
Desarrollador 9
Evaluación
(39)
Proyectos
52
19%
Arbitraje
15
27% / 67%
Caducado
8
15%
Libre
Ha publicado: 1 ejemplo
10
Desarrollador 10
Evaluación
(3)
Proyectos
4
0%
Arbitraje
0
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(216)
Proyectos
283
20%
Arbitraje
28
57% / 14%
Caducado
0
Trabaja
12
Desarrollador 12
Evaluación
(42)
Proyectos
43
7%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 2 artículos, 23 ejemplos
13
Desarrollador 13
Evaluación
(19)
Proyectos
21
19%
Arbitraje
1
0% / 100%
Caducado
2
10%
Libre
14
Desarrollador 14
Evaluación
(298)
Proyectos
478
40%
Arbitraje
105
40% / 24%
Caducado
82
17%
Trabajando
Ha publicado: 2 ejemplos
15
Desarrollador 15
Evaluación
(10)
Proyectos
14
43%
Arbitraje
0
Caducado
3
21%
Libre
16
Desarrollador 16
Evaluación
(1)
Proyectos
2
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
Здравствуйте! На данный момент в поисках партнера по трейдингу для совместной торговли. Готовая торговая стратегия у меня есть, так что если у вас нет результатов - совершенно не проблема, главное, чтобы у вас была голова на плечах и желание развиваться в сфере. Приветствуется: Знание волн Эллиота(база), умение работы с терминалом Если у вас есть своя торговая стратегия - я также буду готов сотрудничать с вами
Ищу специалиста для регулярной совместной работы по торговле золотом (XAUUSD), валютными парами Forex и нефтью в MetaTrader 5. Мне нужен персональный торговый консультант и аналитик, который будет помогать анализировать рынок, находить торговые возможности и составлять план действий. Основные задачи: Анализ рынка и подготовка торговых сценариев по выбранным инструментам. Совместный разбор сделок: точки входа и

Información sobre el proyecto

Presupuesto
100 - 200 USD
Plazo límite de ejecución
de 5 a 10 día(s)