Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
Hi,
I have an ea which was based on MA crossover. But I need a money management tool for that EA. You can cancel the martingale logic of the previous EA. Modificated EA will use equity increase function.
Main logic of the money management tool will be; after equity drops to a level ea will increase lot size until reaching the previous highest equity level. There will be 4 equity drop levels. On the setting page for every level there should be selection of how many equity drop and lot size.
For example,
additionally to our ea setting page
Equity Drop level 1 : 100 $
Lot size for level 1: 0,20k
Equity Drop level 2: 200$
Lot size for level 2 : 0,30k
Equity Drop Level 3: 300$
Lot size for level 3: 0,50k
Equity Drop level 4 : 300$
Lot size for level 4: 0,80k
This means If our account equity drops like 100 $ ea will start to trade with 0,20 k until reaching the previous highest Equity. After recovery it means reaching the highest equity level in the past it will continue to trade with 0,10k standart lot size. If equity continues to drop more 200$ (Totally 300 $ from the beggining) ea will start to trade with 0,30k. Until reaching the highest equity in the past.
For example; our ea start to trade with 1000 $. After a while we reached to 1100$ and than it did some losing trades and equity drops back to 1000 $ at that time ea will start to trade with 0,20k until reaching 1100$ again. If it continues to drop like 9800 $ ( - 200 $ and totally -300 $ from the highest equity in the past). It will start to trade with 0,30k. And it will continue to use 0,30k until reaching 1100 $. After reaching that highest equity level again it will start from the beggining and EA will trade with 0,10K.
You can find the equity example diagram may be it can help you .
Main logic is we try to catch our last higest equity as soon as possible.