HELP on Simple OCO EA

 

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.

Reason: