MT4 FUNCTION to Close Any Open Orders that Exceeds X% Loss or Y% Gain

MQL4 脚本

工作已完成

执行时间15 分钟
客户反馈
very fast! ty

指定

I'm looking for a simple function, similar in format to the attached image, that I can call to close any orders based on either a MaxLossPercent or MaxGainPercent , both variables will be user parameters.

For Example

extern double MaxLossPercent = 0.03;

extern double MaxGainPercent = 0.10;


Any open traders that equal or exceed either of these conditions will be closed by the script. Should include error checking and sleep()


These 2 values are calculated based on the *** current account value **  (i.e. 100 account * MaxLossPercent = $3.00 ) or 100 account * MaxGainPercent = $10.00 ).

If you bid, please specify your turn around time.



 

附加的文件:

反馈

2
开发者 2
等级
(885)
项目
1410
67%
仲裁
123
32% / 41%
逾期
218
15%
空闲
发布者: 1 代码

项目信息

预算
30+ USD
截止日期
 1  2 天