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

MQL4 Asesores Expertos Sripts

Tarea técnica

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.

Han respondido

1
Desarrollador 1
Evaluación
(452)
Proyectos
788
48%
Arbitraje
70
17% / 53%
Caducado
139
18%
Trabaja
2
Desarrollador 2
Evaluación
(34)
Proyectos
60
23%
Arbitraje
11
73% / 9%
Caducado
3
5%
Libre
3
Desarrollador 3
Evaluación
(449)
Proyectos
475
69%
Arbitraje
6
67% / 0%
Caducado
2
0%
Trabaja
4
Desarrollador 4
Evaluación
(11)
Proyectos
18
28%
Arbitraje
4
50% / 50%
Caducado
1
6%
Libre
5
Desarrollador 5
Evaluación
(39)
Proyectos
50
18%
Arbitraje
6
33% / 50%
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(3)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(151)
Proyectos
232
32%
Arbitraje
18
39% / 33%
Caducado
1
0%
Trabaja
8
Desarrollador 8
Evaluación
(77)
Proyectos
241
73%
Arbitraje
7
100% / 0%
Caducado
1
0%
Libre
9
Desarrollador 9
Evaluación
(116)
Proyectos
137
36%
Arbitraje
16
13% / 69%
Caducado
9
7%
Libre
10
Desarrollador 10
Evaluación
(617)
Proyectos
1427
59%
Arbitraje
31
81% / 0%
Caducado
10
1%
Libre
11
Desarrollador 11
Evaluación
(16)
Proyectos
20
0%
Arbitraje
10
0% / 80%
Caducado
6
30%
Libre
12
Desarrollador 12
Evaluación
(278)
Proyectos
340
37%
Arbitraje
6
50% / 17%
Caducado
7
2%
Libre
Ha publicado: 5 ejemplos
13
Desarrollador 13
Evaluación
(3)
Proyectos
3
0%
Arbitraje
0
Caducado
1
33%
Libre
14
Desarrollador 14
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre

Información sobre el proyecto

Presupuesto
30 - 50 USD
Plazo límite de ejecución
a 3 día(s)