Option Heatmap and OI Strikes

so im really interested in how to get put/call options strike oi to show up like volume profile and the lower heat map similar to this example from @melarue on twitter. I have no idea how to even get started on something like this. Any hints or expert coders out there willing to reverse engineer this?

Ideally, the heat map portion could be shown on the upper chart as well, able to be mapped to strikes on today and future expirations as a dynamic color grid for daily, weekly, monthly options. Options codes should auto-generate.

this could be tweaked to show gamma levels as well -- lots of potential.

anyone up to the challenge? :unsure:

FOlIJqyVEAMJS7T
 

timing

Member
It’s the right one , it has the wrong expiration date this week because this month is longer than the 4 weeks it’s coded for, after Friday it’ll be the right expiration date again
Thanks @ziongotoptions !
After I changed "manual center strike" = today's close price, it does show up OI at different strike prices.
But the current stock price line does not show up, I cannot turn-off the labels for OIs shown in chart in Post #49.
 

ziongotoptions

Active member
Thanks @ziongotoptions !
After I changed "manual center strike" = today's close price, it does show up OI at different strike prices.
But the current stock price line does not show up, I cannot turn-off the labels for OIs shown in chart in Post #49.
I don’t understand what you mean by current stock price line doesn’t show up. Also the labels can only be removed by deleting the script that adds the bubbles at the end
 

Angrybear

Member
VIP
Current Price

def vClose = close;
def nan = double.NaN;

def highestClose = HighestAll(if IsNaN(vClose[-1]) then vClose else nan);
plot hc = highestClose;
hc.SetPaintingStrategy(PaintingStrategy.DASHES);
hc.SetDefaultColor(Color.Orange);
hc.HideBubble();
hc.HideTitle();
 

s1v

New member
Ok I kind of fixed the date part for the heat map!

Can someone please help with adding an auto plot current price as a line and is there a way to fetch and plot more historical data? maybe TOS limitations.

bx3n8gg.png

@
I have been trying to look for code for OpenVolumeOpenInterest but I am not unable to locate, Can someone please share? really appreciated
 

ziongotoptions

Active member

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.
Top