Create a Function to close positions in Profit

MQL5 Experts Scripts

Job finished

Execution time 44 seconds
Feedback from customer
Good Communication and really quick turnaround, happy with the output. Thank you.
Feedback from employee
Excellent customer! Thank you!

Specification

I require a function to add into my EA that will calculate the following:

  • Calculate all Open Buy Positions Breakeven Level and a TP level based on Pips or Percent
  • Calculate all Open Sell Positions Breakeven Level and a TP level based on Pips or Percent

Once relevent series (Buy or Sell) hits the TP Line all positions in that series to close;



Responded

1
Developer 1
Rating
(258)
Projects
264
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
2
Developer 2
Rating
(58)
Projects
66
8%
Arbitration
39
26% / 56%
Overdue
12
18%
Working
3
Developer 3
Rating
(64)
Projects
83
28%
Arbitration
9
33% / 56%
Overdue
9
11%
Free
Published: 1 code
4
Developer 4
Rating
(40)
Projects
58
22%
Arbitration
10
10% / 70%
Overdue
13
22%
Free
5
Developer 5
Rating
(7)
Projects
17
41%
Arbitration
3
0% / 100%
Overdue
3
18%
Free
6
Developer 6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
(361)
Projects
644
26%
Arbitration
92
72% / 14%
Overdue
12
2%
Working
Published: 1 code
8
Developer 8
Rating
(14)
Projects
14
50%
Arbitration
2
0% / 100%
Overdue
0
Free
9
Developer 9
Rating
(184)
Projects
317
24%
Arbitration
23
35% / 13%
Overdue
23
7%
Free
Published: 3 codes
10
Developer 10
Rating
(54)
Projects
53
17%
Arbitration
7
0% / 100%
Overdue
5
9%
Free
11
Developer 11
Rating
(2660)
Projects
3380
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
12
Developer 12
Rating
(772)
Projects
1039
44%
Arbitration
50
8% / 50%
Overdue
116
11%
Free
13
Developer 13
Rating
(298)
Projects
427
26%
Arbitration
18
61% / 33%
Overdue
26
6%
Free
Published: 8 codes

Project information

Budget
30 - 100 USD
Deadline
from 1 to 3 day(s)