Adjustable Trailing Stop and Multiple Buy/Sell Stops

MQL4 Scripts Translation

Specification

I need an adjustable trailing stop loss that will be applied to my open orders and if stop loss is hit will close pending buy/sell stops for the currency pair being traded. I also need it to automatically place pending buy/sell stop orders with predetermined SL and PT. 

Example:

I manually enter a Long Position on the EurUSd at 1.2050 with a lot size of 1.00 and a stop loss of 10 pips and take profit 30 pips

I want 2 buy stops to automatically be placed : 1) Eur/usd Buy Stop 10 pips above first entry (1.2060), 1.00 lot size, stop loss 10 pips, take profit 20 pips

2) Eur/usd Buy Stop 20 pips above first entry (1.2070), 2.00 lot size, stop loss 10 pips, take profit 10 pips


If stop loss is hit on any open order(s), please have it automatically close all pending positions. 


When the first buy stop (1.2060) is opened/executed i need my first manual trade (1.2050) Stop loss set to break even (1.2050)

When the second buy stop (1.2070) is opened/executed i need my first buy stop (1.2060) at break even and my first manual entry Stop Loss at +10 (1.2060). 


Here's another example on a power point 

https://docs.google.com/presentation/d/1wVYmpzmMEoWQSvOVnmWPbpgvQz-iFulpPuUGZ0lpmHA/edit?usp=sharing

Responded

1
Developer 1
Rating
(188)
Projects
212
58%
Arbitration
9
11% / 89%
Overdue
8
4%
Free
2
Developer 2
Rating
(52)
Projects
133
44%
Arbitration
14
50% / 29%
Overdue
55
41%
Free
3
Developer 3
Rating
(33)
Projects
35
40%
Arbitration
11
9% / 91%
Overdue
4
11%
Free
4
Developer 4
Rating
(119)
Projects
127
41%
Arbitration
3
33% / 67%
Overdue
0
Free
5
Developer 5
Rating
(356)
Projects
632
26%
Arbitration
89
73% / 13%
Overdue
12
2%
Free
6
Developer 6
Rating
(2440)
Projects
3075
66%
Arbitration
77
48% / 14%
Overdue
340
11%
Free
7
Developer 7
Rating
(15)
Projects
24
21%
Arbitration
1
0% / 100%
Overdue
7
29%
Free
8
Developer 8
Rating
(1858)
Projects
3461
88%
Arbitration
73
40% / 15%
Overdue
265
8%
Free
9
Developer 9
Rating
(65)
Projects
87
39%
Arbitration
3
0% / 33%
Overdue
29
33%
Free
10
Developer 10
Rating
(68)
Projects
111
26%
Arbitration
17
6% / 71%
Overdue
15
14%
Free
11
Developer 11
Rating
(4)
Projects
6
0%
Arbitration
2
0% / 50%
Overdue
4
67%
Free
12
Developer 12
Rating
(16)
Projects
21
19%
Arbitration
7
0% / 71%
Overdue
14
67%
Free
13
Developer 13
Rating
(42)
Projects
70
43%
Arbitration
6
33% / 50%
Overdue
19
27%
Free
14
Developer 14
Rating
(258)
Projects
395
28%
Arbitration
69
19% / 49%
Overdue
120
30%
Free
15
Developer 15
Rating
(197)
Projects
320
35%
Arbitration
64
13% / 56%
Overdue
83
26%
Free
16
Developer 16
Rating
(554)
Projects
1340
59%
Arbitration
28
82% / 0%
Overdue
10
1%
Working
17
Developer 17
Rating
(90)
Projects
118
17%
Arbitration
44
23% / 39%
Overdue
20
17%
Free
18
Developer 18
Rating
(5)
Projects
5
20%
Arbitration
2
0% / 100%
Overdue
1
20%
Free
19
Developer 19
Rating
(33)
Projects
49
12%
Arbitration
16
0% / 88%
Overdue
10
20%
Free
20
Developer 20
Rating
(30)
Projects
93
49%
Arbitration
18
56% / 17%
Overdue
38
41%
Free
21
Developer 21
Rating
(221)
Projects
369
66%
Arbitration
10
50% / 0%
Overdue
46
12%
Free
22
Developer 22
Rating
(43)
Projects
72
49%
Arbitration
4
0% / 50%
Overdue
19
26%
Free
23
Developer 23
Rating
(45)
Projects
59
14%
Arbitration
31
26% / 52%
Overdue
35
59%
Free
24
Developer 24
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
25
Developer 25
Rating
(5)
Projects
4
25%
Arbitration
2
0% / 100%
Overdue
1
25%
Free
26
Developer 26
Rating
(1)
Projects
1
100%
Arbitration
0
Overdue
0
Free

Project information

Budget
50 - 100 USD
For the developer
45 - 90 USD
Deadline
from 1 to 10 day(s)