OrderClose

 
Does anyone have the code that loops and attempts to close an order n times in the event that it runs into an error?

Thank you in advance,

T
 

bool result = false;

int count = n;

while(result == false && count > 0){

count--;

result = CloseOrder(...);

}

 
Thanks, a lot easier then I thought.

T
Reason: