Function To Get Position of Stop Loss on Current Open Trade

MQL5 Other Design

Job finished

Execution time 2 days
Feedback from customer
Very happy with the work code provided. Thank you.
Feedback from employee
Excellent customer! Very thanks for order!

Specification

Hi,


I need someone to write a basic function for MQL5.

This function will return a 1 or a zero

The function will get the open price and the current price of the stop loss from the most recent active trade.

if ( trade is a buy trade and the current stop loss price is >= the open price) return 1 else return 0

if ( trade is a sell trade and the current stop loss price is <= the open price) return 1 else return 0

If interested in coding this function, please let me know.

Responded

1
Developer 1
Rating
(1134)
Projects
1436
62%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
2
Developer 2
Rating
(73)
Projects
85
44%
Arbitration
10
40% / 50%
Overdue
9
11%
Free
3
Developer 3
Rating
(225)
Projects
284
42%
Arbitration
15
13% / 47%
Overdue
67
24%
Free
4
Developer 4
Rating
(55)
Projects
74
45%
Arbitration
21
14% / 67%
Overdue
8
11%
Free
5
Developer 5
Rating
(2440)
Projects
3075
66%
Arbitration
77
48% / 14%
Overdue
340
11%
Free
6
Developer 6
Rating
(135)
Projects
163
40%
Arbitration
11
27% / 73%
Overdue
25
15%
Free
7
Developer 7
Rating
(440)
Projects
546
25%
Arbitration
21
38% / 38%
Overdue
83
15%
Working
8
Developer 8
Rating
(647)
Projects
1295
67%
Arbitration
84
26% / 49%
Overdue
338
26%
Free
9
Developer 9
Rating
(195)
Projects
395
28%
Arbitration
155
20% / 52%
Overdue
112
28%
Free
10
Developer 10
Rating
(564)
Projects
933
47%
Arbitration
302
59% / 25%
Overdue
125
13%
Loaded
11
Developer 11
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
12
Developer 12
Rating
(62)
Projects
140
46%
Arbitration
19
42% / 16%
Overdue
32
23%
Free
13
Developer 13
Rating
(260)
Projects
422
38%
Arbitration
86
44% / 19%
Overdue
70
17%
Busy

Project information

Budget
30 - 50 USD
VAT (23%): 6.9 - 11.5 USD
Total: 36.9 - 61.5 USD
For the developer
27 - 45 USD
Deadline
from 1 to 2 day(s)