Options Gamma Flip Zones [BackQuant]Options Gamma Flip Zones
A market-structure style “gamma flip” mapper that builds adaptive strike-like zones, scores how price interacts with them, then promotes the strongest candidates into confirmed flip zones. Designed to highlight pinning, failed breaks, and rotational behavior without needing live options chain data.
What this indicator does
This script identifies price levels that behave like “strike magnets” during conditions that resemble options pinning, then draws dynamic zones around those levels.
Instead of assuming every round number matters, it:
Creates a strike ladder (auto or manual step).
Applies a regime filter that looks for “pin-friendly” market conditions.
Tracks and scores repeated interactions with the level.
Upgrades a zone from candidate to confirmed when enough evidence accumulates.
Invalidates zones when price achieves sustained acceptance away from them.
The output is a set of shaded boxes (zones) centered on strike-like levels, with text readouts that show the current state of each zone.
Key concept: “Gamma proxy”
A true gamma flip requires options positioning data. This indicator does not use options chain gamma.
Instead, it uses a proxy approach:
When markets have elevated volatility relative to their recent baseline AND trend strength is weak, price often behaves “sticky” around key levels.
In those conditions, repeated touches and failed escapes around a level behave similarly to pinning around strikes.
So this tool is best read as:
“Where would a strike-like magnet likely exist right now, based on price behavior and regime conditions?”
How zones are created
Zones only start forming when the script detects a pin-friendly regime.
1) Strike Ladder (level selection)
Auto Strike Step selects a step size based on current price magnitude (bigger price, bigger step).
Manual Strike Step lets you force a fixed increment.
The current “active level” is the nearest rounded level to price.
Major Level Every optionally marks major ladder levels (multiples of step).
2) Band construction (zone thickness)
Each zone is a symmetric band around the level, using one of two modes:
ATR mode scales thickness with volatility.
Percent mode scales thickness as a fraction of price.
This matters because “pin behavior” is not a single tick. It’s a region where price repeatedly probes and rejects.
Regime filter (when the script is allowed to believe in pinning)
A zone is only eligible to form and strengthen when Pin Regime is active. Pin Regime is a conjunction of:
1) IV proxy (ATR z-score)
Uses ATR as a volatility proxy.
Converts ATR% into a z-score relative to a long lookback.
IV Proxy Threshold controls how elevated volatility must be before the script considers pinning likely.
2) Weak trend requirement
The script also requires price action to be non-trending:
EMA spread must be small (fast vs slow EMA not diverging strongly).
ADX must be below a ceiling, confirming weak directional trend strength.
Interpretation:
High “IV proxy” + weak trend is where pin-like behavior is most common.
If trend is strong, zones are less meaningful because price is more likely to accept away from levels.
Flip confirmation logic (what upgrades a zone)
A zone is not “confirmed” just because price is near it once. The script builds conviction via evidence accumulation.
Evidence types:
Touches : price comes close to the level within tolerance.
Failed escapes : price pushes outside the band but closes back inside (rejection).
Acceptance run : consecutive closes outside the band, suggesting price is accepting away from the zone.
Protections:
Touch Cooldown prevents counting the same micro-chop as multiple touches.
Acceptance Bars defines what “real acceptance” means, so the zone does not get invalidated by one noisy bar.
A zone becomes confirmed when:
Touches meet the “evidence” requirement.
Failed escapes meet the “rejection” requirement.
The regime filter still says the market is pin-friendly.
That is important, it avoids promoting levels that only worked briefly in a trending tape.
Zone scoring and lifecycle
Each zone maintains a score that evolves over time. Think of score as “how much this level has recently behaved like a magnet.”
Score dynamics:
Decay per bar : score fades over time if price stops respecting the zone.
+ per touch : repeated proximity increases score.
+ per failed escape : rejections add stronger reinforcement.
- per acceptance bar : sustained trading outside reduces score.
Min score to draw : prevents clutter from weak, low-confidence zones.
Invalidation:
If the score becomes very weak AND price achieves sustained acceptance away from the zone, the zone is deleted.
This keeps the chart clean and ensures zones represent current market behavior, not ancient levels.
How to read the plot on chart
1) Zone fill and border
Each zone is drawn as a box extended to the right.
Fill opacity adapts to zone strength, strong zones are visually more prominent.
Border color encodes the current directional context and special events.
2) Bullish vs bearish coloring
A zone is colored bullish when price is currently trading above the zone’s mid-level.
A zone is colored bearish when price is currently trading below it.
This is not a trade signal by itself, it is a state cue for “which side is in control around the level.”
3) Failed escape highlighting
If price attempts to break above the band and fails, the border temporarily highlights as a failed up escape.
If price attempts to break below the band and fails, the border temporarily highlights as a failed down escape.
These are the moments where pin behavior is most visible:
Break attempt.
Immediate rejection.
Return to the band.
4) Midline (optional)
The zone midline is the strike-like level itself.
It is dotted to distinguish it from price structure lines.
5) Optional strike ladder overlay
When enabled, the script draws major and minor ladder lines near current price.
Major levels are thicker and less transparent.
This is a visualization aid for “where the algorithm is rounding,” not a prediction tool.
On-chart text readout (what the box text means)
Each box prints a compact state summary, designed for fast scanning:
Γ CANDIDATE means the zone is being tracked but not yet validated.
Γ FLIP (PROXY) means the zone has met confirmation requirements.
BULL/BEAR indicates which side price is on relative to the mid-level.
L prints the level value.
T is touch count, repeated proximity events.
F is fail count, rejected escape attempts.
IVz is the volatility proxy z-score at the moment.
ADX is the trend strength context.
Practical use cases
1) Pinning and range trading context
Confirmed zones often act like gravity wells in sideways or rotational regimes.
When price repeatedly fails to escape, fading outer edges can be reasonable context for mean reversion workflows.
2) Breakout validation
If price achieves acceptance outside the band for multiple bars, that is stronger breakout context than a single wick.
Zones that invalidate cleanly can mark transitions from pinning to directional move.
3) Time your “do nothing” periods
When Pin Regime is active and a zone is confirmed, the tape often becomes sticky and inefficient for trend chasing.
This helps avoid taking trend entries into a pin environment.
Alerts
Standalone alertconditions are included:
Zone Confirmed : a candidate becomes confirmed.
Zone Touch : price touches an active zone within tolerance.
Zone Invalidated : the zone loses relevance and is removed.
Tuning guidelines
Sensitivity vs quality
Lower Touches Needed and Failed Escapes Needed creates more zones faster, but with lower quality.
Higher values create fewer zones, but the ones that remain are more behaviorally “proven.”
Band width
ATR mode adapts to volatility and is typically safer across assets.
Percent mode is consistent visually but can feel too tight in high vol or too wide in low vol if not tuned.
Regime thresholds
If you want fewer zones, raise IV proxy threshold and tighten weak-trend filters.
If you want more zones, lower IV proxy threshold and loosen weak-trend filters.
Limitations
This is a proxy model, not live options gamma.
In strong trends, pinning assumptions can break, the regime filter is there to reduce that risk, but not eliminate it.
Auto strike step is designed for typical market ranges, manual step is recommended for niche tick sizes or custom markets.
Disclaimer
Educational and informational only, not financial advice.
Not a complete trading system.
Always validate settings per asset and timeframe.
Gamma
SPX-to-ES Gamma Levels (20 GEX Levels)Draws GEX levels specified by user on ES futures chart.
User inputs SPX-to-ES offset, SPX price level, and length of box
SPY Daily Gamma Levels [Manual Input With Alerts]Overview This indicator plots key options-based support and resistance levels (Gamma Exposure / GEX) directly on your chart. Unlike standard technical analysis, these levels (Call Wall, Gamma Flip, Put Support, and Volatility Trigger) represent where Market Makers are positioned, often acting as "magnets" or "repellents" for price action.
Important Note: TradingView Pine Script cannot currently access external options open interest data natively. Therefore, this is a Manual Input Indicator. You must update the four price levels in the settings each morning before the market opens.
Key Features:
4 Key Levels: Plots the Call Wall, Gamma Flip (Zero Gamma), Put Support, and Volatility Trigger.
Auto-Cleaning: Automatically deletes yesterday's lines to keep your chart clean; lines only show for the current session.
Alerts Included: Built-in alert conditions allow you to set notifications when price crosses the Gamma Flip or breaks the Vol Trigger.
Customization: Fully customizable colors and line styles.
Best Practices:
Timeframe: Works best on 15-minute charts for trend identification and 5-minute charts for entry execution.
Strategy:
Above Gamma Flip: Market generally stabilizes; dealers buy dips.
Below Gamma Flip: Volatility expands; dealers sell rips.
Below Vol Trigger: "Danger Zone" – expect accelerated selling pressure.
How to Get the Data (The AI Workflow)
Since these numbers change daily, I use Google Gemini to fetch the data and remind me every morning. Here is how you can set up the same automated workflow:
1. The Prompt You can ask Gemini (or your preferred AI) the following prompt manually each morning:
"Find the daily SPY Call Wall, Gamma Flip, Put Support, and Vol Trigger levels for today to input into my TradingView indicator."
2. Automating the Routine I have set up a scheduled daily reminder with Gemini. To do this yourself, simply ask Gemini:
"Can you schedule a daily task to search for these SPY Gamma levels and send them to me every morning at 8:00 AM?"
3. Updating the Chart
Receive the notification from the AI.
Open the Indicator Settings in TradingView.
Type in the new numbers.
The chart updates instantly.
Disclaimer: This tool is for educational purposes only. Gamma levels are estimates based on Open Interest and Dealer Gamma exposure models. Always manage your risk.
GEX / Gamma - SPX Indicator Description – GEX / Gamma (SPX)
This indicator allows you to manually plot your daily +GEX, TRANS-GEX, and –GEX levels on SPX and visualize how price reacts around key gamma zones.
You enter the three levels each morning, and the script automatically draws:
+GEX / TRANS / –GEX zones with an adjustable buffer
Clean labels (e.g., “+GEX: 6850”) pinned to the right side of the chart
Today-only candle coloring (green above TRANS-GEX, red below)
Zones extend from yesterday’s session through the current session, helping highlight areas where dealer hedging flows may influence volatility, compression, or acceleration.
How to Use
Add the indicator to any intraday SPX chart.
Open settings and enter your +GEX, TRANS-GEX, and –GEX levels for the day.
Adjust the buffer, colors, and label style as needed.
Watch how price behaves as it moves above or below TRANS-GEX and interacts with +/- GEX zones.
Best For
Intraday SPX / ES / SPY
Options traders
Volatility and gamma-aware strategies
Strategy Behind It (Tight Version)
GEX levels help identify where dealer hedging flows can influence SPX price behavior.
+GEX (Positive Gamma)
Market tends to stabilize here. Dealers hedge against price moves, creating mean-reversion and lower volatility.
TRANS-GEX (Transition Level)
Key pivot where gamma flips. Price crossing this level often signals a shift in volatility or intraday direction.
–GEX (Negative Gamma)
Market becomes more reactive. Dealers hedge with price, increasing volatility, momentum, and trend potential.
How traders use it:
Expect resistance or slowdown into +GEX
Watch for potential bottoming or increased volatility –GEX
Use TRANS-GEX as a bias line or trigger for intraday shifts
A move outside of either the +GEX or -GEX will likely result in some type of high volume move.
Options levelsOverview
Options Levels 🎯 plots 13 key institutional and options-based levels directly on your chart — including Call Wall, Put Wall, Gamma Flip, Whales Pivot, five Whale levels, and Sigma deviation bands (σ¹ / σ²).
It’s designed for both intraday and swing traders, offering a clean visual structure with elegant emoji labels, flexible visibility controls, and precise right-edge extensions for each line.
✨ Key Features
Single structured input with 13 ordered levels:
CallWall, PutWall, GammaFlip, Whales Pivot, Whale1..Whale5, Upperσ1, Upperσ2, Lowerσ1, Lowerσ2
Expressive emoji labels (🟢, 🔴, ⚖️, 🌑, 🐋, σ¹/σ²) optimized for dark themes.
Right-edge alignment: each line extends exactly to its label — no infinite lines.
Group visibility toggles:
• Critical Levels → Call Wall, Put Wall, Gamma Flip, Whales Pivot
• Whale Levels → Whale 1–5
• Sigma Bands → Upper/Lower σ¹ and σ²
Dynamic line-length multipliers that emphasize key levels.
Built-in alert conditions:
• Price crossing above the Call Wall
• Price crossing below the Put Wall
⚙️ Inputs & Settings
📋 Level List (string) : comma-separated list of 13 numeric values.
Example:
🎨 Appearance
• Base line length (bars)
• Label visibility toggle
• Line thickness
• Extend line and label to the right
• Distance (bars) between last candle and label
👁️ Visibility Controls
• Toggle Critical, Whale, or Sigma levels independently
🚀 How to Use
Paste your list of 13 ordered levels into the input field.
Adjust base length and thickness according to your timeframe.
Enable “Extend to the right” to position labels neatly beyond the last candle.
Use visibility toggles to focus on specific level groups (e.g., hide Whale Levels for short-term setups).
Optionally enable alerts to track price breakouts above/below Call and Put Walls.
The plotted levels are derived from aggregated options flow data, institutional positioning, and volatility-based deviations (σ). They serve as reference zones rather than predictive signals, helping visualize where liquidity and dealer hedging pressure may cluster.
📖 Level Definitions
Call Wall 🟢 — The strike with the highest call open interest; potential resistance area.
Put Wall 🔴 — The strike with the highest put open interest; potential support area.
Gamma Flip ⚖️ — Level where total gamma exposure changes sign; may reflect a shift in dealer hedging behavior.
Whales Pivot 🌑 — Represents the average institutional positioning from the previous trading day, reflecting where large option flows were most concentrated.
Whale Levels 🐋 — High-premium or large-volume strikes typically linked to institutional activity.
Upper σ¹ / σ² 📈 — One and two standard deviations above spot; potential overextension zones.
Lower σ¹ / σ² 📉 — One and two standard deviations below spot; potential mean-reversion zones.
Levels are manually input by the user. This script is a visual reference, not a predictive model.
⚠️ Notes
Levels are user-provided (not calculated by this script).
The indicator does not issue buy/sell signals or provide performance guarantees.
Designed purely as a visual aid for contextual market reference.
Optimized with barstate.islast for performance (draws only at the latest bar).
Disclaimer:
This indicator is for educational and visual purposes only. It does not generate buy/sell signals or guarantee future results. User-provided levels are meant for contextual reference only.
Developed for traders who rely on market structure and options flow context. Feedback and suggestions are welcome.
Gamma Exposure Levels by OMG (Oh My Gamma)OMG (Oh My Gamma) - Daily GEX Levels
An operational framework for Gamma analysis with daily data.
Indicator's Purpose & Demo Data
This indicator plots key strategic levels derived from Gamma Exposure (GEX) analysis. It showcases the operational logic of OhMyGamma analytical engine.
IMPORTANT: The levels plotted by this public script are based on a past date's snapshot for demonstration purposes. They are not valid for live trading and will not update automatically.
The real edge comes from using the fresh data structure provided daily.
How to Read the Levels
This indicator is designed to provide actionable intelligence, not just data. Here's how to read it:
The Levels: Each line represents a key strategic zone (Zero Gamma, Call/Put Walls, etc.) where a market reaction is statistically probable due to dealer hedging flows.
Line Thickness = Strategic Importance: The thickness of each line directly corresponds to its strategic rating. Thicker, solid lines represent higher-conviction zones.
Labels & Tooltips: Hover over a level's label on your chart to see its full description, confluences, and strategic rating.
Pro Tip: The Power of Confluence
This indicator is not a standalone "system". It's an institutional-grade intelligence layer. Its predictive power increases exponentially when used to find confluence with your own analysis.
The highest-probability trades occur when a key Gamma level aligns with:
Price Action: Key support/resistance zones, order blocks, or liquidity pools.
Volumetric Indicators: High/Low Volume Nodes (HVN/LVN) from Volume Profile, VWAP, and Anchored VWAP.
Use these levels to confirm your setups and gain the conviction to act.
How to Get the Daily Updated Script
This indicator requires a new Pine Script code each day to load the current session's data.
To get the daily updated code feel free to visit www.ohmygamma.com
Feedback & Suggestions
This tool is built for the community. Suggestions for improvements and new features are highly welcome and help the project evolve. Feel free to get in touch via the contact form on the website.
Disclaimer: This tool is for informational and educational purposes only. Trading involves significant risk. The authors assume no responsibility for any trading decisions.
CB Charts - GEX MESZ2025/ESZ2025Last Updated: 09/22/2025 6:41 a.m. PST
*DISCLAIMER: Only intended for ESZ2025/MESZ2025 charts.
This indicator plots horizontal levels based on batched GEX levels for ESZ2025/MESZ2025. The batched data is derived from contracts expiring: 0DTE, 1DTE, EoW, EoM, Next Week, Next Month and 3-months out. Labels are available for a high-level view of which levels are which. Hovering (or long-pressing on mobile TV) over the labels will display the nominal values and Rank. This script is manually updated and may not be always updated.
When and what to use:
- Most respected levels come from 1DTE, EoW and EoM.
- 0DTE is included for when this script becomes intraday updated. (CURRENTLY NOT UPDATED INTRADAY)
- Next Week setting is best used only for Friday and Sunday trading
- Next Month setting is best for weeks close to the end of the current month
Powered by the Camels of Wallstreet
MathSpecialFunctionsGammaLibrary "MathSpecialFunctionsGamma"
Gamma Functions.
GammaQ(index) Enumeration of the polynomial coefficients for the "GammaLn" approximation.
Parameters:
index : int, 0 => index => 10, index of coeficient.
Returns: float
GammaLn(z) Computes the logarithm of the Gamma function.
Parameters:
z : The argument of the gamma function.
Returns: The logarithm of the gamma function.
Gamma(z) Computes the Gamma function.
Parameters:
z : The argument of the gamma function.
Returns: float, The logarithm of the gamma function.
GammaLowerRegularized(a, x)
Parameters:
a : float, The argument for the gamma function.
x : float, The upper integral limit.
Returns: float, The lower incomplete gamma function.
GammaUpperRegularized(a, x) Returns the upper incomplete regularized gamma function
Parameters:
a : float, The argument for the gamma function.
x : float, The lower integral limit.
Returns: float, The upper incomplete regularized gamma function.
GammaUpperIncomplete(a, x) Returns the upper incomplete gamma function.
Parameters:
a : float, The argument for the gamma function.
x : float, The lower integral limit.
Returns: float, The upper incomplete gamma function.
GammaLowerIncomplete(a, x)
Parameters:
a : float, The argument for the gamma function.
x : float, The upper integral limit.
Returns: float, The lower incomplete gamma function.
MMP Indicator 4-step WeeklyFading levels using martingale (limit orders, rebate venue) with no stop-loss orders, long the wings at the end of Support and Resist levels from prior week Friday right before the close. Re-hedge the order book units when there is a breakout.









