Adding option in Script to BUY/SELL With layering and two TP's

MQL4 Scripts

Specification

I want the following to be possible as extra option


When selecting the option BUY/SELL with two TP'S I want that

1. The order is started within the range included layering with TP 1 and SL 

2. When TP 1reached, the order should change the SL to TP 1 and set TP 2 as TP

In this way i am not loosing any money

example to test 

XauUsd Sell Now @ 2775 - 2778


Sl:2780


Tp1 :2773

Tp2 :2770



Responded

1
Developer 1
Rating
(240)
Projects
301
28%
Arbitration
33
24% / 61%
Overdue
9
3%
Working
2
Developer 2
Rating
(442)
Projects
570
37%
Arbitration
106
39% / 33%
Overdue
17
3%
Free
3
Developer 3
Rating
(10)
Projects
6
33%
Arbitration
6
0% / 67%
Overdue
1
17%
Working
4
Developer 4
Rating
(15)
Projects
34
24%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
5
Developer 5
Rating
(539)
Projects
619
33%
Arbitration
36
36% / 53%
Overdue
11
2%
Busy
6
Developer 6
Rating
(511)
Projects
549
53%
Arbitration
13
69% / 15%
Overdue
3
1%
Free
7
Developer 7
Rating
(30)
Projects
38
29%
Arbitration
1
0% / 100%
Overdue
2
5%
Working
8
Developer 8
Rating
(2)
Projects
1
0%
Arbitration
2
0% / 100%
Overdue
0
Working
9
Developer 9
Rating
(69)
Projects
79
29%
Arbitration
8
13% / 63%
Overdue
4
5%
Free
10
Developer 10
Rating
(21)
Projects
28
36%
Arbitration
7
14% / 71%
Overdue
2
7%
Free
11
Developer 11
Rating
(45)
Projects
63
52%
Arbitration
5
0% / 40%
Overdue
1
2%
Free

Project information

Budget
30 - 200 USD
Deadline
from 1 to 10 day(s)