is there an easy way to check if a specific order is opened?

To add comments, please log in or register
crashtestdummy
66
crashtestdummy  

hi

i have an ea that opens multiple trades (ticket_111, ticket_121, ticket_131,...), but the problem is that each ticket is opened multiple times, so i need a method to control the number of trades opened.

an "if" statement would be the best. something like:

if(ticket_111==0)
{
 *open trade ticket_111*
}
crashtestdummy
66
crashtestdummy  
in case its unclear, the if statement should mean: if ticket_111 is not opened
To add comments, please log in or register