Yes, it is important where Once per bar is. I think it is also very logical that when this block is somewhere on the top, everything below it would run only 1 time per bar - on the 1st tick of every new bar. At that time the bar looks like a dot, because O, H, L and C are the same. And after that time the bar will change its appearance on every tick until it closes, but nothing will happen below Once per bar, because it already passed for that bar.
If Once per bar is below the condition, then you can got a signal in the middle of the bar.