MT4 EA/Script to automatically close positions based on size

MQL5 Experts Scripts

Job finished

Execution time 1 day
Feedback from customer
Very Very Happy with Arkadii Zagorulko - quick turn around and EA worked perfectly 1st time.
Feedback from employee
Thank you very much for job!

Specification

Looking for an MT4 EA / Script to do the following;

when a trade is executed above a user definable size it will then close all open positions of that pair that are below a user definable size.

eg:

EA is set to close positions below 0.05 when a new position of over 0.06 is opened

there are 6 X open sell positions on USDJPY at 0.04

a new position is opened at 0.7 

the EA will close the 6 X positions that are 0.04


inputs:

max size of positions to be closed

min size of the position to trigger close

magic number of positions to be closed

magic number of trigger position to trigger close

Responded

1
Developer 1
Rating
(620)
Projects
680
57%
Arbitration
25
16% / 60%
Overdue
228
34%
Free
2
Developer 2
Rating
(885)
Projects
1410
67%
Arbitration
123
32% / 41%
Overdue
218
15%
Free
Published: 1 code
3
Developer 3
Rating
(392)
Projects
545
40%
Arbitration
30
57% / 3%
Overdue
57
10%
Working
Published: 11 codes
4
Developer 4
Rating
(251)
Projects
400
54%
Arbitration
9
67% / 22%
Overdue
36
9%
Free
Published: 2 codes
5
Developer 5
Rating
(89)
Projects
137
24%
Arbitration
35
9% / 40%
Overdue
52
38%
Free
6
Developer 6
Rating
(53)
Projects
79
18%
Arbitration
13
15% / 54%
Overdue
5
6%
Free
7
Developer 7
Rating
(1121)
Projects
1808
61%
Arbitration
14
64% / 7%
Overdue
84
5%
Free
8
Developer 8
Rating
(590)
Projects
789
71%
Arbitration
9
33% / 33%
Overdue
22
3%
Free
Published: 8 codes
9
Developer 9
Rating
(298)
Projects
427
26%
Arbitration
18
61% / 33%
Overdue
26
6%
Free
Published: 8 codes
10
Developer 10
Rating
(66)
Projects
95
28%
Arbitration
20
25% / 55%
Overdue
24
25%
Free
11
Developer 11
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
1
50%
Free
12
Developer 12
Rating
(119)
Projects
127
41%
Arbitration
3
33% / 67%
Overdue
0
Free
13
Developer 13
Rating
(588)
Projects
1062
50%
Arbitration
39
28% / 41%
Overdue
49
5%
Working
Published: 1 article, 8 codes

Project information

Budget
30 - 40 USD
Deadline
from 1 to 5 day(s)