gi_360 = CountTrades();
if (gi_360 == 0) gi_324 = FALSE;
for (g_pos_356 = OrdersTotal() - 1; g_pos_356 >= 0; g_pos_356--) {
OrderSelect(g_pos_356, SELECT_BY_POS, MODE_TRADES);
if (((OrderSymbol() != Symbol()) )||(( OrderMagicNumber() != g_magic_240))) continue;
if ((OrderSymbol() == Symbol()) && (OrderMagicNumber() == g_magic_240)) {
if (OrderType() == OP_BUY) {
gi_376 = TRUE;
gi_380 = FALSE;
l_ord_lots_0 = OrderLots();
break;
}
EA บอก return value of "OrderSelect" should be checked