Then I misunderstood your screenshot, sorry. Here you have some hints.
Substitute both 'for each trade' blocks by 'pass' blocks instead. You are connecting a loop block to another loop block.
Use a 'once per bar' block just above both 'buy/sell now' blocks. Not on top of the block tree.
That should stop opening many trades