Options Scan Hacker in ThinkorSwim

YungTraderFromMontana

Well-known member
Does anybody have the code for an options scanner that can implement P/C ratio or sizzle? I wanted to use a scan like this to confirm options plays that I was thinking of doing. This could save a lot of time from going into options statistics if I'm looking through a lot of stocks. Thank you.
 
Last edited by a moderator:
Solution
The ToS Options Hacker Module doesn't allow the using of custom studies to scan against options related data. The Options Scanner cannot be customized, it utilizes pre-defined filters.

E3DVssl.png

Here is an example of the 'native filters' available in the Options Hacker Scanner which are limited to the use of minimum / maximum
https://usethinkscript.com/threads/stock-price-trades-higher-than-the-option-chain.10865/#post-95715
Vizphwr.png


@cooldyood @huab @joetimismith @huab
@Ogaili @varsity125lb @us3r001 @Shooters_Gotta_Shoot @Infb11
@cloudspotter @jackroot @grapetux
@Optionsguy @vivekshahi @BobCrandall...
Maybe not the most efficient way but I create a watch list with one stock, SPY for instance, and use the options scan hacker with the parameters I want and choose SPY watch list to scan. I then save the option scan as a watch list and load it on my main screen. I customize the saved options watchlist and add volume, delta and open interest columns. I also remove bid ask columns to keep the number of columns to option ticker, price, delta, open interest and volume. I only trade a couple of tickers, mainly SPY, so easy to switch watch lists or run two watch lists on the side panel. Use some minimum open interest value to keep the option scan results manageable. Hope this helps.
 
Thank you , But can it scan just one stock that i specify ?
Sure.
Keep in mind, that you can only scan for
  • the only the pre-defined fields available in the scan hacker.
  • and only for the min / max values for that are available.
As already explained here:
https://usethinkscript.com/threads/stock-price-trades-higher-than-the-option-chain.10865/#post-95715

If you are asking "how" to specify the one stock for scanning.
1. Put the stock in your manual watchlist.
2. Put the name of your manual watchlist, in the "scan in" field of the option hacker.
https://tlc.thinkorswim.com/center/howToTos/thinkManual/Scan/Stock-Hacker#:~:text=Listed Stocks),-,a preset scan list,,-or a GICS
 
Last edited:
Does anyone have a code that scans for individual options (not the underlyings) where IV for that option is greater than a certain value (e.g. > 67%) and while delta is in a certain range (e.g. (>.25 AND < .50) OR (<-.50 AND >-.25))?

I appreciate that I will not get an exact strike, but returning stocks that meet this crieteria is a great start, as that will filtger out unwanted tickers.

Thank you
 
Last edited:
Is it possible to filter an option scan based on a strikes that are +/- a certain amount from the underlying MARK price?

Here's the final objective: Have a dynamic watchlist that always shows call options (and another for puts) for a single underlying (SPX), with 1 DTE, and with a strike within +/-$15 of the current SPX LAST price (I typed that wrong in the title). This would provide a dynamic watchlist of 7 options that are within 3 strikes up and down of the underlying's current price as it moves up/down throughout the day.

Here are my current scan settings for the scan in Option Hacker:
  • Scan in: All Optionable
  • Intersect with: SPX scan (a watchlist with only the SPX symbol)
  • Exclude: <none>
  • Option...Option type: Call
  • Option...Days to exp - min: 1, max: 2
  • Option...Strike: (I can only enter fixed min and max)
Here's a shared scan link: http://tos.mx/zQi7jit

So...is it possible to filter options based on the dynamic underlying strike price (not using min/max with hard-coded strikes?

If not, is there another way of creating the watchlists I'm looking for?

Hopefully, this makes sense. If clarification is needed, please let me know.
 
Last edited:
Hello,

I had scans last year that included the ability to scan for individual option symbols where the option volume was grater than open interest. Then Schwab took over and then there was an update for TOS. They stopped working. I called the HELP desk and they denied that ability to do a custom scan in either Stocks & Options or just Options was ever available. A clear lie. HAs anyone have more information about this, had similar experiences etc.
Please provide input on this. Thank you
 
Hello Guys,

I'm looking for ways to find the optimal Greeks when choosing a contract when swing trading. So far I understand the following:

1- "Spread" - Percentage between Bid and Ask. If below 4%.
2- "Delta" - Between .25 and .45 (mid .30).
3- Open Interest as high as possible.

Note: This is for directional "Single" contract Calls or Puts.

Thank you!
 
Hello Guys,

I'm looking for ways to find the optimal Greeks when choosing a contract when swing trading. So far I understand the following:

1- "Spread" - Percentage between Bid and Ask. If below 4%.
2- "Delta" - Between .25 and .45 (mid .30).
3- Open Interest as high as possible.

Note: This is for directional "Single" contract Calls or Puts.

Thank you!
is there a way to scan for options contracts that the delta exceeds 20% of the Ask?
 
In option hacker, I can add a filter to define option's bid price in a scan, but they are fixed numbers.

I try to scan for options whose bid is greater than 10% of it's strike price.

It looks like this:

def S = GetStrike();
plot scan = if Option-bid/S>0.10 then 1 else 0;

Right now I don't know how to define option's bid price in a custom script though
 
Trying to get an options scan column to return avg daily range dollars for the underlying symbol. Using getunderlyingsymbol() function is that the right one? ultimately i want the ADR for the underlying stock when i do an option scan so that in addition to the option data, i would have one column return the stock's ADR. that way I can copy paste into Excel. Basically what I want to do is go through my charts and pick 10-15 watches for the day and put into Excel and have it show me the profit potentials based off the info including the ADR. just not working in the option scan- working on the reg stock scan just not the option scan without giving a lot of NaN returns.
1722800072796.png
 
Objective: I am trying to identify and get an alert when option contracts in SPX option chain gets over a certain volume in the past minute.

Background: Since the option hacker can't use custom scripts to filter, I have created a watchlist and added a custom column to calculate volume for every candle. This works. However, since I can't have an alert in a custom column, I have to constantly be watching the screen for volume change. I tried linking the watchlist to a grid. Unfortunately, here the grid doesn't update with the changes in the watchlist in real time. I have to constantly refresh.

Request: I would love to know your thoughts on any one of the following (or all):
1. Has anyone figured out a way to filter contracts in option chain based on minute-level volume (e.g., only show me contracts based which has over 100 volume in the past minute)?
2. Has anyone figured out a way to sort the results from a scanner using a custom code?
3. Has anyone figured out a way for grids to automatically update the charts based on updated results in watchlist?
 
Objective: I am trying to identify and get an alert when option contracts in SPX option chain gets over a certain volume in the past minute.

Background: Since the option hacker can't use custom scripts to filter, I have created a watchlist and added a custom column to calculate volume for every candle. This works. However, since I can't have an alert in a custom column, I have to constantly be watching the screen for volume change. I tried linking the watchlist to a grid. Unfortunately, here the grid doesn't update with the changes in the watchlist in real time. I have to constantly refresh.

Request: I would love to know your thoughts on any one of the following (or all):
1. Has anyone figured out a way to filter contracts in option chain based on minute-level volume (e.g., only show me contracts based which has over 100 volume in the past minute)?
2. Has anyone figured out a way to sort the results from a scanner using a custom code?
3. Has anyone figured out a way for grids to automatically update the charts based on updated results in watchlist?

Unfortunately no.
What you are requesting: filtering, sorting, and updating watchlists is done using the Options Hacker.
Given, custom scripts are not supported by the Options Hacker; it is not possible to perform your requested operations.
 
Looking to get a scan ideas on how can we scan for Option Volume traded today id greater than Open Interest. I can see Options Colume and Options Open interest as separate columns . But trying to find out how can we add Conditions between these two

I am sure most of you might come across this kind of scan . Any ideas on how can we achieve this

Thanks
Sai
 
Thank you MerryDay (y)(y)

When we select Add Study in the scan , under Price , i see Volume and open interest available . Not sure this volume referring to option volume? As Price has Open interest that make me think it could be option volume. I am not getting any results

1729216600604.png
 
Thank you MerryDay (y)(y)

When we select Add Study in the scan , under Price , i see Volume and open interest available . Not sure this volume referring to option volume? As Price has Open interest that make me think it could be option volume. I am not getting any results

View attachment 23166

Volume is always the volume of the symbol within the results regardless of type... And, yes, considering that this is an Option Hacker topic, Delta would be for the Option symbols returned in the results...
 
I am trying to compare Option Volume with Open Interest in Thinkorswim Option Hacker/scanner. I can see stock Volume but I want the option volume of each leg and compare the each leg volume with open interest (see below screeshot). Is there any way this could be done in thinkorswim option hacker? I want all the option leg where let's Option volume is 3X open interest.

Also, can I compare Open Interest of previous day vs today/Current Open Interest in Option Hacker? Thank you in Advance.


OptionVolumVSOI.png
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
122 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top