Show Bar View Problem

Hi, i create 2 script of show bar view on the same chart, but i got confuse about it.
Cause i find something missing (Big Red Arrow) or maybe my problem?
Please take a look of the script and chart.
Thank you.

The green arrow show today is 20 day new high :

CLOSE() > HIGHESTHIGH(close(),BARS=20, INSIDEBAR=True, INCBAR=False)

The red arrow show the pattern i want:

OFFSET(close, OFFSET=2) > OFFSET(Highesthigh(close(),BARS=20, INSIDEBAR=True, INCBAR=False),OFFSET=2)
and OFFSET(high, OFFSET=1) >OFFSET(low, OFFSET=2)
and CLOSE()>OFFSET(mid, OFFSET=2)

Show bar view

Thanks Donald. A couple of points:

You are missing a few () - ie OFFSET(high, OFFSET=1) should be OFFSET(high(), OFFSET=1)

Another way of doing offsets is using square brackets, so the previous high value can be found using HIGH()[1]

Also, ‘mid’ is not a value we calculate. So CLOSE()>OFFSET(mid, OFFSET=2) should be

CLOSE() > (HIGH()[2]+LOW()[2] )/ 2

Darren, Thanks for your quick reply.

I still have long way to learn.