My first suggestion is to look at that Buy-Sell-Buy-Sell example in the examples, because this one shows that flip-flopping. Condition blocks will have something else in them, and I think that you also need to use "Once per bar" somewhere, to prevent something from happening 2 times in the came candle.
Or, maybe this block "Skip ticks". You are saying "stop the blocks from acting..." and this block does exactly that.