Create an EA to close half of trade when profit hits specific amount per lot

MQL4 专家 脚本

工作已完成

执行时间2 天
客户反馈
Great to work with, recommended

指定

Hi, 

So I want it to automatically close a trade (Partially) if the profit per lot hits a specific number.


Like if I have a trade open with 0.06 lots if profit hits $5 per 0.01 lot (total $30) then close half trade (AUTOMATCALLY for any open trade)

so An order should automatically close at Given TP or partially close when it hits $5 per 0.01 lot in profit (whichever comes first).


I want it to have 2 levels, first level will close xx% of of trade when it it hits $yy per 0.01 lots and second level will close the rest EXCEPT the last 0.01 lot at a specific $zz per 0.01 lot. (after the second level is Triggered the order should have only 0.01 lot left open). 


xx, yy, zz are variables I should be able to set ( xx - percentage of order closure in step one, yy, zz - profit per 0.01 lot in both steps)


There should be an option to only enable step 1 or only step 2 or both. (I should be able to use only 1 rule or both rules). 

This should apply to all orders opened in the trading account. 

Also I use another EA to copy signals (open , close or edit trades) from telegram, but I don't think this should be a problem as you can run more than 1 EA in one account right?


Thanks, let me know if you have any questions. 


-Syed 




反馈

1
开发者 1
等级
(137)
项目
167
35%
仲裁
11
91% / 0%
逾期
0
空闲
2
开发者 2
等级
(23)
项目
45
20%
仲裁
25
28% / 48%
逾期
12
27%
空闲
3
开发者 3
等级
(45)
项目
59
14%
仲裁
31
26% / 52%
逾期
34
58%
空闲
4
开发者 4
等级
(313)
项目
559
35%
仲裁
80
31% / 44%
逾期
203
36%
空闲
5
开发者 5
等级
(192)
项目
248
20%
仲裁
22
50% / 18%
逾期
0
工作中

项目信息

预算
35+ USD