Hi Guys, I'm new in mt4 code, i have the issue on the loop. I'm using MODE_HISTORY on the OrderSelect() to find the close order. My EA will run 2 order at 1 time. each time the order is closed. It will check the condition of the closed order and open the new order. Sometime, the EA will have 2 closed order at 1 time.
When 2 order close at 1 time, the code will check the last closed order only, how to make it check 2 or more order closed at the same time. Thanks.
My EA will run 2 order at 1 time
Declare different Magic Number on each order.