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
(320)
Projects
523
66%
Arbitration
52
21% / 38%
Overdue
167
32%
Working

Project information

Budget
10 USD
For the developer
9 - 9 USD
Deadline
1 day(s)