TOS Scan that I have been working with that looks for bar counts between high and low that are along the 270 degree of the SQ9. So far TOS seems woefully inadequate for scanning by date since only constants are allowed with many of the date functions like getYYYYMMDD()[1] works but not replacing the "1" with a variable. Either that or I don't know enough about it yet!
Anyway, here is the scan along with a fundamental filter of last>10, it looks for the high or low of the last 300 bars to be within the last 10 days too.
def highbar = getmaxvalueoffset(high,500);
def lowbar = getminvalueoffset(low,500);
def range = if highbar<10 or lowbar<10 and volume[1]>volumeavg(50) and volume[1]>500000 then absvalue(highbar-lowbar) else 0;
plot lookup = if range==72 or range==144 or range==25 or range ==49 or range==81 or range==121 or range ==169 or range==361 and volume[1]>500000 then range else double.NaN;