Download MetaTrader 5
To add comments, please log in or register
MQL5 Cloud Network is a distributed computing network. Just give it a try!
GicaEric
4
GicaEric 2011.11.09 14:09 

Hi guys how are you. I'm wondering if someone could help me out to finish this simple OCO EA.

Basically I want to cancel other trades based on their TICKETS. So basically we have two limit orders. Once one of them triggers, the other must cancel.

ex:

extern int Ticket_1;

extern int Ticket_2;


Now, if Ticket_1 triggered

Delete Ticket_2.

or

if Ticket_2 triggeres

Delete Ticket_1


Just so you know, I want the tickets to be entered manually.


Thank you for your help.

/
To add comments, please log in or register