http://prntscr.com/brpb6d - this should be only used under "on Trade".
I think you need to understand this concept, because the way you connected this condition does not look right: https://fxdreema.com/demo/mt4-wrong-closing-rule
I would try to do everything under "on Tick" and only if needed I would use "on Trade" for something. Because "on Tick" is more... reliable, let's say. So, under "on Tick" you can for example detect if there are no trades at all at any moment, which could be the moment to create new orders. You can also check the exact amount of trades, orders or both. There are also blocks like "Close trades" and "Delete pending orders"