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

MQL5 Experts

Job finished

Execution time 2 days
Feedback from customer
Efficient and able to understand my needs. Completed in a day. Thumbs UP!!!

Specification

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.



Responded

1
Developer 1
Rating
(195)
Projects
242
34%
Arbitration
11
45% / 45%
Overdue
8
3%
Free
Published: 1 article, 8 codes
2
Developer 2
Rating
(16)
Projects
20
15%
Arbitration
5
40% / 40%
Overdue
0
Free
3
Developer 3
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
4
Developer 4
Rating
(169)
Projects
180
46%
Arbitration
3
33% / 33%
Overdue
1
1%
Working
5
Developer 5
Rating
(19)
Projects
23
48%
Arbitration
10
0% / 100%
Overdue
2
9%
Free
6
Developer 6
Rating
(31)
Projects
38
53%
Arbitration
2
50% / 50%
Overdue
3
8%
Free
7
Developer 7
Rating
(162)
Projects
289
35%
Arbitration
18
22% / 61%
Overdue
43
15%
Free
8
Developer 8
Rating
(2)
Projects
0
0%
Arbitration
5
0% / 60%
Overdue
0
Free
9
Developer 9
Rating
(5)
Projects
4
25%
Arbitration
1
0% / 100%
Overdue
0
Free
10
Developer 10
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
11
Developer 11
Rating
(3)
Projects
4
25%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(25)
Projects
31
13%
Arbitration
13
0% / 77%
Overdue
9
29%
Free
13
Developer 13
Rating
(7)
Projects
6
0%
Arbitration
4
25% / 75%
Overdue
2
33%
Free
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
(4)
Projects
5
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
17
Developer 17
Rating
(13)
Projects
22
41%
Arbitration
8
0% / 50%
Overdue
3
14%
Free
18
Developer 18
Rating
(318)
Projects
565
35%
Arbitration
81
31% / 44%
Overdue
204
36%
Free
19
Developer 19
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
20
Developer 20
Rating
(510)
Projects
977
74%
Arbitration
27
19% / 67%
Overdue
100
10%
Free
Published: 1 article, 6 codes
21
Developer 21
Rating
(3)
Projects
1
100%
Arbitration
3
0% / 100%
Overdue
0
Free
22
Developer 22
Rating
(30)
Projects
38
29%
Arbitration
1
0% / 100%
Overdue
2
5%
Working
Similar orders
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
Hi I want a trade copier for my ninja Trader 1. It should support at least 50 followers accounts. 2. Each follower should have its own configurable quantity/risk. 3. Copier should replicate entries, stops, and take profit, order medications, and order cancellations, ect. 4. It should copy both manual and strategy trades. (As long as the follower accounts are selected to follow, it should do the exact same as the

Project information

Budget
30 - 50 USD