How to Use the TOS Scanner

markos

markos

Well-known member
VIP
Warehouse
This video shows how you can use the Stock Hacker in ThinkorSwim with most of the indicators posted on this site. It allows you to scan for new signals on your chart.

In this specific video:
  • I used the RSI 2 indicator as an example
  • The timeframe was the Daily chart
  • Scan within 1 bar (which means the current day)
  • Scan for both up and down signals on the S&P 500 Watchlist

How To Drive The TOS Scanner - (ed by Markos for useThinkScript.com, All rights to TDAmeritrade - ThinkorSwim)

Scan (Please watch the videos located within! Also, Blue Links should all be active)

The features of the Scan tab enable you to filter through tens of thousands of stock, option, futures and forex products available based on your search criteria. The following interfaces are available on this tab: Stock Hacker, Option Hacker, Spread Hacker, Spread Book, and ISE Spread Book. Please continue on to the provided videos in this section for more details.




------------------------------------------
Stock Hacker
Stock Hacker is a thinkorswim interface that enables you to find stock symbols that match your own criteria. Learn how to scan for specific stocks using thinkorswim—then create an alert to stay updated.
Watch the Video: blob:http://tlc.thinkorswim.com/44e07653-2508-4402-8c00-207eb58a34a6How to Use Stock Hacker
  1. Before entering the actual scan criteria, you can narrow your search by using the Scan in drop-down menu on top of the Setup Scan area. This menu enables you to choose among which set of symbols the scan will be performed. You can select your personal or a public watchlist, a certain category (e.g., All Stocks, All Indices, All Futures), a preset scan list, or a GICS industry list. You can narrow the search even further by selecting a different subset from the Intersect with drop-down menu so the scan will only be performed among symbols that belong to both subsets. (Save yourself potential headache, scan in S&P 500 when setting up)


2. Scan filters by clicking on the buttons:
  • Add filter for stock to add a scan criterion based on stock metrics, e.g., net change, percent change, bid/ask prices, etc.
  • Add filter for options to add a scan criterion based on option metrics, e.g., Greeks, intrinsic/extrinsic values, probabilities, etc.
  • Add study filter to add a scan criterion based on study values, including your own thinkScript-based calculations. Learn more: Study Filters in Stock Hacker.
  • Add fundamental filter to add a scan criterion based on corporate data.
  • Add pattern filter add a scan criterion based on occurrence of selected classical patterns in the price action of a stock symbol.
3. The filters will be stacked in the Filters area with default parameters. You can use up to 25 filters in a single scan and only one pattern filter is allowed. To remove a filter, click X on its right.


4. Adjust your scan criteria by using the controls in each filter. For example, select a different parameter to perform the scan with or edit the desirable range of parameter values. The latter can be done by either selecting the minimum and the maximum values of the range in the corresponding boxes or by dragging the brackets in the pre-scan diagram. The diagram illustrates how many results there are for each of the micro-ranges that constitute the specified range. The total number of matches is displayed live on the right.
Note that even though each filter may display a certain number of matches in pre-scan, the actual scan may return no results, as the stock (option) needs to match all the specified criteria. Pre-scan matches are currently unavailable for pattern filters.


##For your own sake, skip #5 and #8 because Patterns is for CMT’s and Chart Readers etc. as they know exactly the result of what they are looking for/at in a Pattern. In otherwords, if you don't already know patterns, you'll probably get hung up on that instead of just trading. It could become a can of proverbial worms as well as take you off your game. (imo ed. ms)##

5. To adjust a pattern filter:
  • Select patterns you would like to perform the scan for. More info on available patterns: Classic Patterns.
  • Click Edit... to modify sensitivity and parameters of the selected patterns. To learn more about sensitivity and parameters of classical patterns, see Using Classic Patterns.
  • Specify the time frame on which the patterns are to be looked for.
6. Adjust your preferences for result output: how many results to show, whether to display stocks, options, or both, which column to sort by and in which order. (Lot's of good stuff when you click on the TINY sprocket below the scan button,)

7. Click Scan. The results will be displayed in a watchlist-like form (and you can actually save them as a watchlist by clicking the Show actions menu button and selecting Save as Watchlist…). Virtually all operations available in watchlists are also available in the search results: you can add or remove columns, adjust sorting, add orders, create alerts, etc.

If there is a pattern filter in the scan setup, the results include symbols that have at least one occurrence of any of the specified patterns on the specified time frame. The results of pattern filter scans are updated hourly.

8. If your scan for patterns returns any symbols, a new column Patterns will be added to the Search Results. Clicking on the 'pattern' icon in this column opens a detached chart of the corresponding symbol with the same time-frame as specified in the pattern filter setup. Found patterns will be highlighted on this chart.



9. Consider saving your scan query for further use. To save your query, click on the Show actions menu button next to Sizzle Index and select Save scan query… Enter the query name (with date) and click Save. To load a saved query, click Show actions menu, select Load scan query and choose the desirable one from the list.

10. Scan results are dynamically updated (Approx. every 3 minutes). If you would like to be notified of changes in the results, consider adding an alert on the changes. To add an alert:
  • Click on the Show actions menu button and select Alert when scan results change…
  • In the dialog window, specify which events you prefer to be notified of (e.g., when there is a new symbol that matches the criteria or a symbol that no longer matches them) and the scan query to be monitored.
  • Specify the frequency options: whether you would like the system to notify you of every change in the results or send you a list of changes on an hourly, daily, or weekly basis.
  • Click Create. The alert will be added to your Alert book.
-------------------------------------------

Sizzle Index

Sizzle Index
is a thinkorswim feature that allows you to find stock symbols that currently see an increase in the number of options traded compared to the last five days’ average. It is calculated as the ratio of the current total volume of put and call options to the arithmetic mean of daily put and call volumes over the last five days. Individual call and put Sizzle Index values are also calculated and available as watchlist columns.

The Sizzle Index feature is essentially a Stock Hacker scan template that returns ten stock symbols with highest Sizzle Index values and, by default, have market capitalization of at least 35 million dollars, volume of at least 100,000 shares, and last price of at least five dollars. These default values can be modified in the Stock Hacker interface.

Watch the Video : blob:http://tlc.thinkorswim.com/cd4ef417-8d52-483a-8b1d-654f1abcff59

How to Use Sizzle Index
  1. Click the Scan tab and choose Stock Hacker from the sub-tab row. Click the Sizzle Index button on the right of the Stock Hacker header. This will load the Top 10 Sizzling Stocks scan template.
  2. By default, three stock scan filters are added in the template: minimum last price, minimum volume, and minimum market capitalization. If necessary, modify these filters. The total number of matches is displayed live on the right. Note that even though each filter may display a certain number of matches in pre-scan, the actual scan may return no results, as the stock needs to match all the specified criteria.
  3. If necessary, add more filters to the scan by clicking the buttons on above the filters area. You can use up to 25 filters in a single scan and only one pattern filter is allowed. To remove a filter, click X on its right.
  4. Click Scan. The results will be displayed in a watchlist-like form (and you can actually save them as a watchlist by clicking the Show actions menu button and selecting Save as Watchlist...). Virtually all operations available in watchlists are also available in the search results: you can add or remove columns, adjust sorting, add orders, create alerts, etc.
  5. Consider saving your scan query for further use. To save your query, click on the Show actions menu button next to Sizzle Index and select Save scan query... Enter the query name and click Save.
  6. Scan results are dynamically updated.If you would like to be notified of changes in the results, consider adding an alert on the changes. To add an alert:
    • Click on the Show actions menu button and select Alert when scan results change...
    • In the dialog window, specify which events you prefer to be notified of (e.g., when there is a new symbol that matches the criteria or a symbol that no longer matches them) and the scan query to be monitored.
    • Specify the frequency options: whether you would like the system to notify you of every change in the results or send you a list of changes on an hourly, daily, or weekly basis.
    • Click Create. The alert will be added to your Alert book.
-----------------------------------------------

STOCKSIZZLE (This portion is not original to http://tlc.thinkorswim.com/center/howToTos/thinkManual/Scan/Stock-Hacker/Sizzle-Index.html ed. ms)

StockSizzle is a “Study” that can be added as a column by clicking the little gear at the end of an scans’ description column. Study is in quotations because it is not documented very well, even though it is there, and I use it.


Once loaded, click on the little scroll to the left of its name and you should find customizations. By default, StockSizzle shows up an ever-darker green the higher the volume is from the parameters you set.

---------------------------------------------

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.

Example

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; (Huh? Well, look it up! :))
  • Scripts using standard thinkScript® syntax must have exactly one plot; (Look me up too! :D )
  • Scripts using intraday aggregation include extended session data in calculations. (Attn: Day Traders)
Data Limitations

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

Data typeAggregation periodsData limit (in astronomical days)
MinFrom 1 min to 30 min15
HourlyFrom 1 hour to 4 hours270
DailyFrom 1 day to 1 month (including OptXp)730

Further study can be found at the link below (ed. ms)

http://tlc.thinkorswim.com/center/howToTos/thinkManual/Scan/Stock-Hacker.html

End of Tutorial
 
Last edited by a moderator:
markos

markos

Well-known member
VIP
Warehouse
#Mobius for Marshall ed by Markos TSL 11:15am 1-2-18
1. Use the Scan Wizard
2. Select Add Study Filter
3. Click the pencil next to "D" on the right side
4. Delete Study
5. Add Condition
6. Add Study
7. Scroll to DIPlus (or your study) and add
8. Center Column click Greater Than (or your study)
9. Right Side Click Add Study
10. Scroll to DIPlus (or your study)and click Offset1 (or your condition)
11. Set Aggregation Period
12. Select the Scan In List
13. Select the Intersect with List
14. Scan
 
T

tomsk

Well-known member
VIP
Warehouse
Just to be sure that EVERYONE understands how to interpret this, at the end of the scan there is a section of code like so:

# Comment out (#) the ONE not needed
plot BullScan = close crosses above SHigh;
#plot BearScan = close crosses below SLow;

Notice that there are some lines that are commented out with (#) - Those would be ignored by the scanner, only for human consumption
In the above example only the bullish scan is enabled.

In order to turn this into a bearish scan, just switch the commented lines like so

# Comment out (#) the ONE not needed
#plot BullScan = close crosses above SHigh;
plot BearScan = close crosses below SLow;

Compare those differences - it really is that simple.

Just REMEMBER that there can only be one active plot defined or the scanner would complain
 
Last edited by a moderator:

Top