Gamma-Weighted Dollar Flow Proxy For ThinkOrSwim

Flyingbulldog

New member
1785195843182.png

Custom Column in the option Chain...

What it Describes​

This indicator provides a proxy for intraday gamma-weighted dollar flow occurring in the current option contract. It highlights where gamma-sensitive option trading activity is taking place today, which may reflect institutional activity and associated dealer hedging.


What the Numbers Mean​

1. The Value ($ Millions)​

Positive Number (+ Green): Positive gamma-weighted dollar flow.
Higher positive values indicate increased call-side gamma-weighted trading activity during the current bar.
Potential Market Effect: May be associated with conditions where dealer hedging dampens volatility or contributes to price stabilization.​

Negative Number (- Red): Negative gamma-weighted dollar flow.
Higher negative values indicate increased put-side gamma-weighted trading activity during the current bar.
Potential Market Effect: May be associated with conditions where dealer hedging amplifies volatility or contributes to stronger directional moves.​

2. Call Flow vs. Put Flow Direction​

The script uses option delta to distinguish call and put activity:
Calls = Positive Values (+) Retail usually buys calls -->Market Makers sell calls --> Market Makers are long gamma relative to underlying upside.

Puts = Negative Values (-) Retail usually buys puts Market Makers -->sell puts -->Market Makers are short gamma relative to underlying downside.

How to Use It in Your Trading Workflow​

Scan across strikes in the Option Chain for a specific expiration to quickly spot areas of unusually large gamma-weighted option flow.
Pattern in ChainWhat It May IndicateHow Traders Often Interpret It
Huge Positive SpikeLarge Call volume occurring at a specific strikePinning/ Resistance: Price often gets ****ed toward this strike and consolidates
Huge Negative SpikeHeavy Put buying occuring at a specific strikeHuge Accelerated Volatility Zone: If price drops through this strike, market maker hedging force can push down faster.
Net Vol Flip PointThe strike where total intraday transitions from Net Positive to Net NegativePotential Shifts: Above this level, the market tends to be calm/mean-reverting; below it, intraday swings could become wider and faster.

Code:
# Hint: Calculates Volume Gamma Exposure (Vol GEX) in Millions ($M)
# Suitable for ThinkOrSwim Custom Option Chain Columns

# 1. Option Gamma & Current Option Bar Volume
def optionGamma = OptionGamma();
def optVol = volume;

# 2. Get Underlying Stock Price using the built-in fundamental data helper
def spotPrice = close(GetUnderlyingSymbol());

# 3. Determine if Call (+1) or Put (-1) using Option Delta
# Calls have Positive Delta (> 0), Puts have Negative Delta (< 0)
def sign = if OptionDelta() >= 0 then 1 else -1;

# 4. Calculate Dollar Volume GEX
# Formula: Gamma * Volume * 100 * Underlying Price * Direction Sign
def volGEXRaw = optionGamma * optVol * 100 * spotPrice * sign;

# 5. Convert to Millions ($M)
plot VolGEX = volGEXRaw / 1000000;

# 6. Formatting
VolGEX.SetDefaultColor(Color.CYAN);
AssignBackgroundColor(if VolGEX > 0 then Color.DARK_GREEN else if VolGEX < 0 then Color.DARK_RED else Color.CURRENT);
 
Last edited by a moderator:

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