Use "Close Trades" instead of this "close" block. Also, in those blue blocks there are few filters, so you can make them work only for Buys or only for Sells. Now the problem is most probably that a trade is created and then immediately closed.