How use custom script to create a scan filter in the Stock Hacker
Please make sure:
You must be in a live trading account to use the Stock or Options Hacker.
The indicator the scan is referring to must be installed into TOS.
The helper file the scan is referring to must be installed into TOS (if applicable, see below).
You can find for custom script here in our knowledge base or if you are unsure if script is available, contact support.
Custom scan script is available for, but may not be limited to, the following indicators:
Compound Breakout Tool
Ready Aim Fire
Some scans scripts require helper files in addition to the indicator file for the scripts to run, some do not. Helper files are imported into TOS the same as indicator files.
Helper files are required for:
Ready Aim Fire
Helper files are not indicator files and will have the word "scan" in the name.
Do not change the name of the scan or indicator files.
Do not apply a helper scan file to a chart.
1) Open the Stock or Options Hacker
Click on the Scan tab and choose Stock Hacker or Options hacker.
If you don't see the expected buttons / tools, try clicking on the reveal arrow next to Setup Scan.
The default screen for the Stock hacker will have 3 placeholder filters.
Remove any unwanted filters by clicking on the 'X' on the right of that filter.
2) Add a custom filter
Click on Add filter to the top right of the Stock Hacker screen.
From the drop-down menu, select Study.
3) Create a custom filter
Left click on the Study drop-down menu.
There will be a default script placeholder. Delete it.
Type or copy and paste the script you want to use.
In this example, we are making a scan filter for the 10X bars.
In the below screenshot, put the text for the 10X scan into the thinkscript Editor.
A window may pop-up letting you know your script is linked to an indicator or helper scan file. Just click OK.
4. Choose a time frame
From the time aggregation menu, choose which time frame you want to search.
Your new custom scan filter is ready to use.
10X scans to use in TOS
Top Hat Scan in TOS
Ready Aim Fire scans to use in TOS
TOS - Setting up scan criteria in the Stock or Option Hacker in Thinkorswim
Compound Breakout Tool scans to use in TOS
Credit Sniper scans to use in TOS
Squeeze Scan in TOS
Scalper Alert Scan in TOS
Scan in TOS - Make a scanner custom filter from a study using the condition wizard