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

작업 종료됨

실행 시간 11 일
고객의 피드백
Ужасный исполнитель который никак не проявляет инициативу и даже не пытается чем-то помочь
피고용인의 피드백
Terrible customer. Don't work with him.

명시

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

 


파일:

ZIP
TZ_2026.zip
440.5 Kb

응답함

1
개발자 1
등급
(395)
프로젝트
556
41%
중재
30
57% / 3%
기한 초과
57
10%
무료
게재됨: 11 코드
2
개발자 2
등급
(5)
프로젝트
13
54%
중재
1
100% / 0%
기한 초과
4
31%
무료
게재됨: 6 코드
3
개발자 3
등급
(268)
프로젝트
603
34%
중재
65
22% / 57%
기한 초과
147
24%
작업중
게재됨: 1 기고글, 22 코드
4
개발자 4
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
5
개발자 5
등급
프로젝트
1
0%
중재
0
기한 초과
1
100%
무료
6
개발자 6
등급
(4)
프로젝트
4
0%
중재
4
25% / 75%
기한 초과
1
25%
무료
7
개발자 7
등급
(366)
프로젝트
446
54%
중재
22
59% / 14%
기한 초과
30
7%
작업중
8
개발자 8
등급
(611)
프로젝트
713
33%
중재
45
49% / 42%
기한 초과
14
2%
바쁜
9
개발자 9
등급
(39)
프로젝트
52
19%
중재
15
27% / 67%
기한 초과
8
15%
무료
게재됨: 1 코드
10
개발자 10
등급
(3)
프로젝트
4
0%
중재
0
기한 초과
0
무료
11
개발자 11
등급
(203)
프로젝트
264
22%
중재
24
50% / 17%
기한 초과
0
작업중
12
개발자 12
등급
(42)
프로젝트
43
7%
중재
0
기한 초과
0
무료
게재됨: 2 기고글, 23 코드
13
개발자 13
등급
(19)
프로젝트
21
19%
중재
1
0% / 100%
기한 초과
2
10%
작업중
14
개발자 14
등급
(298)
프로젝트
478
40%
중재
105
40% / 24%
기한 초과
82
17%
로드됨
게재됨: 2 코드
15
개발자 15
등급
(10)
프로젝트
14
43%
중재
0
기한 초과
3
21%
무료
16
개발자 16
등급
(1)
프로젝트
2
0%
중재
0
기한 초과
0
무료
비슷한 주문
После пробоя N количества свечей и откате на установленное в настройках количество процентов(от 0 до 99) от величины последней свечи S осуществляется вход в рынок (открытие позиции) на MT5 по тренду с указанным обьёмом лота (по умолчанию 0.01).За направление тренда принимается направление пробития свечей.Для защиты установленного ордера от отрицательного пробоя устанавливается минимальный положительный стоп лосс в
После пробоя N количества свечей и откате на установленное в настройках количество процентов(от 0 до 99) от величины последней свечи S осуществляется вход в рынок (открытие позиции) на MT5 по тренду с указанным обьёмом лота (в настройках).За направление тренда принимается направление пробития свечей.Для защиты установленного ордера от отрицательного пробоя устанавливается минимальный положительный стоп лосс в
Советник должен быть: мультивалютным; мультифреймовым; работать на любом символе; поддерживать несколько экземпляров одновременно; иметь современную информационную панель; корректно работать в тестере стратегий MT4. Также называться ALEXCAPITAL Основная идея Советник должен уметь одновременно сопровождать две независимые сетки: BUY; SELL. При этом противоположная сетка НЕ должна запускаться сразу. Она должна
Нужно написать сеточного советника который использует корреляцию валютных пар . это робот, который не просто ставит сетку ордеров на одной паре, а анализирует связь между двумя (или несколькими) инструментами и строит торговлю на их расхождении или схождении. Идея в том, чтобы ловить моменты, когда пары, которые обычно движутся синхронно (или, наоборот, в противофазе), временно расходятся, и торговать в ожидании
Добрый день! Требуется написать индикатор для МТ4 по построению опционных уровней для валютных пар. На сайте СМЕ groupe потребуется собирать определенные данные (в основном цифровые значения), проводить определенные операции с этими данными, после чего полученные значения выводить на график МТ4 в виде опционного уровня. В индикаторе должна быть функция ежедневного мониторинга сайта СМЕ / или / чтобы в терминале была
Куплю стабильный, высокоприбыльный торговый советник для платформ MetaTrader 4 и MetaTrader 5. Для любых доступных активах : Валютные пары (Forex) Металлы (XAUUSD, XAGUSD и др.) Энергоносители (нефть, газ) Индексы Криптовалюты Деривативы и другие CFD-инструменты 2. Ключевые требования к стратегии Запрещено: Martingale Grid / сетка / усреднение Риск-менеджмент (строго обязательно): Максимальная просадка Риск на одну
# Technical Specification for Expert Advisor Development (MT5) **Project Name:** Grid Breakout EA **Platform:** MetaTrader 5 (MT5) **Account Mode in MT5:** Hedging (separate position accounting) ## 1. EA Operation Algorithm ### Step 1: Initialization and First Entry 1. If there are no open positions, the EA detects the current market Ask and Bid prices. 2. Two pending orders are placed in both directions from the
Нужно доработать существующий робот. Робот торгует по стратегии сетка, нужно добавить тралл, т.е. чтобы последний ордер сетки закрывался по траллу, при этом первый ордер сетки должен закрыться в убыток за счет одного или нескольких прибыльных ордеров

프로젝트 정보

예산
100 - 200 USD
기한
에서 5  10 일