Study Filters

The Stock Hacker Scanning Tool allows you to search for symbols meeting certain criteria. Study filters are criteria based on study values: adding one or several study filters will help you narrow the search range when looking for symbols. You can use up to 25 filters to scan the market.

How to Find It:

1. Click the Scan tab and choose Stock Hacker from the sub-tab row.

2. Click the Add Study Filter button. A new filter editor will appear.

3. The first field of the editor allows you to choose a custom or pre-defined study to filter the results. Choose the desirable study and adjust input parameters.

4. Click Scan . Search results will be shown in the watchlist form below the Filters section.

5. If pre-defined study filters are not enough for your scan, you can create custom study filters. To do so, choose Custom from the study list. This will open the Scanner Custom Filter editor window.

In Scanner Custom Filter, you can either use Condition Wizard, an interface that is operated by human-readable expressions, or thinkScript Editor, an interface for creation of thinkScript-based studies.


Consider the following script:

close > expaverage(close, 60) and ADX(length = 14) > 18

This condition is used in the Volume Zone Oscillator study; it checks whether the price is above the 60 period EMA and 14 period ADX value is higher than 18, which could possibly mean that the market is in strong uptrend. Click OK save the filter and then press Scan to display all symbols meeting this criterion.

You can also use plot values in Study Filters:

def SMA = Average(close, 15);
plot condition = close[2] > SMA[2] and close[1] < SMA[1] and close < SMA;

This example script searches for symbols which were above simple moving average two days ago, but have fallen below since then.

Note that search criteria can be adjusted by pressing the "pencil" icon in the filter. To delete a filter, click X.

Note also that search results are displayed in the watchlist form, which means that you can display custom quotes along with standard values. For more information on that, refer to the Custom Quotes article.

Specific Usage

When in Stock Hacker, thinkScript® usage is somewhat different from that in studies and strategies. Here is the list of peculiarities:

  • Secondary aggregation is not allowed;

  • Scripts using standard thinkScript® syntax must have exactly one plot;

  • Scripts using intraday aggregation include extended session data in calculations.

Data Limitations

Data used in study filters is limited in terms of time period. These limitations depend on the aggregation period:

Data type

Aggregation periods

Data limit (in astronomical days)


From 1 min to 30 min



From 1 hour to 4 hours



From 1 day to 1 month (including OptX)