CloseAllTrades() OR CloseAllLongTrades() and CloseAllShortTrades() functions

MQL5 资料库

工作已完成

执行时间21 分钟
员工反馈
Great Customer.

指定

I am in the middle of building an EA and need some help.

My EA opens 1 to n trades in a single direction either all long, or all short.

there comes a time where my EA has to close all 1 to n trades and start over in the opposite direction.

This function should look for all open positions in "this currency pair" described by Symbol() and close them.

I need this in the next 24 hours.

Please help.

CipherPips


反馈

1
开发者 1
等级
(103)
项目
205
41%
仲裁
17
29% / 71%
逾期
45
22%
空闲
2
开发者 2
等级
(320)
项目
525
66%
仲裁
52
21% / 38%
逾期
169
32%
空闲

项目信息

预算
10 USD
开发人员
9 - 9 USD
截止日期
1 天