Institutional OB Entry Exit SL StrategyThis strategy is designed to identify possible institutional-style entries using order blocks, market structure, and momentum confirmation.
The strategy first looks for a break of structure. A bullish structure break happens when price closes above the recent swing high. A bearish structure break happens when price closes below the recent swing low. After this break, the script marks a possible order block zone: for bullish setups, it uses the most recent bearish candle before the bullish breakout; for bearish setups, it uses the most recent bullish candle before the bearish breakdown.
A trade is not taken immediately after the breakout. The strategy waits for price to return to, or retest, the order block area. This is meant to approximate an institutional entry zone where price may revisit liquidity before continuing in the breakout direction.
For extra confirmation, the script uses three filters:
EMA confirmation: Buy trades require the fast EMA to be above the slow EMA, and price must be above the fast EMA. Sell trades require the fast EMA to be below the slow EMA, and price must be below the fast EMA.
RSI confirmation: Buy trades require RSI above 50, showing bullish momentum. Sell trades require RSI below 50, showing bearish momentum.
Stochastic confirmation: Buy trades require the Stochastic K line to be above the D line and below the overbought zone. Sell trades require the K line to be below the D line and above the oversold zone.
A buy entry is triggered when price retests a bullish order block, closes above the midpoint of that order block, and all EMA, RSI, and Stochastic confirmations agree.
A sell entry is triggered when price retests a bearish order block, closes below the midpoint of that order block, and all confirmation indicators agree.
The stop loss is placed beyond the order block, with an ATR-based buffer. For buy trades, the stop loss is below the bullish order block. For sell trades, the stop loss is above the bearish order block.
The take profit is calculated using a fixed risk-to-reward ratio. By default, the target is set at 2:1, meaning the profit target is twice the distance of the stop loss.
In simple terms, this strategy attempts to trade in the direction of institutional momentum after a structure break, but only after price returns to a key order block zone and receives confirmation from trend and momentum indicators. Strategy

Indicator

Indicator

Indicator

Strategy

Indicator

Indicator

1% Gamma Indicator + VPGamma Indicator + VP
Automatically displays key Gamma Exposure (GEX) levels and Volume Profile data for 48 US equities and futures — no manual input required. The indicator switches levels automatically based on the chart symbol.
自動顯示 48 隻美股及期貨的關鍵 Gamma Exposure(GEX)水平與成交量分佈數據,無需手動輸入。指標根據當前圖表標的自動切換對應數據。
Supported symbols 支援標的:
QQQ, SPY, NVDA, AAPL, MSFT, AMZN, TSLA, META, GOOGL, GOOG, IWM, SMH, GLD, TLT, ARM, IBIT, NQ1!, GC1!, MRVL, INTC, COHR, LITE, POWL, CVS, KO, MU, ASTS, CRWV, RKLB, TSM, IREN, ONDS, APT, LAKE, AAOI, CRCL, SNDK, NOW, BRK.B, MUU, QUBT, NKE, VST, CEG, PLTR, BE, BTCUSDT, ETHUSDT
GEX Levels 關鍵水平
🟢 Call Wall(認購牆)
Strongest overhead resistance — dealers are long gamma above this level.
最強上方阻力,做市商在此以上持有正 Gamma。
🔴 Put Wall(認沽牆)
Strongest downside support — dealers are long gamma below this level.
最強下方支撐,做市商在此以下持有正 Gamma。
⚡ GEX Flip(零 Gamma 線)
Zero-gamma boundary. Above = pinned / range-bound. Below = trending / volatile.
臨界水平。價格在上方=區間震盪;在下方=趨勢波動。
⚪ HVL(高波動水平)
High Volatility Level — key pivot zone.
關鍵樞軸區域。
⚪ Max Pain(最大痛苦點)
Strike where option buyers lose the most at expiry. Watch on Opex week.
期權買家在到期日損失最大的行使價,到期週尤為重要。
🟢 VU Trigger(向上觸發)
Breakout / squeeze signal above the Call Wall.
突破 Call Wall 的擠倉訊號。
🔴 VD Trigger(向下觸發)
Breakdown signal below the Put Wall.
跌穿 Put Wall 的破位訊號。
GEX Heatmap 伽瑪熱力圖(right side of chart 圖表右側)
64-bar profile showing GEX intensity at each price strike.
64 格條形圖,顯示各行使價的 GEX 強度。
🟢 Teal = positive gamma (stabilising / mean-reverting force)
青色 = 正 Gamma(穩定 / 均值回歸力)
🔴 Red = negative gamma (trending / amplifying force)
紅色 = 負 Gamma(趨勢延伸 / 波動放大力)
Bright bars = real option strikes; faded bars = interpolated zones.
實色條 = 真實期權行使價;淡色條 = 插值過渡區間。
Volume Profile 成交量分佈
POC — Point of Control / 成交量控制點(成交量最高價格)
VAH — Value Area High / 價值區間上沿
VAL — Value Area Low / 價值區間下沿(70% 成交量所在區域)
Expected Move 預期波動範圍
Orange dashed lines showing VIX-derived expected move to the next monthly Opex (3rd Friday). Updates in real time as VIX changes.
橙色虛線顯示以 VIX 波幅推算的每月 Opex(第三個星期五)前預期波動幅度,隨 VIX 實時更新。
Regime Table 機制判斷(bottom-right 右下角)
Regime Meaning
POS PINNED 正 Gamma 鎖定 Price above GEX Flip — range day, mean-reversion 價格高於零 Gamma 線,預期區間震盪
NEG TRENDING 負 Gamma 趨勢 Price below GEX Flip — momentum, wider swings 價格低於零 Gamma 線,預期趨勢延伸
Day Bias signals 日內偏向訊號:
VU SQUEEZE(向上擠倉)、VD BREAK(向下破位)、ABOVE CALL(突破認購牆)、RANGE DAY(區間日)、PUT BREAK(跌穿認沽牆)、VOLATILE(高波動)
Settings 設定選項
Toggle GEX Flip line / 開關 GEX Flip 水平線
Toggle Pos / Neg gamma heatmap independently / 獨立開關正 / 負 Gamma 熱力圖
Toggle VAL / VAH / POC lines / 開關成交量分佈水平線
Toggle detailed GEX Report table / 開關詳細 GEX 報告表格
Data Source 數據來源
GEX levels are computed from options market data and updated periodically during US market hours. Volume Profile levels are computed from PulseWire intraday data.
GEX 水平由期權市場數據計算,於美股交易時段定期更新。成交量分佈數據來自 PulseWire 日內數據。
Note 注意: This indicator embeds GEX data as snapshots. The last update time is shown in the script header. Unsupported symbols display no levels — no errors, simply hidden.
本指標以數據快照方式嵌入 GEX 水平,數據更新時間顯示於腳本標題。不支援的標的不會顯示任何水平,不影響圖表使用。 Indicator

Advanced First + Red + 12:45 Breakout IndicatorHere's a description you can use when publishing this indicator on PulseWire:
---
**Advanced First Red + 12:45 Breakout Indicator**
This multi-timeframe intraday indicator is built for NSE/BSE traders and combines several powerful confluence levels into a single overlay, helping you identify bias, breakout opportunities, and key institutional price zones — all visible consistently across any chart timeframe.
---
**What this indicator does:**
**🟣 First 5-Min Candle Zone (Purple Cloud)**
Marks the high and low of the opening 9:15 AM candle on the 5-minute timeframe as purple horizontal lines with a shaded cloud between them. When price is trapped inside this zone, the market is range-bound. A breakout above or below signals the start of a directional move.
**🔴 First Red Bar 50% Level (Red Line)**
Identifies the first red (bearish) candle of the day on the 5-minute timeframe and marks its 50% midpoint with a solid red horizontal line. Price above this line = positive/bullish bias. Price below = negative/bearish bias. Resets every trading day.
**🔵 12:45 PM Candle 50% Level (Blue Line)**
Fetches the 12:45 PM candle from the 30-minute timeframe and marks its midpoint with a solid blue line. This level acts as a mid-session bias filter — useful for afternoon trades. Shows "Pending" until 12:45 PM is reached.
**⚫ Gap 50% Level (Grey Line)**
Calculates the gap between yesterday's close and today's open, and marks the exact 50% retracement of that gap with a solid grey line. Colour-coded — lime for gap up, orange for gap down. A key magnet level that price frequently revisits during the session.
**🟢🔴 First Red / 12:45 Breakout Strategy**
The core breakout engine captures either the first red candle of the day or the 12:45 PM candle (configurable) as reference levels. Buy signals trigger when price crosses above the reference high with bullish EMA confirmation. Sell signals trigger on a cross below the reference low with bearish confirmation. Entry, stoploss, and target levels are plotted automatically based on your chosen Risk:Reward ratio.
**📊 Dashboard (Top Right)**
A clean real-time table displays all key levels and bias readings in one place: Reference candle, Ref High/Low, Strategy Bias, EMA Trend Filter, 5M High/Low, 1st Red 50% bias, 12:45 30M 50% bias, Gap direction, and Gap 50% level.
---
**Key Features:**
- All levels fetched via `request.security()` — fully timeframe-independent, visible on 1-min, 3-min, 5-min, 15-min, and higher charts
- Optional EMA trend filter (default 50 EMA) to avoid counter-trend trades
- Toggle each feature on/off independently via inputs
- Right-edge labels on every level showing price and current bias
- 10 built-in alert conditions covering breakouts, bias flips, and gap fills
- Works on any NSE/BSE instrument — index, futures, or stocks
---
**Recommended Timeframes:** 1-min, 3-min, 5-min, 15-min
**Best used with:** Nifty 50, Bank Nifty, Sensex, or liquid large-cap stocks during Indian market hours (9:15 AM – 3:30 PM IST)
---
*Code generated using PineGPT — www.marketcalls.in*
*© algostudio — Published under Mozilla Public License 2.0* Indicator

Macro Structural Run [XP Tactical HUD] Macro Structural Run
Overview
The Macro Structural Run (MSR) is a high-precision trend-following system designed to identify the exact onset of long-term market trends while protecting the user from late entries and sudden "blow-off" exhaustion phases. Unlike standard moving averages that suffer from fixed lag, the MSR uses a Structural Decay Filter that dynamically weights price data based on its "Efficiency Score."
1. The Core Logic: Structural Decay
Standard indicators treat every bar with equal importance or use a fixed exponential decay. The MSR is different. It calculates a Weighted Moving Average where the weight of each historical bar is determined by two factors:
Efficiency Ratio (ER): This measures how "clean" the price movement was. If price moved from point A to point B in a straight line, it is 100% efficient. If it zig-zagged wildly to get there, efficiency is low. The MSR prioritizes "efficient" historical structure.
Temporal Decay: Influence decreases as bars move further into the past, allowing the filter to hold onto strong structural foundations while remaining reactive to new data.
2. High-Precision On-Set Detection
To solve the problem of entering a move too late, the XP Execution engine requires three points of confirmation before an INITIATE_RUN signal is triggered:
Structural Surge: The Efficiency Ratio must be high (default > 60%) and actively rising.
Tactical Proximity: The price must be close to the structural filter (measured in ATR). If the price has already exploded away from its base, the signal is suppressed.
Momentum Flip: The filter must confirm a foundational change in the macro trend direction.
3. Reactive Exhaustion Analysis
A major feature of this system is its ability to detect when a run is about to fail. It monitors for three types of "danger zones":
Volatility Spikes: Identifies sudden, violent bars that are significantly larger than the recent average (True Range vs. ATR).
Parabolic Acceleration: Tracks the rate at which the price is warping away from its structural base.
Efficiency Decay: Flags when the "cleanliness" of the move drops below the Exhaustion Floor.
4. How to Use the Diagnostic HUD
The Diagnostic HUD provides real-time telemetry on the state of the market:
RUN_PRECISION: Shows the current efficiency of the trend. Above 60% is ideal for runs.
BASE_ANCHOR: Tells you how far price is from the structural base. "OPTIMAL" means a safe entry zone.
VOL_RATIO: Monitors for spikes. A ratio above 2.0x indicates high-risk volatility.
LATEST_SIGNAL: A centralized readout of the current trade lifecycle (BULL_INITIATE, EXHAUST_EXIT, or SYNC_LOST).
Instructions for Use
Entry: Look for the INITIATE_RUN labels on the chart or the BULL/BEAR_INITIATE status on the HUD. Ensure the SYNC_STATUS is "OPTIMAL."
Holding: Maintain the position as long as the HUD shows "MACRO_STABLE" and the line color remains Cyan or Pink.
Exit: When the line turns Neon Gold or the HUD displays EXHAUST_EXIT, the structural health of the move has collapsed. This is the tactical signal to take profits or tighten stops.
Settings Breakdown
Macro Lookback: Controls the sensitivity of the long-term path. (50+ for macro runs).
Structural Power: Higher values prioritize "clean" price action and ignore noise.
Spike Sensitivity: Adjusts how reactive the system is to sudden volatility. Lower values are more sensitive.
Disclaimer
This indicator is for educational and informational purposes only. It is not financial advice. Trading involves significant risk, and past performance is not indicative of future results. Always use proper risk management.
Indicator

Discrete Stochastic Volatility Optimal Stopping## Technical Documentation: Discrete Approximation of Bivariate Optimal Stopping Boundaries
### Overview
This document outlines the mathematical methodology for discretizing a continuous-time stochastic volatility model to identify optimal execution boundaries. The algorithm maps an asset's price and variance processes into standardized state spaces to detect joint extrema, triggering execution when predefined statistical thresholds are breached.
---
### 1. Price Process Normalization
To evaluate structural price dislocation, the raw asset price $P_t$ is transformed into a standardized normal state space (Z-score).
**Mathematical Formulation:**
$$Z^{(S)}_t = \frac{P_t - \mu_S}{\sigma_S}$$
Where the sample mean ($\mu_S$) and sample standard deviation ($\sigma_S$) are calculated over an $N$-period lookback window:
* **Sample Mean:** $\mu_S = \frac{1}{N} \sum_{i=0}^{N-1} P_{t-i}$
* **Sample Standard Deviation:** $\sigma_S = \sqrt{\frac{1}{N} \sum_{i=0}^{N-1} (P_{t-i} - \mu_S)^2}$
**Purpose:** This isolates the magnitude of the price deviation relative to its recent equilibrium, providing the orthogonal $x$-axis for the state space.
---
### 2. Instantaneous Variance Estimation
Continuous-time models rely on instantaneous variance, which is unobservable in discrete time. The algorithm approximates this using the annualized rolling realized variance of geometric returns.
**Mathematical Formulation:**
$$v_t = \frac{252}{N} \sum_{i=0}^{N-1} r_{t-i}^2$$
Where the continuously compounded return $r_t$ is defined as:
$$r_t = \ln\left(\frac{P_t}{P_{t-1}}\right)$$
**Purpose:** Assuming the mean daily return is zero ($\mu \approx 0$), the squared log return $r_t^2$ serves as an unbiased estimator of daily variance. The factor $\frac{252}{N}$ standardizes the sum of these squared returns into an annualized volatility metric ($v_t$).
---
### 3. Variance Process Normalization
Because variance $v_t$ is heteroskedastic and mean-reverting, the empirical variance series must also be standardized to evaluate expansion or compression relative to its own baseline.
**Mathematical Formulation:**
$$Z^{(v)}_t = \frac{v_t - \mu_v}{\sigma_v}$$
Where $\mu_v$ and $\sigma_v$ are the $N$-period sample mean and standard deviation of the variance series $v_t$.
**Purpose:** This yields a unitless metric representing the statistical extremity of the current volatility regime, forming the orthogonal $y$-axis of the state space.
---
### 4. Boundary Evaluation Logic
The discrete optimal stopping conditions approximate the analytical Hamilton-Jacobi-Bellman (HJB) boundaries by evaluating the intersection of the two state variables ($Z^{(S)}_t$ and $Z^{(v)}_t$) against arbitrary static thresholds ($\alpha$ for maxima, $\beta$ for minima).
**Entry Condition (Buy):**
Execution is triggered exclusively at the joint minimum of price and variance, defined by the logical intersection:
$$\tau_B = \inf \{ t \ge 0 \mid (Z^{(S)}_t \le \beta_S) \land (Z^{(v)}_t \le \beta_v) \}$$
*Requires price to be heavily discounted while the market regime is highly compressed.*
**Exit Condition (Sell):**
Liquidation is triggered exclusively at the joint maximum, defined by the logical intersection:
$$\tau_S = \inf \{ t \ge \tau_B \mid (Z^{(S)}_t \ge \alpha_S) \land (Z^{(v)}_t \ge \alpha_v) \}$$
*Requires price to be statistically overextended during a regime of extreme variance expansion.* Indicator

HiddenRidder - 2xBB Timelocked + MAs## HiddenRidder - 2xBB Timelocked + MAs##
⚠️ Disclaimer
This indicator is shared for educational purposes only. It is a technical analysis tool and does not guarantee specific win rates or financial success. Always practice strict risk management.
------------------------------
## 🔍 Overview
HiddenRidder - 2xBB Timelocked + MAs is a multi-timeframe trend architecture overlay. It projects macro volatility zones and institutional trend states directly onto lower execution timeframes.
This setup is highly optimized for 0DTE options, futures trading, and swing trades .
Unlike standard Bollinger Bands that track a single period, this script tracks two separate Higher Timeframe (HTF) bands simultaneously: a Fast Bollinger (Length 3) and a Slow Bollinger (Length 9). This allows you to monitor short-term momentum shifts and long-term structural trends from a single chart without switching timeframes.
------------------------------
## 🛠️ Core Features & Logic
* Timelocked Dual Bollinger Bands: Calculates two separate Bollinger Bands locked to a higher timeframe (e.g., Daily) using a 2x Standard Deviation multiplier.
* Fast Bollinger (Length 3): Captures immediate HTF price expansions.
* Slow Bollinger (Length 9): Establishes the macro structural boundaries.
* Dynamic Trend Basis Line: The central slow basis line changes color dynamically. It turns Green when the price trades above it and Red when the price trades below it.
* Hyper-Extension Breakout Clouds: When enabled (Fill Outside BB), the chart floods with color when the price breaks outside the slow 2SD bands.
* Bright Green Cloud: Triggers when the close price breaks above the upper outer band.
* Bright Red Cloud: Triggers when the close price breaks below the lower outer band.
------------------------------
## ⏱️ Timeframe Setup Guide
* Indicator Input Setting: Keep the Bollinger Band lock Timeframe set to Daily (D).
* Execution Chart: Open your main trading chart on the 5-Minute (5M) timeframe.
* The Interface: The wide macro bands will stretch across your fast 5M candles, acting as major institutional support and resistance maps.
------------------------------
## 🚦 The Baseline Filter ( The Golden Rule )
To stay on the right side of the institutional trend on a fast 5M chart, use the center line color as your directional filter:
* If the center line is Green , focus only on Long setups.
* If the center line is Red , focus only on Short setups.
------------------------------
## 🎯 Trade Setups & Strategy Execution##
Strategy 1 : The Mean Reversion (The Snap-Back)
Best for choppy, sideways, or range-bound macro markets.
* Long Setup:
1. The 5M price drops and touches or pierces the Slow Bollinger Lower Band (Length 9).
2. Wait for a 5M bullish reversal candle (e.g., a hammer, bullish engulfing, or long lower wick).
3. Entry: Open of the next candle.
4. Take Profit (TP): The dynamic central basis line.
5. Stop Loss (SL): Just below the recent 5M swing low.
* Short Setup:
1. The 5M price rallies and touches or pierces the Slow Bollinger Upper Band (Length 9).
2. Wait for a 5M bearish reversal candle (e.g., a shooting star, bearish engulfing, or long upper wick).
3. Entry: Open of the next candle.
4. Take Profit (TP): The dynamic central basis line.
5. Stop Loss (SL): Just above the recent 5M swing high.
## Strategy 2 : The Hyper-Extension Breakout (Riding the Cloud)
Best for aggressive, heavy-volume momentum days.
* Long Setup:
1. A 5M candle closes completely above the Slow Bollinger Upper Band.
2. The Bright Green Breakout Cloud floods your screen.
3. Entry: Enter long immediately on the close of that breakout candle.
4. Take Profit (TP): Trail using 5M swing highs, or exit when a 5M candle closes back inside the Fast Bollinger Upper Band (Length 3).
5. Stop Loss (SL): Below the Fast Bollinger Upper Band line.
* Short Setup:
1. A 5M candle closes completely below the Slow Bollinger Lower Band.
2. The Bright Red Breakout Cloud floods your screen.
3. Entry: Enter short immediately on the close of that breakout candle.
4. Take Profit (TP): Trail using 5M swing lows, or exit when a 5M candle closes back inside the Fast Bollinger Lower Band (Length 3).
5. Stop Loss (SL): Above the Fast Bollinger Lower Band line.
------------------------------
## ⚙️ Input Settings Summary
* Bollinger Band lock Timeframe: Select your target higher timeframe (Default: D).
* Length Short: Sets the period for the Fast Bollinger band (Default: 3).
* Length Long: Sets the period for the Slow Bollinger band (Default: 9).
* Fill Outside BB: Turn this on to display the green/red hyper-extension breakout clouds.
=====================
🎁 Bonus Feature : High-tier institutional EMA Ribbon (20/50/200) with custom trend-cloud formatting. It is currently set to invisible by default , keeping the chart clean while hiding a pro-level momentum engine just for my loyal fans. Indicator

AlgoStorm Gamma Exposure Levels (GEX-L)AlgoStorm Gamma Exposure Levels (GEX-L)
A high-performance options market structure visualization tool designed to map total Gamma Exposure (GEX) profiles, Call Walls, Put Walls, and Gamma Flips directly onto your charts using custom-pasted external options chain inputs.
The AlgoStorm Gamma Exposure Levels (GEX-L) indicator is designed for active index and futures traders who track institutional options positioning to map structural support, resistance, and volatility inflection boundaries. It translates raw options chain metrics into actionable on-chart structural lines. By default, it supports mapping across SPX (cash index), ES/MES futures, and SPY ETF charts through localized scaling engines.
CRITICAL DATA INPUT REQUIREMENT — READ BEFORE LOADING
This indicator DOES NOT come with an automatic or built-in options data feed. It operates as a blank visualization engine. To use it, you must copy a standardized 11-value comma-separated (CSV) data string from your external options data provider and paste it manually into the "GEX Data" field inside the indicator settings. The script parses this input to draw static levels for your trading session. It will remain empty until you provide data.
Technical Architecture: Anti-Overlap Stagger Pipeline
Traditional horizontal level indicators frequently suffer from visual clutter and illegible text labels when key options strikes or walls cluster tightly together. To bypass this platform constraint, this script utilizes an advanced multi-array sorting and layout engine:
True Price Isolation: Horizontal level lines are drawn strictly at their accurate options execution strikes, extending across your historical chart data.
Permutation Sorting Pass: The execution engine takes all active inputs and dynamically sorts them from lowest price to highest price on every new market tick.
Algorithmic Staggering Array: A secondary layout pass evaluates the vertical proximity of text tags in your chart margins. If adjacent tags fall below your user-defined point-separation threshold, the text labels are mathematically shifted away from each other along the Y-axis. This ensures that every price label remains completely readable without altering the true location of the price lines.
Features & Functionality
Multi-Tiered Level Layouts: Maps primary macro anchors (Primary Call Wall CW1, Primary Put Wall PW1, and Gamma Flip) using heavy line styling, alongside up to four distinct secondary levels (CW2–CW5 and PW2–PW5) for deeper context into out-of-the-money open interest.
Intelligent Symbol Scaling Engine: Built-in auto-scaling logic bridges index options structure with retail trading instruments. When toggled to SPY mode, the script automatically scales your pasted SPX options data by dividing values by 10 to perfectly align with your ETF chart grid.
Luminance-Sensing Contrast Badges: Features customizable label styles, including a modern solid badge layout. The script calculates the relative luminance of your chosen level colors to automatically determine whether to render black or white text on top of the background badge, preventing visual washout.
Opaque Visibility Overrides: Built with an explicit alpha channel stripping mechanism. Secondary levels can be configured with dimmed, low-opacity line styles to keep your main chart clean, while their text tags remain 100% opaque and sharp inside the margin.
Dynamic Trapped Zone Fills: Renders a background color cloud across the macro zone separating the primary Call Wall and Put Wall. The background dynamically transforms its color state depending on whether the current market price is safely insulated inside the wall boundaries or breaking out into high-volatility territory.
Indicator

Indicator

Indicator

Indicator

Indicator

Volatility Flow & Cycle DivergencesVolatility Flow & Cycle Divergences
General Description
Volatility Flow & Cycle Divergences is an intermarket quantitative analysis tool designed to map liquidity flows, risk regimes, and structural anomalies between the US stock market (S&P 500 / ES) and the options market, represented by the CBOE Volatility Index (VIX).
The indicator is built on the premise that the physiological relationship between the S&P 500 and the VIX is historically inverse (moving in opposite directions roughly 80% of the time). This script does not merely calculate the raw ratio between the two assets; it mathematically isolates the rare moments of monetary asynchrony where this correlation breaks down. These anomalies are frequently the precursors to lasting cyclical reversals or the exhaustion of the primary trend.
Core Features and Filtering Logic
To overcome the issue of false signals typical of traditional oscillators on intermediate timeframes, the script integrates three concurrent proprietary filters:
Intermarket Relative Strength Ratio (VIX/SPX): It calculates the relative speed between the demand for protective insurance (Put options) and the spot price of the equity basket.
Asymmetric Cyclical Pivot Filter: The algorithm for detecting relative highs and lows uses an asymmetric lookback/lookahead range (calibrated by default to 8 periods on the left and 5 on the right). This isolates true macro turning points and eliminates microscopic, temporary intraday spikes.
Momentum Validation (Anti-Inertia Filter): Divergences are not generated purely on a mathematical basis. A divergence on market highs is validated only if the S&P 500 is in a true zone of strength/overbought territory (RSI > 55), while a divergence on market lows requires actual panic selling pressure (RSI < 45). If the market is in a neutral congestion phase, the signal is discarded at the source.
Algorithmic Transparency (Under the Hood)
The indicator executes its analysis by processing three integrated algorithmic engines within the code:
Geometric Pivot Algorithm (ta.pivothigh/low): Constantly scans the historical series of the VIX/SPX Ratio to isolate cyclical peaks and troughs, validating them only if they are surrounded by a precise asymmetry of bar-index (8 to the left, 5 to the right).
Momentum Algorithm (Wilder's RSI): Monitors the first derivative of the S&P 500 price. It does not calculate the classic relative strength on the Ratio itself, but uses the RSI algorithm on the underlying equity index to act as a logical switch (Gatekeeper) for the signals.
Pattern Matching Algorithm (Conditional Logic): A conditional control structure that crosses the spatial-temporal coordinates of price pivots with those of volatility, filtering out false signals based on overbought/oversold regimes.
H ow to Read the Signals on the Chart
The script provides a clean graphical visualization using compact "badges" on the lower panel so it does not obscure the price action:
DD (Distribution Divergence - Red): The S&P 500 prints a new relative high, but the VIX/SPX Ratio shows a higher low or an anomalous support. This means that despite the price rally, institutional investors are accumulating protective hedges due to an ongoing distribution. Potential pullback ahead.
DA (Accumulation Divergence - Green): The S&P 500 updates its period lows amid panic, but the Ratio registers a lower peak compared to the previous one. Implied volatility pressure is exhausting: "smart money" is stopping the hedging process and beginning to accumulate spot positions. Potential cyclical low/bounce in formation.
User Interface (UI) Elements
Integrated Information Dashboard: Positioned at the bottom left with a transparent background to preserve chart real estate. It shows the real-time macro state of the market (RISK-ON or RISK-OFF) based on the position of the Ratio relative to its 20-period moving average, serving as an operational reminder for the divergence rules.
View Toggle: Through the indicator settings panel, you can hide or show the dashboard with a single click.
Operational Advice and Timeframes
This indicator expresses its maximum performance when integrated into a cyclical and multi-day flow analysis logic:
Best Timeframe: 2 Hours (2H) to capture operational swings and cycles lasting 2-3 days.
Macro / Swing Analysis: Daily (1D) to map structural medium-to-long term risk regimes.
Technical Note: We advise against using this on fast timeframes (below the 2-hour chart) due to the algorithmic noise generated by short-term option expirations (0DTE) and the lack of reliable spot VIX calculation during overnight sessions (Globex).
I mportant Disclaimer & Operational Risk Warning
Critical Note: Never use a single indicator to make standalone trading decisions. Always contextualize what the indicator suggests within a broader market framework and combine it with other validation techniques (e.g., Price Action, Market Structure, Volume Profile, or Order Flow). No indicator is infallible, and intermarket divergences represent shifts in probability, not guaranteed certainties.
Italiano
Descrizione Generale
Volatility Flow & Cycle Divergences è uno strumento di analisi intermarket quantitativa progettato per mappare i flussi di liquidità, i regimi di rischio e le anomalie strutturali tra il mercato azionario statunitense (S&P 500 / ES) e il mercato delle opzioni, rappresentato dal CBOE Volatility Index (VIX).
L'indicatore si basa sul presupposto che la relazione fisiologica tra l'S&P 500 e il VIX sia storicamente inversa (circa l'80% delle volte si muovono in direzioni opposte). Questo script non si limita a calcolare il rapporto puro tra i due asset, ma isola matematicamente i rari momenti di asincronia monetaria, in cui questa correlazione si spezza. Tali anomalie sono spesso il precursore di inversioni cicliche durature o di esaurimenti del trend principale.
Caratteristiche Principali e Logica di Filtraggio
Per superare il problema dei falsi segnali tipici degli oscillatori tradizionali sui timeframe intermedi, lo script integra tre filtri proprietari concorrenti:
Rapporto di Forza Relativa Intermarket ($VIX/SPX$):
Calcola la velocità relativa tra la domanda di coperture assicurative (opzioni Put) e il prezzo spot del paniere azionario.
Filtro Ciclico Asimmetrico sui Pivot:
L'algoritmo di rilevamento dei massimi e minimi relativi utilizza un raggio d'azione asimmetrico (calibrato di default a 8 periodi a sinistra e 5 a destra). Questo isola i reali punti di svolta macro ed elimina i microscopici spike estemporanei intra-day.
Validazione del Momentum (Filtro Anti-Inerzia):
Le divergenze non vengono generate su base puramente matematica. Una divergenza sui massimi viene convalidata solo se l'S&P 500 si trova in una reale zona di ipercomprato/forza relativa (RSI > 55), mentre una sui minimi esige una reale pressione di panico (RSI < 45). Se il mercato si trova in una fase di congestione neutra, il segnale viene scartato all'origine.
Come Leggere i Segnali sul Grafico
Lo script restituisce una visualizzazione grafica pulita mediante "badge" compatti sul pannello inferiore per non occultare l'azione del prezzo:
DD (Divergenza di Distribuzione - Rossa): L'S&P 500 stampa un nuovo massimo relativo, ma il Ratio VIX/SPX mostra un minimo crescente o un supporto anomalo. Significa che, nonostante il rialzo del prezzo, gli investitori istituzionali stanno accumulando coperture protettive a causa di una distribuzione in corso. Potenziale storno in arrivo.
DA (Divergenza di Accumulazione - Verde): L'S&P 500 aggiorna i minimi di periodo nel panico, ma il Ratio fa registrare un picco inferiore rispetto al precedente. La pressione della volatilità implicita si sta esaurendo: le "mani forti" smettono di proteggersi e iniziano ad accumulare posizioni spot. Potenziale minimo ciclico/rimbalzo in formazione.
Elementi di Interfaccia Utente (UI)
Dashboard Informativa Integrata:
Posizionata in basso a sinistra con uno sfondo trasparente per preservare il chart real estate. Mostra in tempo reale lo stato macro del mercato (RISK-ON o RISK-OFF) in base alla posizione del Ratio rispetto alla sua media mobile a 20 periodi, fungendo da memorandum operativo per le regole di divergenza.
Interruttore di Vista: Tramite il pannello delle impostazioni è possibile nascondere o mostrare la dashboard con un solo clic.
Consigli Operativi e Timeframe
Questo indicatore esprime il massimo delle sue performance se integrato in una logica di analisi ciclica e di flusso plurigiornaliera:
Timeframe d'elezione: 2 Ore (2H) per catturare oscillazioni e cicli operativi di 2-3 giorni.
Analisi Macro / Swing: Giornaliero (1D) per mappare i regimi di rischio strutturali di medio-lungo termine.
Nota tecnica: Si sconsiglia l'utilizzo sui timeframe rapidi a causa del rumore algoritmico generato dalle scadenze opzioni a brevissimo termine (0DTE) e della mancanza di calcolo del VIX spot durante le sessioni notturne.
Avvertenza Importante e Rischio Operativo
Nota Critica : Non utilizzare mai un singolo indicatore per prendere decisioni operative autonome. Contestualizza sempre ciò che l'indicatore suggerisce all'interno di un quadro di mercato più ampio e combinalo con altre tecniche di validazione (ad es. Price Action, Struttura di Mercato, Volume Profile o Order Flow). Nessun indicatore è infallibile e le divergenze intermarket rappresentano variazioni nelle probabilità, non certezze garantite. Indicator

Indicator

[Thies] 0DTE SPY+ES Volume, VIX1D, Volume Delta0DTE Tape Read: Combining SPY + ES Volume, VIX1D, and Volume Delta for Same-Day Options Trading
Why I Built This
If you trade 0DTE options on SP:SPX or AMEX:SPY SPY, you already know raw SPY volume alone gives you an incomplete picture. The real flow lives across multiple instruments:
SPY captures retail and ETF arbitrage
ES futures lead price discovery and show institutional hedging
VIX1D tells you the implied vol regime for the day you're actually trading
This indicator combines all three into a single pane so you can read the tape the way it actually trades, not the way a single-symbol volume bar suggests.
What the Indicator Shows
SPY Volume (blue columns)
Retail flow, ETF arb, and dealer hedging on the cash side.
ES Volume (orange columns)
Institutional flow and the leading instrument for S&P price discovery. ES trades nearly 24 hours, so it shows you where the real money is positioned before the cash open and through the close.
Combined Volume Line (purple) with Moving Average
Total flow across both instruments. The MA gives you a baseline to spot real surges versus noise.
Volume Delta Histogram (green/red)
A signed-volume proxy using close vs open on each bar. Green means net buying pressure, red means net selling. Smoothed with an EMA to filter single-bar noise.
VIX1D Overlay (yellow)
The 1-day VIX. This is the single most important context metric for 0DTE that most traders ignore. It tells you what implied vol is pricing for today specifically, not the 30-day VIX which is mostly irrelevant for same-day expiry.
A dashboard in the top-right shows live values for each metric.
Why This Beats Single-Symbol Volume
Three reasons SPY volume alone falls short for 0DTE:
SPX dominates institutional 0DTE flow. Big players use SPX for cash settlement and 60/40 tax treatment. ES futures are the closest free proxy for that flow.
Overnight and pre-market context. ES tells you the setup before SPY even opens.
Dealer hedging happens in futures. When 0DTE gamma forces hedging, it shows up in ES first.
VIX1D rounds it out because 0DTE pricing is driven by 1-day implied vol, not the headline VIX number on financial TV.
How to Trade With It
Setup
Timeframe: 1m or 5m on SPY or ES
Active hours: 9:30 to 10:30 and 14:00 to 16:00 ET
Skip the lunch chop window from roughly 11:30 to 13:30
The Core Read
Bullish alignment: Green delta histogram rising + combined volume above MA + VIX1D stable or falling. Trade calls or call spreads.
Bearish alignment: Red delta histogram falling + combined volume above MA + VIX1D rising. Trade puts or put spreads.
Stand down: Delta near zero + volume below MA. Theta will eat you. No trade.
High-Probability Windows
Opening Drive (9:30 to 10:00)
A first-15-minute volume spike with delta in one direction signals a trend day. Enter on the first pullback to the combined volume MA. If VIX1D is above 18, widen your stop and cut your size.
Reversal Window (10:00 to 10:30)
Watch for delta to flip against the opening move on rising volume. This is statistically the best risk/reward window of the day. Reversal setups here have a real edge if the histogram confirms.
Fed/News Pivot (14:00)
On Fed days or scheduled releases, look for the volume surge plus clear delta direction and follow it. If VIX1D spikes and delta flips, fade the initial knee-jerk move.
MOC Ramp (15:00 to 16:00)
0DTE gamma is at its peak. Sustained delta in one direction tends to accelerate into the close. Exit by 15:45 unless you're actively scalping into the bell.
Strike Selection by VIX1D
VIX1D below 12: ATM or one strike OTM. Expect small moves, take quick profits.
VIX1D 12 to 18: Two to three strikes OTM. Normal-range day.
VIX1D above 20: Five-plus strikes OTM. Fat tails are likely, premiums are rich, sizing should drop.
Risk Rules
Risk 1 to 2% of account per trade. 0DTE goes to zero faster than you can react.
Stop out if delta flips against you or price breaks the combined volume MA.
Target 50 to 100% on premium. Don't get greedy on same-day expiry.
No new positions after 15:45.
Three losers in a row, you're done for the day. Walk away.
Quick Decision Tree
Is combined volume above its MA? If no, no trade.
Is delta strong and aligned with price? If yes, trade with trend.
Is delta flipping opposite to price on rising volume? If yes, reversal setup.
Is delta flat? No trade.
What This Indicator Is Not
It's not a signal generator. It's a confirmation and context tool. The edge comes from using it to say no to 80% of setups you would have taken on raw volume alone.
Combine it with your own price action read, key levels, and gamma exposure data for full context.
Known Limitations
The delta calculation uses close vs open as a sign proxy. True signed volume requires tick data Pine Script can't access. The proxy is directionally useful but not exact.
ES1! is the continuous front-month contract. Roll dynamics can create small discontinuities on roll dates.
VIX1D only goes back to mid-2023, so backtests on older data won't include it.
Inputs You Can Customize
Symbols for SPY, ES, and VIX1D
(defaults to AMEX:SPY, CME_MINI:ES1!, CBOE:VIX1D)
Toggle each plot on/off
Moving average length for combined volume
Smoothing length for the volume delta histogram
Final Thoughts
0DTE is a game of probabilities, timing, and discipline.
Most retail traders blow up because they trade size based on raw price action without understanding the flow underneath or the vol regime they're inside of.
This indicator forces you to look at all three at once:
Where the money is
Which direction it's going
How much movement the market is pricing in
Use it as a filter, not a crystal ball.
The best trades will scream at you when every layer aligns. Everything else is noise.
If you found this useful, hit boost, drop a comment with how you're using it, and follow for more tools focused on real-world execution. Indicator

Put Credit Spread Combined Price Tracker📊 Description
The Put Credit Spread Combined Price Tracker is an advanced options visualization and risk assessment workspace designed specifically for multi-position credit spread sellers. Instead of guessing your proximity to risk, this indicator maps your mathematical break-even thresholds directly onto your live asset candle chart while maintaining a real-time Black-Scholes Options Pricing Matrix Dashboard.
This tool is ideal for tracking individual or nested index options structures (such as SPX, NDX, or RUT) where precision risk boundary management is critical.
________________________________________
⚙️ How to Set Up Your Spreads
1. Add to Chart: Load the indicator on your target ticker (e.g., SPX).
2. Open Settings: Click the gear icon on the indicator name to open the configuration menu.
3. Configure Your Engine:
o Keep Enable Automated Volatility checked to let the script automatically extract a continuous historical volatility proxy, or uncheck it to key in your broker's implied volatility (IV %) reading manually.
4. Input Your Positions (Supports up to 4 Parallel Trades):
o Check the Box to enable a specific spread position.
o Short/Long Put Strike: Key in your exact leg boundaries.
o Premium Received: Enter the net premium collected per spread block (e.g., 5.00 for a $500 credit).
o Contracts Quantity: Enter your position size.
o Start/Exp Date: Key in your precise calendar execution parameters. The indicator automatically bounds the line drawings to your trade's specific lifecycle window.
________________________________________
📉 Reading the Chart Visuals
• Dashed Break-Even Lines: The script removes clutter by stripping out raw strike lines. Instead, it plots the absolute net financial break-even floor for each position (Short Strike - Premium Collected). If the market candles drop below this dashed line at expiration, the position enters a net loss state.
• Right-End Anchored Labels: Each active position features a dedicated text flag pinned directly to the right margin of your screen, letting you instantly match a specific break-even line to its designated position entry.
________________________________________
🧮 Understanding the Dashboard Table (Bottom-Right)
The tracking matrix evaluates your positions dynamically using a full Black-Scholes Options Pricing model loop on every price tick:
• Strikes (S/L): Displays your structured position boundaries for quick auditing.
• Current Mark: Shows what the option spread is worth right now in the open market before expiry, modeling continuous time decay (\(\theta \)) and underlying spot movements.
• Live Open P&L: Replicates your broker's dashboard. It dynamically updates using (Net Credit - Current Mark Value) * 100 * Qty. Cells turn Green for an open profit and Red for an open loss.
• Position Delta: Displays your aggregate Greeks exposure. Since put credit spreads are directionally bullish, this value will calculate as a net positive number.
• Current IV: Shows the exact annualized volatility proxy percentage fueling your options pricing calculations.
• Days Left: Counts down the exact localized time window remaining before contract expiration.
________________________________________
Indicator

Indicator

Indicator
