Max spread script to disable/ enable trading

MQL4 Scripts

Job finished

Execution time 1 hour
Feedback from employee
Thank you for your order! Great customer! Hope for further cooperation!
Feedback from customer
Very happy with this developer. They worked very quickly and the product worked first time. All good.

Specification

I have old robots I want to use, but they do not have a max spread filter. So I need a script to disable auto trading when the spread goes past the max spread setting. Then re-enable auto trading when the spread goes back below the max setting. Is this possible? 

Responded

1
Developer 1
Rating
(28)
Projects
36
31%
Arbitration
1
100% / 0%
Overdue
7
19%
Loaded
2
Developer 2
Rating
(248)
Projects
310
28%
Arbitration
33
27% / 64%
Overdue
10
3%
Working
3
Developer 3
Rating
(103)
Projects
163
23%
Arbitration
23
9% / 78%
Overdue
16
10%
Working
4
Developer 4
Rating
(75)
Projects
80
6%
Arbitration
46
11% / 54%
Overdue
7
9%
Working
5
Developer 5
Rating
(278)
Projects
340
37%
Arbitration
6
50% / 17%
Overdue
7
2%
Free
Published: 5 codes
6
Developer 6
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
7
Developer 7
Rating
(542)
Projects
624
33%
Arbitration
39
36% / 49%
Overdue
11
2%
Busy
8
Developer 8
Rating
(19)
Projects
27
26%
Arbitration
2
0% / 100%
Overdue
2
7%
Free
9
Developer 9
Rating
(51)
Projects
69
35%
Arbitration
4
25% / 75%
Overdue
0
Free
10
Developer 10
Rating
(273)
Projects
396
63%
Arbitration
70
53% / 26%
Overdue
198
50%
Free
11
Developer 11
Rating
(1)
Projects
1
100%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(59)
Projects
81
43%
Arbitration
27
11% / 70%
Overdue
8
10%
Free

Project information

Budget
30+ USD