Lesson 10 - Your First Indicator (Part1)

 
Files:
 

Example update!

Hi folks,

Please download the updated version of the example indicator.

 

hola

este es un mensaje de prueba

 

Hi, I am interested in learning mql4. I make my own and others, but I have read very little about programming.

I have a function that allows me to open an order as opposed to an open hand but do not know how to start. I was reading about the ticket which is what might link the two orders, but I get an error.

-if-variable espected- if someone can help me thanks in advance.

hola, estoy interesado en aprender mql4. quiero hacer mi propio ea, pero llevo muy poco leyendo sobre programacion.

quiero hacer una funcion que me permita abrir una orden opuesta a una abierta manualmente pero no se como empezar. estuve leyendo sobre el ticket que es lo que podria relacionar las dos ordenes, pero me da un error.

- if-variable espected- si alguien me puede ayudar de antemano gracias.

int start()

{

int ticket,

//+------------------------------------------------------------------+

if(OrderSelect(ticket,SELECT_BY_TICKET))

{Alert ("EL NUMERO DEL TICKET ES="=ticket; //|mensaje con el ticket

}

//+------------------------------------------------------------------+

Alert (GetLastError());

//+------------------------------------------------------------------+

return ()

}

 

Thanks

Tnx a lot for your all Lesson

Reason: