명시
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
-
Platform: MetaTrader 5 (MT5).
-
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.
-
-
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)
-
-
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.
-
-
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
-
I place a manual Buy limit order at 2000.00.
-
EA sets TP and SL automatically (e.g., TP=30 pips, SL=100 pips).
-
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).
-
-
This process continues until max trades limit is reached. (10 trades Max)
-
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.