Modifications of existing script in MQL4

MQL4 Experts Scripts

Specification

I need to create Time Takeprofit for my existing script. The TP should to test certain time closing of trades. There should be a function True/False fot this TP.

Example:

TP format - dd:hh:mm

When is a set 00:01:00, the trade should be closed at 1 hour after opening of each trade.


Next I need to create functions True/False for TP, SL and TP-Candlesticks. 

In the script is possible to set TP and SL for each position Long/Short separately. The TP and SL is a set in points. For each position Long and Short is also possible to set, when the trade should be closed, if the TP or SL is not reached. It means that there is possible to set number of candlesticks, when the trade should be closed. 

Example:

TP candlesticks - 3

When is a set number 3, so it means that trade is closed after three candlesticks, if the TP or SL is not reached during the three candlesticks.


Example of required setting of True/False functions, for the TP and SL:

TP Long - True/False
SL Long - True/False
TP-Candlesticks Long - True/False

TP Short - True/False
SL Short - True/False
TP-Candlesticks Short - True/False


You can to preview setting of the script with description on the screen.

Files:

PNG
screen.png
102.2 Kb
PNG
screen1.png
27.2 Kb

Responded

1
Developer 1
Rating
(6)
Projects
8
25%
Arbitration
2
50% / 0%
Overdue
2
25%
Free
2
Developer 2
Rating
(248)
Projects
254
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
3
Developer 3
Rating
(428)
Projects
623
54%
Arbitration
29
55% / 24%
Overdue
6
1%
Loaded
4
Developer 4
Rating
(58)
Projects
78
59%
Arbitration
13
38% / 54%
Overdue
9
12%
Free
5
Developer 5
Rating
(139)
Projects
181
24%
Arbitration
23
22% / 39%
Overdue
13
7%
Free
6
Developer 6
Rating
(48)
Projects
49
8%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
(37)
Projects
59
27%
Arbitration
26
19% / 54%
Overdue
10
17%
Working
Published: 1 code
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 9 codes
9
Developer 9
Rating
(171)
Projects
195
42%
Arbitration
13
8% / 54%
Overdue
9
5%
Free
Published: 3 codes

Project information

Budget
30+ USD