Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
Hello developer,
i have an EA in place which needs a trailing stop, with two settings:
Trailing Start: When the EA should start to trail
Trailing Step: How many points the trailing distance should be.
Attention: The EA has a kind of martingale function, trailing stops must handle it, means, if there are buy/sell orders open same time, trailing must be done to all.
And the EA needs expansion of the exisitng money management. It has already a risk calculating of lot size in percent, i need in absolue amount too (e.g. 100€). Also i need a take profit in percent of balance and in absolute amount of money. What does that mean? The may have several trades in a chain (martingale), it opens trades and opposite trades. Maybe there is just the last trade of such a chain open or all trades of the chain are open. Take Profit absolut money, means, the result of all those trades must be that.
e.g.: First Trade closed -10€, second -20€, thrid -40€ the fourth must gain 80€ if the setting is 10€
If all trades are open and not in stop loss the sum of all open trades must be +10€ and close all trades.
I have seen such function in some "Hedge" EA´s, so its not impossible to implement
So, if you made such things in past, you are the perfect developer, all others please keep your hand off.
best
Artnaf