Hello guys
I've my EA coded with RefreshRates according to following, but I have requote and also my EA stop sending new CloseOrder after 1 or 2 attempt. How to I write a code that will ask my EA to maintain sending CloseOrder before it approved by the broker host? Thank you

for (int I=0; I lt; RepeatN; I )

RefreshRates();
bool res = CloseOrder(OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_BID));
if (res) break;