...according to what you have shared, it seems like your EA is not symmetrical. Shouldn't it also have the same approach on having a sell branch linked to a buying pending order? I think that is what's making it work sometimes and stop working sometimes. Like your sell trades are wholly dependent on an initial buy trade, elseif the buy trade is not opened then nothing happens. Try to make it symmetrical to remove that buy-bias and see if it works as you want