Code a Layered Double Grid System

MQL5 Asesores Expertos

Tarea técnica

Code a grid expert advisor (EA) MQL5 that uses a sort of hedged laddering mechanism.

Core Logic Outline:

  1. Initial Setup:
    • Open a double trade (Buy & Sell) at the current market price.
    • Set two pending double trades (Buy/Sell limits) at a fixed distance on either side (e.g., ±X pips).
  2. On Trigger Event:
    • When price hits one of the pending double trade levels, execute the new double position.
    • Immediately:
      1. Close the profitable leg of the previous active double trade.
      2. Place a new double pending trade above the newly triggered trade.
      3. Replace the closed profitable trade (to restore the double trade structure).
  3. Loop:
  • Continue this cycle as the price moves, creating a self-adjusting grid that always maintains symmetry.

 

  1. In Summary
  • Each time a double trade pending orders line is triggered,
    • Close the profitable leg of the last double trade
    • Replace the close profitable trade with a pending order at its initial level
    • Create a new pending double grid order above it at the distance set in the input








Han respondido

1
Desarrollador 1
Evaluación
(60)
Proyectos
87
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
2
Desarrollador 2
Evaluación
(103)
Proyectos
165
24%
Arbitraje
23
9% / 78%
Caducado
16
10%
Trabaja
3
Desarrollador 3
Evaluación
(271)
Proyectos
400
27%
Arbitraje
39
41% / 49%
Caducado
1
0%
Libre
4
Desarrollador 4
Evaluación
Proyectos
0
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
5
Desarrollador 5
Evaluación
(47)
Proyectos
67
37%
Arbitraje
5
40% / 40%
Caducado
1
1%
Libre
6
Desarrollador 6
Evaluación
(10)
Proyectos
15
27%
Arbitraje
0
Caducado
3
20%
Libre
7
Desarrollador 7
Evaluación
(3)
Proyectos
3
33%
Arbitraje
0
Caducado
0
Libre
8
Desarrollador 8
Evaluación
(12)
Proyectos
12
17%
Arbitraje
2
0% / 50%
Caducado
1
8%
Libre
9
Desarrollador 9
Evaluación
(31)
Proyectos
35
46%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 3 ejemplos
10
Desarrollador 10
Evaluación
(133)
Proyectos
142
38%
Arbitraje
3
33% / 33%
Caducado
1
1%
Trabaja
11
Desarrollador 11
Evaluación
(2639)
Proyectos
3354
67%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
12
Desarrollador 12
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
13
Desarrollador 13
Evaluación
(7)
Proyectos
8
13%
Arbitraje
6
33% / 33%
Caducado
0
Libre
14
Desarrollador 14
Evaluación
(270)
Proyectos
552
49%
Arbitraje
57
40% / 37%
Caducado
228
41%
Trabaja
15
Desarrollador 15
Evaluación
(618)
Proyectos
1428
59%
Arbitraje
31
81% / 0%
Caducado
10
1%
Libre
16
Desarrollador 16
Evaluación
(1)
Proyectos
1
0%
Arbitraje
2
0% / 0%
Caducado
0
Trabaja
17
Desarrollador 17
Evaluación
(7)
Proyectos
6
33%
Arbitraje
7
0% / 71%
Caducado
0
Libre
Solicitudes similares
1. Shift the Time Gate (Critical) Current start time: 08:30 New required start time: 08:35:01 The EA is currently triggering trades too early (between 08:25 – 08:30 ), which is causing incorrect entries. Please ensure the EA cannot enter any trade before 08:35:01 . 2. Change Order Execution Logic The current code is using Pending Orders . Please remove pending order logic completely . Replace it with Direct Market
Here is an example of Requirements Specification for the development of the MACD Sample Expert Advisor, which is available in the MetaTrader 5 standard package. 1. The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average with the specified period
Here is an example of Requirements Specification for the development of the MACD Sample Expert Advisor, which is available in the MetaTrader 5 standard package. 1. The idea of the trading system is as follows: market entries are performed when MACD's main and signal lines intersect in the current trend direction. 2. Trend is determined based on the Exponential Moving Average with the specified period
I am looking for a pre-built MetaTrader 5 (MT5) Expert Advisor (EA) that can fully automate trading on major currency pairs such as EURUSD, AUDUSD, EURCAD, and USDCAD. Requirements: Fully automated trading (no manual intervention required) Compatible with MT5 platform Designed for consistent, long-term performance Demonstrated average monthly return of at least 3% Verified backtest and/or live trading results showing
Project Title Freedom ORB – Fully Automated MT5 Expert Advisor (ORB + Structure + Liquidity) (MT5) Project Description I require a fully automated MT5 Expert Advisor based on a structured Opening Range Breakout (ORB) model with market structure and liquidity confirmation. The EA must: Detect ORB session range Wait for breakout (close-based) Wait for retrace Confirm M1 structure + displacement Execute trade
Hello, I am a serious buyer looking to acquire an existing, stable, and profitable Expert Advisor (EA) designed specifically for: 👉 primarily (XAUUSD) or any fx This is a full buyout request, ⚠️ I am NOT looking to build a new EA from scratch. Only ready-made, proven systems with real performance history. ✅ EA Requirements (Strict) 📌 Symbol & Strategy ✔️ Trades Gold only (XAUUSD) ✔️ Price Action logic preferred
I’m looking for a trading bot where I can use a balance of £1000 to make regular entries making £20-£40 per entry. obviously, I want to have minimum loss with a lot more profit being made
I want an mt5 advisor which use advanced strategies like Accumulation, manipulate, distribution plus ABC pattern Recognition , Smart filters, Rsi + Ema crossovers, Hidden SL, partialTPs and dynamic lot sizing , works on Forex and crypto fully automated no expiry
Gold robot for 1 minute 100 - 150 USD
I need a EA as per the attached video. I need the same type of EA, once it is ready share the video of any demo account. if everything is ok I will purchase immediately. thank you
I’m hiring an experienced MQL5 developer to finish and fix an existing project (NOT building from scratch). I have: An existing MT5 EA (.mq5 + .ex5) that is based on my TradingView logic A TradingView indicator version used for signals/alerts The EA works but has logic/consistency issues and needs improvements + cleanup Goal Make the EA reliable and consistent: Ensure entries/exits match the intended logic Fix

Información sobre el proyecto

Presupuesto
30 - 50 USD
Plazo límite de ejecución
de 1 a 2 día(s)