EA - CIERRE VELA - POSITIVO

MQL4 Experts

Specification

Estoy interesado en crear un EA que abre una operación de compra al inicio de una vela.


El EA tiene el siguiente funcionamiento.

VARIABLES:
- NÚMERO MÁGICO
- LOTE INICIAL: 0.01,0.02, 0.03...(VARIABLE A ELEGIR) 
- FUNCIONAMIENTO: SÓLO COMPRAS   
- SÓLO UNA COMPRA POR VELA
- SÓLO UNA COMPRA, HASTA QUE SE HAYA TERMINADO EL CICLO, CIERRE DE LA VELA EN POSITIVO.


- CIERRE: CUANDO EL PRECIO DE CIERRE DE LA VELA > PRECIO DE APERTURA DE LA VELA


 
---------------------------------------------------------

FUNCIONAMIENTO APERTURA:

EJEMPLO:

TIME FRAME: (H1), (H4), (D1)

LOTE: 0,01


1.- SE ABRE UNA OPERACIÓN (COMPRA) AL INICIO DE VELA.


2.- CIERRE: SE CIERRA LA OPERACIÓN ABIERTA (COMPRA), CUANDO EL PRECIO DE CIERRE DE LA VELA (INCLUYE SWAP + COMISIÓN) > PRECIO DE APERTURA DE LA VELA.

Y SE ABRE UNA NUEVA COMPRA AL INICIO DE DICHA VELA. 


--------------------

NOTA IMPORTANTE:

SI SE INSTALA EL EA Y LA VELA YA ESTA INICIADA, SE ESPERA AL INICIO DE LA SIGUIENTE VELA.

O SE REINICIA EL MT4, SIEMPRE SE ESPERA AL INICIO DE LA SIGUIENTE VELA PARA ABRIR OPERACIONES NUEVAS.

ES DECIR, UNA OPERACIÓN POR VELA INICIADA.

---- 

MEJORAS
1.- colocar una etiqueta de profit por operación. La ubicación del texto es de abajo, a la derecha de 
la pantalla.

Responded

1
Developer 1
Rating
(410)
Projects
651
33%
Arbitration
31
74% / 6%
Overdue
20
3%
Working
2
Developer 2
Rating
(144)
Projects
219
32%
Arbitration
16
44% / 25%
Overdue
0
Free
3
Developer 3
Rating
(204)
Projects
305
34%
Arbitration
56
38% / 38%
Overdue
99
32%
Free
4
Developer 4
Rating
(572)
Projects
943
47%
Arbitration
303
59% / 25%
Overdue
125
13%
Free
5
Developer 5
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
Published: 2 codes
6
Developer 6
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
(180)
Projects
307
24%
Arbitration
20
35% / 5%
Overdue
23
7%
Working
Published: 3 codes
8
Developer 8
Rating
(284)
Projects
459
39%
Arbitration
95
43% / 18%
Overdue
73
16%
Loaded
Published: 2 codes
9
Developer 9
Rating
(61)
Projects
90
17%
Arbitration
3
0% / 0%
Overdue
2
2%
Free
10
Developer 10
Rating
(139)
Projects
180
42%
Arbitration
23
61% / 17%
Overdue
10
6%
Loaded
11
Developer 11
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Working
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
(4)
Projects
7
14%
Arbitration
0
Overdue
1
14%
Working
14
Developer 14
Rating
Projects
1
0%
Arbitration
0
Overdue
0
Free

Project information

Budget
30+ USD
VAT (21%): 6.3 USD
Total: 36 USD
For the developer
27 USD
Deadline
from 1 to 10 day(s)

Customer

(12)
Placed orders19
Arbitrage count0