Script for close order automatically

2020.08.01 Scripts

Job finished

Execution time 2 days

Specification

I trade multiple pairs with a automated signal provided from another platform.


Existing method: when mt4/mt5 receives the buy or sell signal it will execute the order automatically. But it doesn't close the previously running position in the same pair.


Requirement:

Script should work @ each order is executed(buy/sell).

Only one trade will be there per symbol at any point of time. if mt4/mt5 receives a signal it will execute the orders. Now script will check for more than one order in any symbol. If there is more than one order in a symbol the script should close the older order.

For example: if mt4/mt5 receives a sell signal it will be executed automatically. now the script should check for the more than one order condition in that symbol if there is more than one trade (Sell executed now and a buy is running already and its a older order) the script should close older orders and the latest should be active and running.


NOTE: need this script in both mt4 and mt5

Responded

1
Developer 1
2020.08.01
Rating
4.99
(81)
Projects
90
20%
Arbitration
0
Overdue
10
11%
Free
2
Developer 2
2020.08.01
Rating
5
(3)
Projects
3
0%
Arbitration
0
Overdue
0
Working
3
Developer 3
2020.08.01
Rating
4.93
(14)
Projects
22
50%
Arbitration
0
Overdue
1
5%
Free
4
Developer 4
2020.08.01
Rating
4.96
(396)
Projects
550
52%
Arbitration
43
19% / 53%
Overdue
216
39%
Busy
5
Developer 5
2020.08.01
Rating
4.94
(322)
Projects
420
49%
Arbitration
36
17% / 53%
Overdue
171
41%
Loaded
6
Developer 6
2020.08.01
Rating
5
(1)
Projects
5
0%
Arbitration
2
50% / 0%
Overdue
1
20%
Working
7
Developer 7
2020.08.01
Rating
5
(4)
Projects
6
0%
Arbitration
1
0% / 0%
Overdue
1
17%
Working
8
Developer 8
2020.08.01
Rating
5
(9)
Projects
17
0%
Arbitration
2
0% / 50%
Overdue
3
18%
Working
9
Developer 9
2020.08.01
Rating
1
(1)
Projects
0
0%
Arbitration
2
0% / 0%
Overdue
0
Working
10
Developer 10
2020.08.01
Rating
5
(3)
Projects
2
0%
Arbitration
5
0% / 80%
Overdue
0
Free
11
Developer 11
2020.08.01
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
2020.08.01
Rating
5
(8)
Projects
14
0%
Arbitration
6
17% / 67%
Overdue
6
43%
Loaded
13
Developer 13
2020.08.01
Rating
4.3
(37)
Projects
120
28%
Arbitration
61
13% / 52%
Overdue
60
50%
Working
14
Developer 14
2020.08.02
Rating
4.97
(37)
Projects
46
52%
Arbitration
4
25% / 75%
Overdue
23
50%
Working
15
Developer 15
2020.08.02
Rating
4.92
(62)
Projects
140
46%
Arbitration
18
44% / 11%
Overdue
39
28%
Working

Project information

Budget
30 - 40 USD
For the developer
27 - 36 USD