Looking for a GAP Scanner

The following code should identify gaps between 3 to 5 % with low volume why does the scanner return all stocks ?

I mean I scan the nifty with this and it gives me all 50 of them as result even when there are no gaps.

((HIGH < REF(LOW,1) * 0.97) AND (
HIGH > REF(LOW,1) * 0.95) AND
(VOLUME < SMA(VOLUME, 5) * 2)) OR ((LOW > REF(HIGH,1) * 1.03) AND (LOW < REF(HIGH,1) * 1.05) AND (VOLUME < SMA(VOLUME, 5) * 2))

Aditionally is there any page we can refer for Scanner script guidelines, some scripts work in EA but not in Scanner, what is th syntax for spaces etc, I have studied the TradeScript document.

the syntax of above code is correct you can use it in scanner, it will load all the stocks by default and it will check the condition and gives alert with change of alert time