Termos de Referência
Hi
I need a MetaTrader 5 Expert Advisor for XAUUSD that creates a laddered buy setup and manages take-profit automatically depending on how many entries are triggered.
The EA will act as a trade execution and management tool, not a strategy robot.
Core Function
The EA should include a BUY/SELL SETUP button that creates a ladder of orders.
E.g. When pressed:
-
Open Entry 1 – Market Buy
-
Place Entry 2 – Buy Limit below Entry 1
-
Place Entry 3 – Buy Limit below Entry 2
-
Place Entry 4 – Buy Limit below Entry 3
Distances should be editable inputs.
Example default values:
-
Entry 2 = Entry 1 − 1.5(Xauusd)
-
Entry 3 = Entry 1 − 3.5
-
Entry 4 = Entry 1 − 5.0
All trades should share a common stop loss (input value).
Example default:
SL = Entry 1 − 6.0
Dynamic Take Profit Logic (Optional but preferable)
Take profit must automatically adjust depending on how many entries are filled.
Required behaviour:
1 entry filled
TP = Entry 1 + 2.0
2 entries filled
TP for both = Entry 1 + 2.0
3 entries filled
TP for all = Entry 1 + 1.0
4 entries filled
TP for all = Entry 2 price
Whenever a new pending order becomes an active position, the EA should recalculate and update TP for all open trades.
Additional Requirements
The EA should also include:
-
Button “Close All + Delete Pending Orders”
-
If all trades close manually, by TP, or by SL → remaining pending orders must be deleted automatically
-
Use magic numbers so only EA trades are managed
-
Should work on hedging accounts
-
Inputs for:
-
lot size per entry
-
entry distances
-
SL distance
-
TP parameters
-
-
Simple on-chart interface is sufficient (no complex UI required)
Please provide:
-
MQ5 source file
-
EX5 compiled file
-
Installation instructions
-
Explanation of inputs
Developer Requirements
Please apply only if you have experience with:
-
MT5 Expert Advisors
-
pending order management
-
basket TP logic
If possible, please share examples of previous MT5 EAs you have built.
Thanks
Bally