Function to Close all orders where Magic Number = 0

MQL4 Scripts Other

Job finished

Execution time 14 hours

Specification

I need the FOR/LOOP portion only  that will iterate through all  OPEN and PENDING (buy and sell) orders that automatically close any of these orders where the MagicNumber = 0.

I'll be integrating this into some other scripts that I already have so I only need this Loop functionality and nothing else.  You can build it as a Void function.


Pretty basic and simple.

thank you

Devon

Responded

1
Developer 1
Rating
(71)
Projects
156
44%
Arbitration
22
41% / 14%
Overdue
16
10%
Free
Published: 10 codes
2
Developer 2
Rating
(103)
Projects
205
41%
Arbitration
17
29% / 71%
Overdue
45
22%
Free
3
Developer 3
Rating
(106)
Projects
314
49%
Arbitration
42
52% / 19%
Overdue
22
7%
Free
4
Developer 4
Rating
(330)
Projects
540
66%
Arbitration
53
21% / 40%
Overdue
169
31%
Free
Published: 1 code
5
Developer 5
Rating
(225)
Projects
285
41%
Arbitration
15
13% / 47%
Overdue
67
24%
Free
6
Developer 6
Rating
(118)
Projects
217
49%
Arbitration
1
0% / 0%
Overdue
25
12%
Free
Published: 1 code

Project information

Budget
10 - 20 USD
Deadline
from 1 to 3 day(s)