Simple script of stop loss trail depending on MA

MQL4 Scripts

Job finished

Execution time 1 day

Specification

Hi, I need a stop loss trail script.

When I do a buy order, if both of open price and close price of the first candle under MA, for example, MA100, then close the order; When I do a sell order, if both of open price and close price of the first candle above MA100, then close the order.



Ps: the property of MA can be input and changeable, it can be 100 or any other number.






Files:

PNG
exaple_2.png
14.6 Kb

Responded

1
Developer 1
Rating
(885)
Projects
1410
67%
Arbitration
123
32% / 41%
Overdue
218
15%
Free
Published: 1 code
2
Developer 2
Rating
(624)
Projects
981
47%
Arbitration
32
38% / 34%
Overdue
96
10%
Working
Published: 6 codes
3
Developer 3
Rating
(2296)
Projects
2891
63%
Arbitration
122
44% / 25%
Overdue
429
15%
Working
4
Developer 4
Rating
(452)
Projects
565
26%
Arbitration
24
42% / 38%
Overdue
85
15%
Free
Published: 6 codes
5
Developer 5
Rating
(618)
Projects
1428
59%
Arbitration
31
81% / 0%
Overdue
10
1%
Free
6
Developer 6
Rating
(2630)
Projects
3345
67%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
7
Developer 7
Rating
(257)
Projects
341
58%
Arbitration
7
14% / 71%
Overdue
9
3%
Free
8
Developer 8
Rating
(7)
Projects
25
44%
Arbitration
4
25% / 50%
Overdue
18
72%
Free
Published: 2 articles
9
Developer 9
Rating
(339)
Projects
809
73%
Arbitration
30
33% / 37%
Overdue
194
24%
Free
10
Developer 10
Rating
(10)
Projects
17
53%
Arbitration
11
27% / 55%
Overdue
4
24%
Free

Project information

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