OrderModify Question

 
I have the fallowing code:

int total = OrdersTotal();
for (int i = 0; i < total; i++)
{
OrderSelect(i, SELECT_BY_POS);
if (OrderClosePrice() <= OrderStopLoss() + 0.0005)
{
OrderModify( OrderTicket(), NULL, Ask - 40 * Point, OrderTakeProfit(), 0, Aqua);

}
}

What were doing here is modifying the stop loss if the close price of a particular order falls to 5 pips above the stop loss. My Question is what if the close price of this order falls beyond the stop loss level completely, thereby closing the order; will this code still be executed?

Basically what I'm doing is modifying the stop loss level so that the order doesn't close if the price falls, so that were still in the trade.
 
download our latest version of 167-th build and learn latest version of MACD Sample
Reason: