Using Value when only for next bar

Hiii,
I want to test an idea where the high of inside bar is crossed. Now this formula gives me values whenever it happens. However i want to only test condition where this condition happens immediately in next bar. Is there a way for that.

v1=(HIGH(OFFSET=1) >= HIGH()) and (LOW(OFFSET=1) <= LOW()); v2=VALUEWHEN(high(),v1); v3=CLOSE() CrossesAbove v2; v3

Regards,
Deepak

Hi Deepak,

See if this will help you find the ones that you want.

c1 = BARTYPES().Inside; 
H1 = HIGH(); 
c2 = H1 CrossesAbove H1[1];
 
c1[1] and c2

All the best

Mathew

Yes Sir. Thanks