call and put gamma

Earthian

Member
Code:
plot data = if IsPut() then ceil(gamma() * -100 * open_interest ()) else ceil(gamma() * 100 * open_interest());
assignbackgroundcolor (if absvalue(data) > 200000 then CreateColor(136, 8, 8) else if AbsValue(data) > 100000 then  CreateColor(170, 74, 68) else if absvalue(data) > 2000 then createcolor(250, 160, 160) else color.gray);
data.assignvaluecolor(if AbsValue(data) > 100000 then color.yellow else if AbsValue(data) > 100 then color.black else color.current);

Any idea if it's possible to sum the call side calculation and put side calculation in an option chain column? For instance, in the above, I would like to have something like below accomplished, but I am not think through it correct.

call_gamma_exposure = call_gamma * call_open_interest * 1;
put_gamma_exposure = put_gamma * put_open_interest * -1;

plot data = call_gamma_exposure + put_gamma_exposure;

Any help is much appreciated!
 
Last edited by a moderator:
Code:
plot data = if IsPut() then ceil(gamma() * -100 * open_interest ()) else ceil(gamma() * 100 * open_interest());
assignbackgroundcolor (if absvalue(data) > 200000 then CreateColor(136, 8, 8) else if AbsValue(data) > 100000 then  CreateColor(170, 74, 68) else if absvalue(data) > 2000 then createcolor(250, 160, 160) else color.gray);
data.assignvaluecolor(if AbsValue(data) > 100000 then color.yellow else if AbsValue(data) > 100 then color.black else color.current);

Any idea if it's possible to sum the call side calculation and put side calculation in an option chain column? For instance, in the above, I would like to have something like below accomplished, but I am not think through it correct.

call_gamma_exposure = call_gamma * call_open_interest * 1;
put_gamma_exposure = put_gamma * put_open_interest * -1;

plot data = call_gamma_exposure + put_gamma_exposure;

Any help is much appreciated!

maybe? , it would be very long and convoluted.

this will give you an idea of what's involved when reading data from several option strikes.
it plots lines for open interest, for several strikes.

post #1 has latest ver
https://usethinkscript.com/threads/option-heatmap-and-oi-strikes.10664/
post2 has a pic

and sorry, no, i don't have time to tackle this
 

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

maybe? , it would be very long and convoluted.

this will give you an idea of what's involved when reading data from several option strikes.
it plots lines for open interest, for several strikes.

post #1 has latest ver
https://usethinkscript.com/threads/option-heatmap-and-oi-strikes.10664/
post2 has a pic

and sorry, no, i don't have time to tackle this
That's is a shame. This concept is the most important one in all of day trading. Itm vs otm calls and puts are how the MMs hedge. Finding the volume levels and also the time/price which they occur is how MMs determine movement. If it would at all be possible for you to delve a little deeper I would go into it with you.
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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