Need to create a Semi-Auto EA to place trades in DCA

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 2 días
Comentario del Cliente
Efficient and able to understand my needs. Completed in a day. Thumbs UP!!!

Tarea técnica

I need a semi-automated Expert Advisor (EA) for MetaTrader 5 (MT5).
The EA will not open trades by itself.

Instead, I will manually place Buy/Sell market or limit orders, and the EA should automatically start placing pending limit orders by applying DCA (Dollar Cost Averaging) at every 5pips.

The manual order is the anchor trade with a fixed Take Profit (30pips) / Stop Loss (to be insert at the trading panel, or can be fixed at 100pips).

Also the ability of moving the stoploss all orders to breakeven with a button.

🔹 Key Requirements

  1. Platform: MetaTrader 5 (MT5).

  2. Trade Entry:

    • I will manually enter 1 trade (Buy/Sell, either Limit or market order).

    • EA should detect the trade and start placing pending limit orders every 5 pips for DCA purpose.

  3. DCA Logic:

    • EA must place additional orders every X pips (configurable, default: 5 pips).

    • Each additional order should have its lot size increased by a multiplier (configurable, default: 1.1).

    • Maximum number of trades in a basket must be configurable. (configurable, default: 10)

  4. TP & SL:

    • Each order should have a fixed Take Profit and Stop Loss in pips (configurable, default TP 30pips, SL 100pips).

    • TP/SL values must be automatically applied to all positions in the basket.

  5. Other Settings:

    • Ability to configure:

      • Step size (pips between DCA orders).

      • Lot multiplier.

      • Fixed TP (in pips).

      • Fixed SL (in pips).

      • Initial lot size.

      • Max number of trades in a basket.

    • Option to manage only manual trades (Magic=0).

    • EA must only manage trades on the attached symbol.

🔹 Example Workflow

  1. I place a manual Buy limit order at 2000.00. 

  2. EA sets TP and SL automatically (e.g., TP=30 pips, SL=100 pips).

  3. If price moves against me by 5 pips (configurable), EA opens a new Buy order with lot size = previous lot × multiplier.

    • Example: First lot = 0.10, next lot = 0.11 (if multiplier = 1.1).

  4. This process continues until max trades limit is reached. (10 trades Max)

  5. Each order has the fixed 30 pips TP applied. SL is as per anchor trade.

🔹 Deliverables

  • MT5 EA (.mq5 + .ex5).

  • Source code with clear comments.

  • External input parameters (Step size, Lot Multiplier, TP, SL, Max trades, Initial lot, Magic number).

  • Ability to backtest in MT5 strategy tester.



Han respondido

1
Desarrollador 1
Evaluación
(195)
Proyectos
242
34%
Arbitraje
11
45% / 45%
Caducado
8
3%
Libre
Ha publicado: 1 artículo, 8 ejemplos
2
Desarrollador 2
Evaluación
(16)
Proyectos
20
15%
Arbitraje
5
40% / 40%
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(62)
Proyectos
90
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
4
Desarrollador 4
Evaluación
(169)
Proyectos
180
46%
Arbitraje
3
33% / 33%
Caducado
1
1%
Trabaja
5
Desarrollador 5
Evaluación
(19)
Proyectos
23
48%
Arbitraje
10
0% / 100%
Caducado
2
9%
Libre
6
Desarrollador 6
Evaluación
(31)
Proyectos
38
53%
Arbitraje
2
50% / 50%
Caducado
3
8%
Libre
7
Desarrollador 7
Evaluación
(162)
Proyectos
289
35%
Arbitraje
18
22% / 61%
Caducado
43
15%
Libre
8
Desarrollador 8
Evaluación
(2)
Proyectos
0
0%
Arbitraje
5
0% / 60%
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(5)
Proyectos
4
25%
Arbitraje
1
0% / 100%
Caducado
0
Libre
10
Desarrollador 10
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(3)
Proyectos
4
25%
Arbitraje
0
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(25)
Proyectos
31
13%
Arbitraje
13
0% / 77%
Caducado
9
29%
Libre
13
Desarrollador 13
Evaluación
(7)
Proyectos
6
0%
Arbitraje
4
25% / 75%
Caducado
2
33%
Libre
14
Desarrollador 14
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
15
Desarrollador 15
Evaluación
(4)
Proyectos
5
0%
Arbitraje
0
Caducado
0
Libre
16
Desarrollador 16
Evaluación
(271)
Proyectos
553
50%
Arbitraje
57
40% / 37%
Caducado
227
41%
Trabaja
17
Desarrollador 17
Evaluación
(13)
Proyectos
22
41%
Arbitraje
8
0% / 50%
Caducado
3
14%
Libre
18
Desarrollador 18
Evaluación
(318)
Proyectos
565
35%
Arbitraje
81
31% / 44%
Caducado
204
36%
Libre
19
Desarrollador 19
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
20
Desarrollador 20
Evaluación
(510)
Proyectos
977
74%
Arbitraje
27
19% / 67%
Caducado
100
10%
Libre
Ha publicado: 1 artículo, 6 ejemplos
21
Desarrollador 21
Evaluación
(3)
Proyectos
1
100%
Arbitraje
3
0% / 100%
Caducado
0
Libre
22
Desarrollador 22
Evaluación
(30)
Proyectos
38
29%
Arbitraje
1
0% / 100%
Caducado
2
5%
Trabaja
Solicitudes similares
{ "strategy_name": "M5 EMA Scalper", "timeframe": "M5", "indicators": { "ema_fast": 20, "ema_slow": 50, "rsi": 14, "atr": 14 }, "entry_rules": { "buy": [ "EMA20 > EMA50", "Price closes above EMA20", "RSI > 55" ], "sell": [ "EMA20 < EMA50", "Price closes below EMA20", "RSI < 45" ] }, "risk_management": { "risk_per_trade": 1.0, "stop_loss_atr": 1.5, "take_profit_rr": 2.0
Hola, traders e inversores: Desarrollamos soluciones de trading algorítmico para MetaTrader 4 y MetaTrader 5. Creamos bots, indicadores y herramientas a medida que convierten estrategias manuales en sistemas automáticos, configurables y orientados a una gestión de riesgo sólida. Hemos trabajado en automatizaciones que integran entradas y salidas por reglas, cálculo de lotaje, control de drawdown, filtros de horario y
Hello All, can someone help me to make an EA base on MACD, https://www.mql5.com/en/code/14669 and RSI. If you are able to make this than please get me in touch, i will appreciated Thanks and best Regards Kodj007
EA 45 - 205 USD
If EMA20 > EMA50 AND RSI > 55 AND No Open Position THEN Buy SL = 50 pips TP = 100 pips If Profit > 30 pips Move SL to Break Even If Profit > 50 pips Enable Trailing Stop
I am looking for an experienced MQL5 developer to modify an existing Expert Advisor by adding an automated hedging module. The existing EA is fully functional and already manages trade entries and exits. The objective of this enhancement is to introduce a risk management feature that automatically opens a hedge position when an existing trade reaches a predefined unrealized loss in USD. The hedge should remain active
automatic robo sell at bollinger band upwards breach and rsi should above 80 and buy when bollinger breach downwards and rsi is below 30, rsi shoould works only on Gold trade and none ofhe trades
Hello, I need a custom Expert Advisor for MetaTrader 5. I am trading from mobile only. **Account & Style:** - Capital: $5,000 - $10,000 - Risk: Moderate/Balanced - Trading Style: Scalping **Pairs & Timeframe:** - Symbols: EURUSD and XAUUSD - Timeframe: M5 **Strategy:** - BUY: RSI(14) < 30 AND Price > 20 EMA - SELL: RSI(14) > 70 AND Price < 20 EMA - Only 1 trade per symbol at a time - No Martingale / No Grid **Risk
am an auto trader that for Sierra chart that works but needs some cleaning up. I need some features added to it like two parent studies with different take profit, stops, quantities and also a parent study to add to the position with its own take profit, stops, quantities
We are seeking an experienced MQL4/MQL5 programmer to develop a high-performance, fully automated Expert Advisor (EA). The bot must execute a sophisticated multi-currency hedging strategy across correlated forex pairs. Key Responsibilities Develop Multi-Currency Logic : Build an EA capable of scanning and trading multiple currency pairs simultaneously from a single chart or setup. Implement Hedging Strategy : Code
I am seeking an elite, top-tier quantitative programmer to engineer a professional multi-strategy software suite for XAU/USD (Gold). This project will be executed under a single contract workspace, cleanly structured across sequential development milestones: Milestone 1: (M30/H1/H4 Swing Architecture) 2: (M1/M5/M15 High-Frequency Velocity Architecture) 3: (Integration Phase):(Unified All-In-One Parent Class Execution

Información sobre el proyecto

Presupuesto
30 - 50 USD