Minimum available data check

Hi. I have a Pre-filtering script that I use to cut down items to scan.

(Close() > 5) and (Close(OFFSET=5) > 5) and (ATR(BARS=10) > 0.50) and (MA(VOL(), BARS=50, CALC=Close) > 100000)

What can I add to the script to ensure only codes with at least 150 days of trading data are available? I’ve tried BARCOUNT(). But if that is it, I cannot figure out how to use it.

Thanks.
Andy

Hi Andy,

The following script would work in removing codes with less that 150 bars:

V1 = CLOSE() > 0;
ACC(V1) > 150