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

MQL5 Libraries

Job finished

Execution time 21 minutes
Feedback from employee
Great Customer.

Specification

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


Responded

1
Developer 1
Rating
(103)
Projects
205
41%
Arbitration
17
29% / 71%
Overdue
45
22%
Free
2
Developer 2
Rating
(329)
Projects
539
66%
Arbitration
53
21% / 40%
Overdue
169
31%
Working
Published: 1 code

Project information

Budget
10 USD
Deadline
1 day(s)