I am stumped. I would like for an EA I'm writing to check to see if a trade has closed or not, and if the trade has closed, to set "ticket" to 0. I'm using the following code, but it doesn't seem to work.
if (OrderSelect(ticket,SELECT_BY_TICKET)==false)
{
ticket=0;
}
Any ideas?
if (OrderSelect(ticket,SELECT_BY_TICKET)==false)
{
ticket=0;
}
Any ideas?