
The EA closes a long-range order and all profitable orders if its loss is covered by profitable orders plus CloseProfit in the deposit currency.
A long-distance order is determined by the distance from the current price to the order.
Example:
We have 20 open positions, 3 of them in profit and 17 in ...