Option Heatmap and OI Strikes For ThinkOrSwim

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

Now looking awesome!

If anyone can get the heatmap to work, then this template will be complete.

expanding the strike range will also help, I'm currently plotting 3 to cover the range, so instead of 19 maybe 60?

AiU9AxY.png
Can you post the chart tos link?
 
@Angrybear : Where is the code for the above chart?
I used the code in Post #67, but it seems not the right one.
Thanks!
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
 
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.
 
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
 
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();
 
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
 
I have been trying to look for code for OpenVolumeOpenInterest but I am not unable to locate, Can someone please share? really appreciated
How did you get the profile to pick up the whole chart, and how did you get the profile bars thick thick like that? Mine only cover a quarter of the chart and the lines are very small? Thanks!
 
using I7-32GB, all the other lines come up right away but in the gamma exposure line nothing happens

THIS IS THE GAMMA EXPOSURE I USE FOR THE OPTION CHAIN





# Gamma Exposure at each strike is calculated by the formula option gamma * open interest * 100 (calls, x-100 for puts)

input gate = 2000;
plot data = if IsPut() then gamma() * -100 * open_interest() else gamma() * 100 * open_interest();
assignbackgroundcolor(if AbsValue(data) > gate then createcolor(250,150,100) else color.black);
data.assignvaluecolor(if AbsValue(data) > gate then color.black else color.current);
 
Now looking awesome!

If anyone can get the heatmap to work, then this template will be complete.

expanding the strike range will also help, I'm currently plotting 3 to cover the range, so instead of 19 maybe 60?

AiU9AxY.png

Does anyone know where I can find the latest version of the script that produced the above two charts? Thanks you!
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
328 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