Simple Hedge EA for buy and sell operations with values i want needed.

MQL4 Experts Scripts

Specification

Hello Dear Community of MQL5,


I would like to create an EA that opens and closes positions depending on the current trend with the manuel pip values we can enter. I will explain the work-flow down so please bear with me.

1. EA has detected the trend ( let's say it is going up ) and made a buy with the lot and pip values that i entered.

1.1. if up trend continues it will close the position and sell at the value that i enter manually

1.2. if the trend goes the other way around, the EA should do the opposite operation ( which is a sell in this current situation ) with the value of lot*2 at the pip value i want.

1.3. if the trend goes the other way around again, EA should keep doing the opposite operation with the one before, with the value of the same lot*2 ( it is same value with 1.2. ) 

2. after this point it goes into a loop until it catches the pip profit which i have entered beforehand.

Also I would like to have a manuel number of positions that i enter. I dont want it to start too many positions in the same, to test it out i would like to start with 1 position series.


Looking forward for your answers

Best wishes,

Behnan OR.

Responded

1
Developer 1
Rating
(456)
Projects
794
49%
Arbitration
71
17% / 54%
Overdue
139
18%
Working
2
Developer 2
Rating
(34)
Projects
60
23%
Arbitration
11
73% / 9%
Overdue
3
5%
Free
3
Developer 3
Rating
(450)
Projects
477
69%
Arbitration
6
67% / 0%
Overdue
2
0%
Free
4
Developer 4
Rating
(11)
Projects
18
28%
Arbitration
4
50% / 50%
Overdue
1
6%
Free
5
Developer 5
Rating
(39)
Projects
50
18%
Arbitration
6
33% / 50%
Overdue
0
Free
6
Developer 6
Rating
(3)
Projects
1
0%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
(153)
Projects
236
33%
Arbitration
20
45% / 30%
Overdue
1
0%
Working
8
Developer 8
Rating
(77)
Projects
243
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article
9
Developer 9
Rating
(116)
Projects
137
36%
Arbitration
16
13% / 69%
Overdue
9
7%
Free
10
Developer 10
Rating
(618)
Projects
1428
59%
Arbitration
31
81% / 0%
Overdue
10
1%
Free
11
Developer 11
Rating
(16)
Projects
20
0%
Arbitration
10
0% / 80%
Overdue
6
30%
Free
12
Developer 12
Rating
(278)
Projects
340
37%
Arbitration
6
50% / 17%
Overdue
7
2%
Free
Published: 5 codes
13
Developer 13
Rating
(3)
Projects
3
0%
Arbitration
0
Overdue
1
33%
Free
14
Developer 14
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free

Project information

Budget
30 - 50 USD
Deadline
to 3 day(s)