Is this the right way to refuse a requote?

 

I want to refuse requotes which are below my exit criteria and reattempt to close the order. Is this the right way to accomplish this?

{
while(Order == false)
{RefreshRates();

Order = OrderClose(OrderTicket(),Lot,Ask,2);

if (GetLastError()==138 && Ask < OrderClosePrice() || Ask < OrderOpenPrice())
{Order = false; return;}
else{continue;}

}

Thanks!

 
Nope. I don't see any OrderSelect() call in there. CB