when call and put share a distinct delta value

Fuzzy14

New member
I have a light experience with coding and am very new to python.

I am trying to reference when any call and put share a distinct delta value. Print that underlying price where this occurred on my chart.

I cannot seem to figure out to reference the whole option chain, nor can I determine where to begin.

Thanks in advance,
Fuzzy
 
I have a light experience with coding and am very new to python.

I am trying to reference when any call and put share a distinct delta value. Print that underlying price where this occurred on my chart.

I cannot seem to figure out to reference the whole option chain, nor can I determine where to begin.

Thanks in advance,
Fuzzy

what you are asking for may not be doable?
maybe this will give you some ideas.
it plots lines for open interest, for several strikes.
post #1 has latest ver
https://usethinkscript.com/threads/option-heatmap-and-oi-strikes.10664/
 
Here's a general outline of how you can approach this:

  1. Choose a financial data API: There are several APIs available that provide option chain data, such as Yahoo Finance API, Alpha Vantage, or Quandl. Choose one that suits your needs and sign up for an API key if required.
  2. Install necessary libraries: Use pip to install any required Python libraries, such as requests (for API calls) and pandas (for data manipulation).
  3. Fetch the option chain data: Use the API to fetch the option chain data for the desired stock or index. You'll typically need to specify the expiration date and other relevant parameters.
  4. Process the data: Convert the JSON or CSV response from the API into a pandas DataFrame. Filter the data to include only calls and puts with the desired delta values.
  5. Compare the delta values: Loop through the DataFrame and find instances where a call and put have the same delta value.
  6. Print the underlying price: Once you find these instances, extract and print the underlying price.
Read more here
 
Last edited:
Here's a general outline of how you can approach this:

  1. Choose a financial data API: There are several APIs available that provide option chain data, such as Yahoo Finance API, Alpha Vantage, or Quandl. Choose one that suits your needs and sign up for an API key if required.
  2. Install necessary libraries: Use pip to install any required Python libraries, such as requests (for API calls) and pandas (for data manipulation).
  3. Fetch the option chain data: Use the API to fetch the option chain data for the desired stock or index. You'll typically need to specify the expiration date and other relevant parameters.
  4. Process the data: Convert the JSON or CSV response from the API into a pandas DataFrame. Filter the data to include only calls and puts with the desired delta values.
  5. Compare the delta values: Loop through the DataFrame and find instances where a call and put have the same delta value.
  6. Print the underlying price: Once you find these instances, extract and print the underlying price.
Read more here
Thank you very much for that.
I do not currently have the necessary skills to make that happen is there any way I could get you to help me with that? My coding skills are rudimentary at absolute best

what you are asking for may not be doable?
maybe this will give you some ideas.
it plots lines for open interest, for several strikes.
post #1 has latest ver
https://usethinkscript.com/threads/option-heatmap-and-oi-strikes.10664/
I have found out from Think or Swim that I cannot do what I am trying to do on the platform.
Would there be anywhere else that could support such a scripting tool?
 

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
253 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