I can see your projects. I can only say that the number of blocks matter when they are connected... without any order. When you want to run some block first and then another block, better connect them one after another. If such blocks are not connected one after another, then be aware of block numbers.
you was right to put into "on tick", and if it is slow, it is because on every tick runs all your blocks in "on tick" event, if you will speed up it in tester, you can try you conditions with candle ID[1 and >1] runs with block "once per bar" 😉
This is a looooong story and the answer is "It depends". It's true that EA bulders, at least mine, produces big and slow code. I mean... compared to what a professional programmer can do if he code the same strategy manually. What blocks to use and how to connect them matters of course, but I can't tell you which blocks to connect where. It depends. In general, put lightweight blocks on the top... if you know what they are, because most of the time even I don' know. And whenever possible, use less blocks. https://fxdreema.com/demo/mt4-events