Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
Hi,
I would like to have 3 modification made to my trade manager EA:
1. Drawdown: The EA now has a built-in function that stops it from opening new orders when the drawdown is higher than XXX %, I would like to change this to: Stop opening new orders when the drawdown based on current balance /current equity calculation is higher than XXX %. I would like this changed, because I reboot my server a few times a day and I believe this will fix the problem of "forgetting" the drawdown values after a reboot of the EA. If the EA stops orders because of the drawdown calculation -> print on screen: "EA is holds new orders, because drawdown is too high". If you know of another way to solve this, that's fine too.
And I would like the EA to print the current drawdown based on the balance / equity calculation on the screen: "current drawdown is now: XXX %"
2. Hedge orders: The EA now has a function to allow hedge orders to be opened and close the opposite orders, but there's a small issue with it and it's not working. I believe the problem is related to the built in function: "max allowed orders per pair". So when the "max allowed orders per pair" is now for example 2 and there are 2 EURUSD sell orders opened, I believe the EA will stop opening new orders for this pair, even it's a hedge / opposite order. This is not correct when it's a hedge / opposite order and the option "close opposite orders" is set to true. Because, the EA should close the opposite orders and take the new hedge order. And I would like to have the EA write a comment to the closed hedge order: "closed because of opposite hedge order"
3. Spread filter - Do not open specific order if spread is higher than average spread based on the spread of the last 2 weeks of that specific pair.
If the spread filter stops opening new orders because of the spread filter -> print on screen "PAIR XYZ is not opened because of the spread filter"
+ user input for spread filter: Use spread filter: true / false
Thanks for reading