Not quite. Unless I have misunderstood how to use your code.
I am working on an indicator that requires inside bars (or multiple inside bars) to be ignored completely. The problem comes when a bar down comes after an inside bar but itself is an inside bar to a previous larger bar.
I am looking to find a low bar relative to the previous bar that is not an inside bar. I thought if I removed all inside bars from the calculations then the (Low<Low[1]) and (High< High[1]) would work correctly based on the remaining bars.
Pic attached