อินดิเคเตอร์ Pine Script®
Option
VolEdge: VRP GaugeVOLEDGE: VRP GAUGE — Is option premium rich or thin right now?
Before you sell a single option, you should know the answer to one question: are options overpriced relative to what the market is actually doing?
The Variance Risk Premium answers this. It is the single most important macro-level number for anyone who sells options for income.
Also note that reversal from rich to kind of poorer premiums tends to show market reversals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IT DOES
Displays the Variance Risk Premium: the spread between implied volatility (VIX) and realized volatility (30-day historical vol on the S&P 500).
VRP = VIX minus HV30
When VRP is large and positive, options are expensive relative to actual market movement. Premium sellers have a statistical edge — they are being paid more than the risk they are taking on.
When VRP is near zero or negative, options are fairly priced or cheap. Selling offers little edge or no edge at all. Buying vol may be the better play.
The indicator shows the VRP value, its percentile rank over the last 90 days (configurable), a visual gauge, the underlying components (VIX and HV30), the 5-day trend, and a plain-language strategy interpretation.
It also plots a color-coded VRP histogram in its own chart pane so you can see how premium richness has evolved over time.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY VRP MATTERS
Most retail options traders check IV Rank on individual stocks — "is AAPL's IV high relative to its own history?" That is a useful question, but it misses the bigger picture.
VRP answers the macro question: "Is it a good day to sell options at all?"
When VIX is 20 and SPX has been realizing 20% annualized vol, there is no premium to harvest. VRP is near zero. You are selling options at fair value and taking on risk for no statistical edge.
When VIX is 20 and SPX has been realizing 12% annualized vol, VRP is +8. Options are significantly overpriced. Every strangle, iron condor, and short put you sell has a built-in statistical edge because the market is pricing in more movement than is actually occurring.
This is the fundamental asymmetry that drives institutional premium selling. Implied volatility exceeds realized volatility roughly 85% of the time — that is the variance risk premium. But the size of that premium varies enormously. Selling when VRP is rich compounds returns. Selling when VRP is thin or negative erodes them.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VRP CLASSIFICATION — FIVE LEVELS
RICH (VRP above 5, percentile above 75th):
Premium is meaningfully overpriced relative to realized vol. This is the sweet spot for premium sellers. Options are expensive, and the market is not moving as much as options pricing implies. Strangles, iron condors, short puts, and credit spreads all have favorable expected value. This is when you can be most aggressive with premium selling — within your normal risk management rules.
ABOVE AVERAGE (VRP above 5, percentile 50th–75th):
Premium is above its recent average but not at extremes. Selling conditions are favorable. Standard position sizing applies. You have an edge, but it is not as large as during RICH periods.
FAIR (VRP between 0 and 5, percentile 25th–75th):
Premium is roughly in line with realized vol. There is a small edge to selling, but it is modest. Be selective — only sell on stocks with individually elevated IV rank. Avoid aggressive sizing. This is the "be patient" zone.
THIN (VRP between 0 and 5, percentile below 25th):
Premium is below its recent average. The edge from selling is minimal. This is a good time to reduce premium selling activity, tighten existing positions, or wait for better conditions. If you do sell, stick to the highest-conviction setups only.
NEGATIVE (VRP below 0):
Options are cheap relative to realized vol. The market is moving more than options pricing implies. This is rare and typically occurs during fast-moving selloffs where realized vol spikes faster than VIX. Selling premium here is unfavorable — you are being paid less than the risk. Consider buying vol instead: long straddles, debit spreads, or VIX calls.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE IT — PRACTICAL WORKFLOW
Daily pre-market check:
Before entering any premium selling trade, glance at the VRP Gauge. If it reads RICH or ABOVE AVG, you have a green light to sell premium at normal or slightly increased size. If it reads FAIR, be selective. If it reads THIN or NEGATIVE, reduce activity or pivot to directional or long-vol strategies.
Combining with individual stock IV Rank:
The VRP Gauge tells you about the macro premium environment. Individual stock IV rank tells you about that specific stock. The best setup is: VRP RICH (macro edge) plus stock IV rank above 50th percentile (stock-level edge). Selling premium when both macro and stock-level conditions are favorable stacks the odds meaningfully in your favor.
Combining with the Vol Weather Report:
VRP RICH during a Normal or Low vol regime is the highest-confidence premium selling environment. VRP RICH during an Elevated or Crisis regime means premiums are rich but so is risk — size down accordingly.
Using the percentile reading:
The raw VRP number is useful, but the percentile tells you context. A VRP of +6 might be average in one market environment and exceptional in another. The percentile rank over the last 90 days (configurable) tells you whether today's VRP is historically rich or normal for recent conditions.
Using the 5-day trend:
VRP rising means the edge for sellers is improving — implied vol is expanding faster than realized vol, or realized vol is declining while VIX holds steady. VRP falling means the edge is shrinking. A falling VRP during a low-vol regime is a caution signal: realized vol may be catching up to implied vol, often before a volatility expansion.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IS ON THE DASHBOARD
Row 1 — VRP classification badge: RICH / ABOVE AVG / FAIR / THIN / NEGATIVE with color-coded background
Row 2 — VRP value: the headline number (e.g. +7.24) in large text
Row 3 — Visual gauge bar: fills from left to right as VRP increases, colored by classification
Row 4 — Percentile rank: where today's VRP sits relative to the last 90 days (configurable)
Row 5 — Implied vol: current VIX level
Row 6 — Realized vol: HV30 (or configurable lookback) calculated on SPX
Row 7 — 5-day trend: Rising / Stable / Falling, with the value from 5 days ago
Row 8 — Strategy context: plain-language interpretation of current VRP conditions
Chart pane: VRP histogram showing the daily VRP value over time. Green bars = rich, yellow = fair, red = negative. Reference lines at 0 (breakeven), +5 (rich threshold), and -2 (deeply negative).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE CALCULATION
Realized volatility (HV30):
Standard deviation of daily log returns on the S&P 500 over the last 30 trading days, annualized by multiplying by the square root of 252.
HV = stdev(ln(close / close_previous), 30) * sqrt(252) * 100
Variance Risk Premium:
VRP = VIX - HV30
Percentile rank:
Counts what percentage of VRP values over the lookback period (default 90 days) were lower than today's reading. A reading of 82 means today's VRP is higher than 82% of the last 90 days.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS
Realized Vol Lookback: number of days for HV calculation (default 30, range 10–60)
VRP Percentile Lookback: number of days for percentile ranking (default 90, range 30–252)
Show VRP Histogram: toggle the chart-pane histogram on or off
Show Visual Gauge Bar: toggle the gauge bar in the table on or off
Table position: choose where the panel appears
Text size: Small / Normal / Large
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERTS
VRP Rich — fires when VRP crosses above 5 and is in the top quartile. Premium selling conditions are strong.
VRP Thin — fires when VRP drops below 2. Selling edge is diminishing.
VRP Negative — fires when VRP crosses below zero. Options are cheap vs realized vol.
VRP 90th+ Percentile — fires when VRP is in the top 10% of its recent range. Exceptionally rich premium.
VRP Bottom 10th Percentile — fires when VRP is in the bottom 10% of its recent range. Exceptionally thin premium.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT MAKES THIS DIFFERENT
Several TradingView scripts calculate historical volatility. A few compare VIX to HV. None of them:
— Present VRP with a percentile rank for historical context
— Classify VRP into actionable categories (Rich / Fair / Thin / Negative)
— Show the 5-day trend in the premium environment
— Provide a strategy context sentence for each classification
— Include a visual gauge and color-coded histogram for quick pattern recognition
The Variance Risk Premium is an institutional-grade signal used by professional options market makers and vol funds as a core input to their selling decisions. This indicator makes it accessible to any options trader with a TradingView account.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ACADEMIC BACKGROUND
The variance risk premium — the tendency of implied volatility to exceed realized volatility — is one of the most documented phenomena in options markets. Key findings:
Implied vol exceeds realized vol approximately 85% of the time across major equity indices. The average VRP on the S&P 500 has been roughly 3–5 percentage points over multi-decade samples, but varies widely from negative to 15+ during stress periods.
The VRP is compensation for bearing volatility risk. When markets are calm, investors overpay for downside protection (puts), which inflates VIX relative to what actually happens. Premium sellers harvest this overpayment.
However, the VRP inverts during fast crashes when realized vol spikes above implied vol. This is exactly when premium sellers take their largest losses. Monitoring VRP in real time — not just knowing it exists on average — is critical for avoiding the trap of selling into a thin or negative VRP environment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT THIS INDICATOR IS NOT
It is not a timing signal for individual trades. VRP tells you the macro premium environment, not which stock to sell or when to enter.
It is not a guarantee of profitability. VRP being RICH means the odds favor sellers on average, but individual trades can still lose. Risk management still applies.
It uses VIX as the implied vol proxy and HV30 on SPX as the realized vol proxy. These are standard institutional measures, but they are not perfect representations of the vol surface for every product or expiration. For individual stock premium selling, combine this macro VRP reading with the stock's own IV rank.
It is not financial advice. It is an analytical tool for your own decision-making.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER
This indicator is for educational and informational purposes only. It is not financial advice and should not be used as the sole basis for any trading decision. The variance risk premium is a well-documented statistical phenomenon, but past patterns do not guarantee future results. Options trading involves substantial risk of loss. Always do your own research and consider consulting a licensed financial advisor.
อินดิเคเตอร์ Pine Script®
Arbitrage Scanner Pro [Multi-Asset Dashboard]⚡ Arbitrage Scanner Pro
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 OVERVIEW
Arbitrage Scanner Pro is a multi-asset monitoring and arbitrage detection system that displays 3 assets simultaneously on one chart. It detects trend divergences between correlated assets, identifies arbitrage opportunities in real-time, and uses speed simulation to make indicators react as if running on sub-minute timeframes (10s, 15s, 30s).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 HOW IT WORKS
🔹 Speed Simulation Engine
TradingView's minimum timeframe is 1 minute. This indicator mathematically scales indicator parameters to simulate faster reactions:
• Normal (1m) → Standard indicator behavior
• Simulate 30s → Parameters divided by 2 (2x faster reactions)
• Simulate 15s → Parameters divided by 4 (4x faster reactions)
• Simulate 10s → Parameters divided by 6 (6x faster reactions)
Example in 15s mode: EMA 20 becomes EMA 5, RSI 14 becomes RSI 4, Supertrend Length 5 becomes 1.
🔹 Signal Logic
Each asset runs the same strategy independently using its own price data:
LONG conditions (all must be true):
✅ Supertrend = Bullish (green)
✅ Close > EMA of Highs (breakout above channel)
✅ RSI > 60 (strong momentum)
✅ RSI > RSI Moving Average (momentum accelerating)
✅ Supertrend outside EMA channel (trending, not choppy)
SHORT conditions (all must be true):
✅ Supertrend = Bearish (red)
✅ Close < EMA of Lows (breakdown below channel)
✅ Supertrend outside EMA channel (trending, not choppy)
The "Supertrend outside EMA channel" filter is the key innovation — it eliminates false signals during sideways consolidation by only allowing signals when the market shows a clean directional trend.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 MULTI-ASSET DISPLAY
The indicator creates a stacked 3-panel layout in a single pane:
• Asset A (Main) → Your chart's symbol with overlay indicators
• Asset B (Secondary) → Normalized candles in 0-100 range with full OHLC
• Asset C (Third) → Normalized candles shifted below with adjustable gap
Each secondary asset displays:
📊 Ticker name (e.g., ETHUSDT)
🏛️ Exchange/broker name (e.g., BINANCE) — auto-parsed from symbol
💲 Live price with up to 4 decimal precision
📈 Bar-to-bar percentage change with color coding
Price normalization formula:
Normalized = (Price - 200-bar Low) ÷ (200-bar High - 200-bar Low) × 100
All indicators (EMA channels, Supertrend) are also normalized to the same scale.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 ARBITRAGE DETECTION
The core feature — compares trend directions and signal timing across all 3 assets.
🔹 Signal Divergence (strongest signal):
Fires when two assets generate OPPOSITE signals on the same bar.
Example: Asset A = LONG while Asset B = SHORT → ⚠️ Arbitrage Opportunity
🔹 Trend Divergence (ongoing):
Tracks when assets have different Supertrend directions.
Measured as a Divergence Score from 0/3 (all aligned) to 3/3 (all different).
🔹 Convergence Detection:
Fires when ALL 3 assets trigger the same signal simultaneously.
All LONG → Maximum bullish confirmation.
All SHORT → Maximum bearish confirmation.
🔹 Visual Feedback:
• Yellow background flash → Signal divergence detected
• Green background flash → All assets triggered LONG
• Pink background flash → All assets triggered SHORT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 DASHBOARD
The professional dashboard table shows real-time data for all assets:
• ASSET → Parsed ticker name with emoji identifier
• EXCHANGE → Auto-detected exchange/broker (BINANCE, COINBASE, FX, etc.)
• PRICE → Live close price
• CHANGE → Bar-to-bar % change (green/red)
• TREND → Supertrend direction (▲ BULL / ▼ BEAR)
• SIGNAL → Current state (🚀 LONG! / 🔻 SHORT! / 🟢 Long / 🔴 Short / ⚪ Neutral)
Arbitrage Status Section:
• Overall divergence assessment with descriptive message
• Pair-by-pair comparison (A↔B, A↔C, B↔C) — DIVERGED or ALIGNED
• RSI values for all 3 assets side-by-side
• Divergence score (0/3 to 3/3)
Dashboard size, position, and label sizes are all adjustable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
🔹 Speed Mode:
Scan Speed → Normal (1m) / Simulate 30s / Simulate 15s / Simulate 10s
🔹 Detection Settings:
Trend Detection Length → Supertrend ATR lookback (default: 5)
Sensitivity Factor → Supertrend ATR multiplier (default: 1.0)
Channel Length → EMA lookback for high/low channel (default: 20)
Momentum Length → RSI period (default: 14)
🔹 Asset Configuration:
Asset B and Asset C can be independently enabled/disabled with custom symbols and candle colors.
🔹 Display Settings:
Show Trend Overlays → Toggle EMA and Supertrend on secondary charts
Signal Style → Labels / Arrows / Both
Gap Between Charts → 80 to 500 (vertical spacing)
Signal Label Offset → Distance of signal labels from candles
🔹 Size Settings:
Dashboard Text Size → Tiny / Small / Normal / Large
Chart Label Size → Tiny / Small / Normal / Large / Huge
Signal Label Size → Tiny / Small / Normal / Large / Huge
Dashboard Position → 9 positions (Top/Mid/Bottom × Left/Center/Right)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERTS (12 Total)
Individual (6):
• Asset A LONG / SHORT
• Asset B LONG / SHORT
• Asset C LONG / SHORT
Combined (2):
• ANY asset LONG
• ANY asset SHORT
Arbitrage-Specific (4):
• ⚠️ Signal Divergence detected (opposite signals on same bar)
• 🟢 All 3 assets LONG convergence
• 🔴 All 3 assets SHORT convergence
• 🔶 High divergence score (2+/3)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 USE CASES
🔹 Cross-Exchange Arbitrage:
Monitor BTC on BINANCE, COINBASE, and BYBIT simultaneously. When one exchange shows LONG while another shows SHORT, a price discrepancy exists.
🔹 Crypto Correlation Trading:
Watch BTC, ETH, and SOL together. BTC often leads — when BTC triggers LONG first, altcoins typically follow. Enter altcoins on confirmation.
🔹 Forex Multi-Pair Scanning:
Monitor EURUSD, GBPUSD, and USDJPY. When EUR and GBP both show LONG while JPY shows SHORT, it confirms broad USD weakness.
🔹 Index + Sector Rotation:
Track S&P 500 futures alongside QQQ (tech) and XLF (financials). Divergences between sectors reveal which is driving the market.
🔹 News Event Reaction:
Monitor Gold, Dollar Index, and 10-Year Yields during economic releases. The 10s simulation catches reactions within the first minute candle.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT NOTES
• This uses 1-minute OHLC data — it does NOT create actual sub-minute candles
• Signals fire at bar close, not mid-candle
• The 0-100 normalization can make small moves appear larger
• This is a detection tool — trade execution requires separate infrastructure
• Best used on 1-minute charts where the speed simulation is calibrated
• Always combine with proper risk management
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 RECOMMENDED SETTINGS
Crypto (High Volatility): Sim 15s, Length 5, Factor 1.0, Channel 20
Crypto (Low Volatility): Sim 30s, Length 7, Factor 1.5, Channel 25
Forex Majors: Sim 30s, Length 5, Factor 1.5, Channel 20
Stock Indices: Sim 30s, Length 5, Factor 1.0, Channel 15
News Events: Sim 10s, Length 3, Factor 0.5, Channel 10
อินดิเคเตอร์ Pine Script®
All in one Dynamic Trade SessionsAll in one Dynamic Trade Sessions:
Trend Filter: Uses the 50 EMA to determine the main direction (Buy only above, Sell only below).
Momentum Entry (from MACD-RSI): Uses the MACD (12, 26, 9) for the entry crossover signal.
Confirmation (from ---Momentum): Uses RSI (Length 7) to ensure the move has strength.
Exits (from Breakout Detector): Uses ATR (14) to automatically calculate your Stop Loss and Take Profit levels.
All in one Dynamic Trade Sessions identifies "Trade Sessions" dynamically. A "Session" starts when volume and momentum kick in (Green/Red background) and ends when the market goes into a chop (Grey background).
How V5 Works (The "Breakdown" Logic)
Session Start: When the Grey Zone ends (RSI breaks out of 45-55) AND Volume spikes. The background turns Blue.
Session End: When the Grey Zone returns (RSI falls back between 45-55). The background turns Grey.
อินดิเคเตอร์ Pine Script®
Virgin-VWAPThis draws the Virgin levels of VWAP.
It gives a visual representation of Volume-Weighted Gap Map.
Visual "Fill": It looks like a "Gap Fill" indicator. The lines will look like rectangles or "beams" shooting across the chart, stopping exactly where the market "filled" that price level.
Trimmed lines: The virgin line gets trimmed once touched. This tells you: "This level was hit, it might still be support/resistance, but the 'Virgin' status is gone."
Terminal Labels: A vigin vwap lines carries the price label so ones can see the strike's value at a glance.
Clean Forward Space: Because the lines stop when touched, your "future" chart (the empty space to the right) won't be cluttered with old lines that are no longer relevant. You will only see the lines for levels that haven't been hit yet extending into the empty space.
Was built for NSE options in mind, seeing those "beams" of historical value stop exactly where price met them is a powerful way to visualize where the market has found "fair value" versus where there are still "unfilled orders."
PS: Built with Gemini 3!!
อินดิเคเตอร์ Pine Script®
Max Pain Options [QuantLabs] v5 (Balanced)Institutional Grade Options Analysis: Max Pain, Gamma & Pin Risk
For years, TradingView users have been flying blind without access to Options Chain data. QuantLabs: Max Pain & Gamma Exposure changes that. This is not just a support/resistance indicator—it is a sophisticated, algorithmic model that reverse-engineers the incentives of Market Makers using synthetic Black-Scholes logic.
This tool visualizes the "invisible hand" of the market: the hedging requirements of large dealers who are forced to buy or sell to keep their books neutral.
CORE FEATURES:
🔴 Max Pain Gravity Model The bright red line represents the "Max Pain" strike—the price level where the maximum amount of Options Open Interest (Calls + Puts) expires worthless.
Theory: As OpEx (Expiration) approaches, Market Makers maximize profits by pinning the price to this level.
Strategy: Use this as a mean-reversion target. If price is far away, look for a snap-back to the red line.
🟣 Gamma Exposure Profiles (The Purple Lines) These neon histograms show you the estimated "Gamma Walls."
Long Gamma: Dealers trade against the trend (stabilizing price).
Short Gamma: Dealers trade with the trend (accelerating volatility).
Visual: The larger the purple bar, the harder it will be for price to break through that level.
📦 Algorithmic "Pin Risk" Zones The dashed red box highlights the "Kill Zone." When price enters this area near expiration, volatility often dies as dealers pin the asset to kill retail premiums.
Warning: Do not expect breakouts while inside the Pin Zone.
📊 Institutional HUD A clean, non-intrusive dashboard provides real-time Greeks and risk analysis:
Pin Risk: High/Medium/Low probability of a pinned close.
Exp Mode: Detects if the market is in "Short Gamma" (Squeeze territory) or "Long Gamma" (Chop territory).
HOW IT WORKS (The Math): Since live options data is not available via Pine Script, this engine uses a proprietary Synthetic OI Distribution Model. It inputs Volume, Volatility (IV), and Time-to-Expiry into a modified Black-Scholes equation to probability-map where the heavy open interest likely sits.
SETTINGS & CUSTOMIZATION:
Responsiveness: Tuned for the "Goldilocks Zone" (Spread: 12, Decay: 22) to catch local liquidity walls without over-fitting.
Visuals: Designed for Dark Mode. High-contrast Neon aesthetics for maximum readability.
อินดิเคเตอร์ Pine Script®
I4I Inside Vortex Strike RateThis indicator identifies what I call an "Inside Vortex": It's similar to a Doji but more strict in having to be inside a keltner and also have a lower ATR than a blended average.
The bar itself is not that special. But it indicates that a potential big move might come in the next 2 periods.
After the patter: It then looks at what I call the Market Maker High and Low: A % of a blended ATR. It then looks back 100-200 or more bars and calculates the overall strike % in history for the High and low after the pattern happens.
This allows us to know how often these levels are hit within the next 2 periods to find if we have any edge on spread, call or put prices or use them as targets.
So its:
Pattern:
Levels
Strike Rate.
Very unique and EXTREME useful. Especially for options traders.
อินดิเคเตอร์ Pine Script®
ATM Pulse (Arjo)ATM Pulse (Arjo) — Real-Time ATM Options Sentiment & Trend Strength Indicator
Overview
ATM Pulse (Arjo) is an options analytics and trend overlay tool that automatically detects the At-The-Money (ATM) strike for NIFTY, BANKNIFTY , or any selected stock.
It merges Call–Put Volume Ratio (CPVR) sentiment analysis with a Chandelier Exit trend overlay to help traders visualize both market bias and trend direction in a single chart.
Concepts & Logic
ATM Auto Detection
The script calculates the current ATM strike by rounding the underlying’s price to the nearest strike interval (e.g., 50 for NIFTY, 100 for BANKNIFTY). It then requests live option-chain data for that strike.
Call–Put Volume Ratio (CPVR)
The Call-Put Volume Ratio (CPVR) is calculated as the call volume divided by the put volume.
CPVR > 1.25 → Bullish dominance (Calls stronger)
CPVR < 0.75 → Bearish dominance (Puts stronger)
0.75–1.25 → Neutral sentiment
This ratio helps interpret real-time option-market positioning.
Chandelier Exit Trend Overlay
Using Average True Range (ATR) , the overlay plots dynamic trailing stops and visual trend zones:
🟢 Green: Uptrend continuation zone
🔴 Red: Downtrend continuation zone
A color change signals possible momentum reversal.
Combination of CPVR and Chandelier Exit
CPVR gauges option-market sentiment
Chandelier Exit confirms price-action direction
When both align (e.g., bullish CPVR + green Chandelier zone), it strengthens directional conviction. Divergent readings may signal indecision or early reversals.
How to Use
Open any NIFTY, BANKNIFTY , or stocks chart.
Add ATM Pulse (Arjo) to the chart.
Select your expiry date — the script auto-detects the ATM strike and displays:
C: Call LTP
P: Put LTP
CPVR: Call/Put Volume Ratio label
Watch the Chandelier Exit colors:
🟢 Green = Bullish trend
🔴 Red = Bearish trend
Combine CPVR bias + trend color for confirmation.
If CPVR is above 1.25 and trend color green → More bullish activity (Calls stronger).
If CPVR is below 0.75, and trend color red→ More bearish activity (Puts stronger).
If CPVR is between 0.75 and 1.25 and the trend color is gray/mixed → Neutral
Practical Use Case
The script continuously updates the ATM strike, CPVR , and trend overlay in real time.
It provides a clear visual snapshot of how option volumes align with price momentum , ideal for intraday or short-term directional traders.
Disclaimer
This tool is for educational and analytical purposes only.
It does not provide financial advice or guaranteed trading signals.
Happy Trading. ARJO
อินดิเคเตอร์ Pine Script®
Multi Straddle-Strangle ChartThis powerful indicator is designed for options traders who want to visualize and track the combined premium of multiple straddle and strangle strategies in a single, dedicated pane.
Quickly analyze and compare up to five different options strategies at a glance, directly on your chart. This tool is perfect for monitoring volatility, tracking potential profits/losses on a position, and spotting key support and resistance levels based on option premiums.
Key Features:
Plot Up to 5 Strategies: Simultaneously plot any combination of up to 5 straddles or strangles.
Real-Time Data: Fetches live data for both Call and Put options to give you an up-to-the-second view of the combined price.
Dynamic Symbol Generation: Automatically detects the underlying symbol (e.g., NIFTY, BANKNIFTY, stocks) and builds the correct option symbols based on your input.
Customizable Inputs: Easily configure the expiry date, strike prices and line colors for each of the 5 lines.
In-Chart Summary Table: A clean and clear table in the corner of your chart provides a quick summary of each enabled strategy and its current price.
Important Note on Usage:
This tool requires you to input a strike price in all fields, even if you do not plan to use all five lines. This is necessary because of a fundamental rule in the Pine Script language: every input must have a constant, non-empty default value. The indicator is optimized to only fetch data for the lines you have explicitly enabled with the "Enable Line X" checkbox.
อินดิเคเตอร์ Pine Script®
F&O Time Zones – Final Fixed📌 This indicator highlights high-probability intraday time zones used in Indian F&O (Futures & Options) strategies. Ideal for scalping, breakout setups, and trap avoidance.
🕒 Covered Time Zones:
• 9:15 – 9:21 AM → Flash Trades (first 1-minute volatility)
• 9:21 – 9:30 AM → Smart Money Trap (VWAP fakeouts)
• 9:30 – 9:50 AM → Fake Breakout Zone
• 9:50 – 10:15 AM → Institutional Entry Timing
• 10:15 – 10:45 AM → VWAP Range Scalps
• 10:45 – 11:15 AM → Second Trap Zone
• 11:15 – 1:00 PM → Trend Continuation Window
• 1:00 – 1:45 PM → Volatility Compression
• 1:45 – 2:15 PM → Institutional Exit Phase 1
• 2:15 – 2:45 PM → Trend Acceleration / Reversals
• 2:45 – 3:15 PM → Expiry Scalping Zone
• 3:15 – 3:30 PM → Dead Zone (square-off time)
🔧 Features:
✓ Clean vertical lines per zone
✓ Optional label positions (top or bottom)
✓ Adjustable line style, width, and color
🧠 Best used on: NIFTY, BANKNIFTY, FINNIFTY (5-min or lower)
---
🔒 **Disclaimer**:
This script is for **educational purposes only**. It is not financial advice. Trading involves risk. Please consult a professional or do your own research before taking any positions.
—
👤 Script by: **JoanJagan**
🛠️ Built in Pine Script v5
อินดิเคเตอร์ Pine Script®
IV Rank Oscillator by dinvestorqShort Title: IVR OscSlg
Description:
The IV Rank Oscillator is a custom indicator designed to measure and visualize the Implied Volatility (IV) Rank using Historical Volatility (HV) as a proxy. This indicator helps traders determine whether the current volatility level is relatively high or low compared to its historical levels over a specified period.
Key Features :
Historical Volatility (HV) Calculation: Computes the historical volatility based on the standard deviation of logarithmic returns over a user-defined period.
IV Rank Calculation: Normalizes the current HV within the range of the highest and lowest HV values over the past 252 periods (approximately one year) to generate the IV Rank.
IV Rank Visualization: Plots the IV Rank, along with reference lines at 50 (midline), 80 (overbought), and 20 (oversold), making it easy to interpret the relative volatility levels.
Historical Volatility Plot: Optionally plots the Historical Volatility for additional reference.
Usage:
IV Rank : Use the IV Rank to assess the relative level of volatility. High IV Rank values (close to 100) indicate that the current volatility is high relative to its historical range, while low IV Rank values (close to 0) indicate low relative volatility.
Reference Lines: The overbought (80) and oversold (20) lines help identify extreme volatility conditions, aiding in trading decisions.
Example Use Case:
A trader can use the IV Rank Oscillator to identify potential entry and exit points based on the volatility conditions. For instance, a high IV Rank may suggest a period of high market uncertainty, which could be a signal for options traders to consider strategies like selling premium. Conversely, a low IV Rank might indicate a more stable market condition.
Parameters:
HV Calculation Length: Adjustable period length for the historical volatility calculation (default: 20 periods).
This indicator is a powerful tool for options traders, volatility analysts, and any market participant looking to gauge market conditions based on historical volatility patterns.
อินดิเคเตอร์ Pine Script®
NSE Option Chain
This Indicator show Options Data on signal dashboard , that help trader to analyse the market.
Options data consist of two things , Call and Put.
Every Strike has its Call and Put price.
So if user Opens any chart which is traded in options , dashboard will show total 16 Call and 16 Put strikes
8 Above from ATM and 8 Below from ATM.
On left hand side of dashboard there is Call data and on right side there is Put data.
Call side datas are , Call LTP which is latest price of that call strike , Call Chg which is change in points from previous day close and third is Call % which is % change from previous day close.
Same is on put side.
Color code is done based on positive or negative of data. If change or % is negative then color is red else green.
ATM strike data is plotted in bold
Inputs :
Spot Symbol Input for Option dashboard
Expiry date of that option contract
Strike interval between 2 strikes
Reference ATM strike ( user should keep this input as current ATM strike )
How to Use :
If dashboard shows call side is negative and put side is positive then that means market Bearish , because falling market leads to falling price of call and increase in price of Put.
Similarly if put is negative and call is positive then market is bullish.
This dashboard give trend conformation , trader should take other conformation also before taking trade.
อินดิเคเตอร์ Pine Script®
SPX IB Intraday Real TimeThis indicator was designed for traders doing Iron Butterflies intradays with the SPX.
Draw and assemble the picture of an IB with the call and put wings chosen according to the selected configuration. Additionally, it shows both breakevens according to the credit obtained.
The indicator shows the distance, in real time, between the current price of the SPX and the breakevens (calls and puts) that have been selected. This result is shown in percentages and points. In the upper right corner (for calls) and lower right (for puts). The label will change color as the price moves closer or further away from the breakevens.
Setting:
Open Time (Hour): IB opening time.
Open Time (Minute): IB opening minutes.
Open Price: Strike to which the center or body of the IB was opened.
Auto Price Open: If enabled, it will take the strike at the price closest to the SPX.
Wings Width: width of the IB wings.
Credit: Refers to the credit obtained according to the IB that was opened.
Shows Breakeven: Shows breakeven points at expiration based on credit earned.
Add SMAs: Adds the SMAs 8, 20 and 50 to the chart.
Note 1: It is recommended to use TradingView's Dark Theme Color.
Note 2: this indicator will only work in intraday times of less than 30 minutes (1m,2m,5m,10m,15m,30m) and will only show results while the market is open, that is, in real time.
************************************
Spanish Version:
Este indicador fue diseñado para los traders que hacen intradías de Iron Butterflies con el SPX.
Dibuja y arma el cuadro de un IB con las alas call y puts elegidas de acuerdo a la configuración seleccionada. Además, muestra ambos breakevens según el crédito obtenido.
El indicador muestra la distancia, en tiempo real, entre el actual precio del SPX y los breakevens (calls y puts) que se hayan seleccionado. Este resultado se muestra en porcentajes y en puntos. En la esquina superior derecha (para los calls) e inferior derecha (para los puts). El label cambiará de color a medida que el precio se acerque o aleje de los breakevens.
Configuración:
Open Time (Hour): Hora de apertura del IB.
Open Time (Minute): Minutos de apertura del IB.
Open Price: Strike al que se abrió el centro o cuerpo del IB.
Auto Price Open: Si se encuentra habilitado tomará el strike al precio más cercano al SPX.
Wings Width: ancho de las alas del IB.
Credit: Se refiere al crédito obtenido según el IB que se abrió.
Shows Breakeven: Muestra los puntos de breakeven en la expiración según el crédito obtenido.
Add SMAs: Agrega al cuadro las SMA 8, 20 y 50.
Nota 1: se recomienda usar el Dark Theme Color de TradingView.
Nota 2: este indicador solo funcionará en temporalidades intradías menores a 30 minutos (1m,2m,5m,10m,15m,30m) y solo mostrará resultados mientras el mercado esté abierto, o sea en tiempo real.
อินดิเคเตอร์ Pine Script®
Supertrend x4 w/ Cloud FillSuperTrend is one of the most common ATR based trailing stop indicators.
The average true range (ATR) plays an important role in 'Supertrend' as the indicator uses ATR to calculate its value. The ATR indicator signals the degree of price volatility. In this version you can change the ATR calculation method from the settings. Default method is RMA, when the alternative method is SMA.
The indicator is easy to use and gives an accurate reading about an ongoing trend. It is constructed with two parameters, namely period and multiplier.
The implementation of 4 supertrends and cloud fills allows for a better overall picture of the higher and lower timeframe trend one is trading a particular security in.
The default values used while constructing a supertrend indicator is 10 for average true range or trading period.
The key aspect what differentiates this indicator is the Multiplier. The multiplier is based on how much bigger of a range you want to capture. In our case by default, it starts with 2.636 and 3.336 for Set 1 & Set 2 respectively giving a narrow band range or Short Term (ST) timeframe visual. On the other hand, the multipliers for Set 3 & Set 4 goes up to 9.736 and 8.536 for the multiplier respectively giving a large band range or Long Term (LT) timeframe visual.
A ‘Supertrend’ indicator can be used on equities, futures or forex, or even crypto markets and also on minutes, hourly, daily, and weekly charts as well, but generally, it fails in a sideways-moving market. That's why with this implementation it enables one to stay out of the market if they choose to do so when the market is ranging.
This Supertrend indicator is modelled around trends and areas of interest versus buy and sell signals. Therefore, to better understand this indicator, one must calibrate it to one's need first, which means day trader (shorter timeframe) vs swing trader (longer time frame), and then understand how it can be utilized to improve your entries, exits, risk and position sizing.
Example:
In this chart shown above using SPX500:OANDA, 15R Time Frame, we can see that there is at any give time 1 to 4 clouds/bands of Supertrends. These four are called Set 1, Set 2, Set 3 and Set 4 in the indicator. Set's 1 & 2 are considered short term, whereas Set's 3 & 4 are considered long term. The term short and long are subjective based on one's trading style. For instance, if a person is a 1min chart trader, which would be short term, to get an idea of the trend you would have to look at a longer time frame like a 5min for instance. Similarly, in this cases the timeframes = Multiplier value that you set.
Optional Ideas:
+ Apply some basic EMA/SMA indicator script of your choice for easier understanding of the trend or to allow smooth transition to using this indicator.
+ Split the chart into two vertical layouts and applying this same script coupled with xdecow's 2 WWV candle painting script on both the layouts. Now you can use the left side of the chart to show all bearish move candles only (make the bullish candles transparent) and do the opposite for the right side of the chart. This way you enhance focus to just stick to one side at a given time.
Credits:
This indicator is a derivative of the fine work done originally by KivancOzbilgic
Here is the source to his original indicator: ).
Disclaimer:
This indicator and tip is for educational and entertainment purposes only. This not does constitute to financial advice of any sort.
อินดิเคเตอร์ Pine Script®
Options Price CalculatorIn the team, we continue to explore and expand the boundaries of TradingView.
For now, there is not much an options trader can do with options in TradingView.
We wanted to change that and created a simple option pricer.
You can set up in parameters a set of strikes, implied volatility, and days to expiry.
The indicators will take a risk-free rate from US01Y and the underlying price from your current chart.
It will compute prices and greeks for both put and call options.
Thanks to @MUQWISHI for helping code it.
Disclaimer
Please remember that past performance may not indicate future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
อินดิเคเตอร์ Pine Script®
Cox-Ross-Rubinstein Binomial Tree Options Pricing Model [Loxx]Cox-Ross-Rubinstein Binomial Tree Options Pricing Model is an options pricing panel calculated using an N-iteration (limited to 300 in Pine Script due to matrices size limits) "discrete-time" (lattice based) method to approximate the closed-form Black–Scholes formula. Joshi (2008) outlined varying binomial options pricing model furnishes a numerical approach for the valuation of options. Significantly, the American analogue can be estimated using the binomial tree. This indicator is the complex calculation for Binomial option pricing. Most folks take a shortcut and only calculate 2 iterations. I've coded this to allow for up to 300 iterations. This can be used to price American Puts/Calls and European Puts/Calls. I'll be updating this indicator will be updated with additional features over time. If you would like to learn more about options, I suggest you check out the book textbook Options, Futures and other Derivative by John C Hull.
***This indicator only works on the daily timeframe!***
A quick graphic of what this all means:
In the graphic, "n" are the steps, in this case we can do up to 300, in production we'd need to do 5-15K. That's a lot of steps! You can see here how the binomial tree fans out. As I said previously, most folks only calculate 2 steps, here we are calculating up to 300.
Want to learn more about Simple Introduction to Cox, Ross Rubinstein (1979) ?
Watch this short series "Introduction to Basic Cox, Ross and Rubinstein (1979) model."
Limitations of Black Scholes options pricing model
This is a widely used and well-known options pricing model, factors in current stock price, options strike price, time until expiration (denoted as a percent of a year), and risk-free interest rates. The Black-Scholes Model is quick in calculating any number of option prices. But the model cannot accurately calculate American options, since it only considers the price at an option's expiration date. American options are those that the owner may exercise at any time up to and including the expiration day.
What are Binomial Trees in options pricing?
A useful and very popular technique for pricing an option involves constructing a binomial tree. This is a diagram representing different possible paths that might be followed by the stock price over the life of an option. The underlying assumption is that the stock price follows a random walk. In each time step, it has a certain probability of moving up by a certain percentage amount and a certain probability of moving down by a certain percentage amount. In the limit, as the time step becomes smaller, this model is the same as the Black–Scholes–Merton model.
What is the Binomial options pricing model ?
This model uses a tree diagram with volatility factored in at each level to show all possible paths an option's price can take, then works backward to determine one price. The benefit of the Binomial Model is that you can revisit it at any point for the possibility of early exercise. Early exercise is executing the contract's actions at its strike price before the contract's expiration. Early exercise only happens in American-style options. However, the calculations involved in this model take a long time to determine, so this model isn't the best in rushed situations.
What is the Cox-Ross-Rubinstein Model?
The Cox-Ross-Rubinstein binomial model can be used to price European and American options on stocks without dividends, stocks and stock indexes paying a continuous dividend yield, futures, and currency options. Option pricing is done by working backwards, starting at the terminal date. Here we know all the possible values of the underlying price. For each of these, we calculate the payoffs from the derivative, and find what the set of possible derivative prices is one period before. Given these, we can find the option one period before this again, and so on. Working ones way down to the root of the tree, the option price is found as the derivative price in the first node.
Inputs
Spot price: select from 33 different types of price inputs
Calculation Steps: how many iterations to be used in the Binomial model. In practice, this number would be anywhere from 5000 to 15000, for our purposes here, this is limited to 300
Strike Price: the strike price of the option you're wishing to model
% Implied Volatility: here you can manually enter implied volatility
Historical Volatility Period: the input period for historical volatility; historical volatility isn't used in the CRRBT process, this is to serve as a sort of benchmark for the implied volatility,
Historical Volatility Type: choose from various types of implied volatility, search my indicators for details on each of these
Option Base Currency: this is to calculate the risk-free rate, this is used if you wish to automatically calculate the risk-free rate instead of using the manual input. this uses the 10 year bold yield of the corresponding country
% Manual Risk-free Rate: here you can manually enter the risk-free rate
Use manual input for Risk-free Rate? : choose manual or automatic for risk-free rate
% Manual Yearly Dividend Yield: here you can manually enter the yearly dividend yield
Adjust for Dividends?: choose if you even want to use use dividends
Automatically Calculate Yearly Dividend Yield? choose if you want to use automatic vs manual dividend yield calculation
Time Now Type: choose how you want to calculate time right now, see the tool tip
Days in Year: choose how many days in the year, 365 for all days, 252 for trading days, etc
Hours Per Day: how many hours per day? 24, 8 working hours, or 6.5 trading hours
Expiry date settings: here you can specify the exact time the option expires
Take notes:
Futures don't risk free yields. If you are pricing options of futures, then the risk-free rate is zero.
Dividend yields are calculated using TradingView's internal dividend values
This indicator only works on the daily timeframe
Included
Option pricing panel
Loxx's Expanded Source Types
อินดิเคเตอร์ Pine Script®
Breakeven rectangle overlay for move contractI'm sharing this little script allowing you to display a breakeven rectangle for the move contract after manually writing your parameters (strike price, contract price). In case you are long your breakeven (at expiration) is when the price expire outside the rectangle. In case you are short your breakeven (again at expiration) is when the price is staying inside the rectangle at expiration. You can change multiple personalisation parameters as you wish.
อินดิเคเตอร์ Pine Script®
SPY Option returns calculations This script allows you to calculate returns on double butterfly options, specifically for 0 DTE and 1 DTE(days to expiration) for options that have expiration on Monday, Tuesday and Friday(Mostly SPY). The script is bi-directional, meaning it will calculate the returns on a put and call butterfly simultaneously, not just a put or just a call butterfly. The script was developed to calculate how much return could be made on opening a double butterfly option by opening a position right at the open of the day on a 0 DTE option. The script rounds the price up or down to the nearest strike price at open. From there you would need to chose how far to select your options from the opening strike price. You would also need to select how many contracts you would like to open, negative - is selling an option positive + is buying an option. As an example the script is defaulted to a 0,2,4 strike position with buying 1 contract at the 0, selling 3 contracts at the +/- 2 strike and selling 2 contracts at the +/- strike. The default is set to an unbalanced double butterfly as it allows a better credit collection than a standard butterfly. To change to a standard butterfly change the # of contracts to 1 -2 and 1 respectively.
The script defaults a return of 0 on Tuesdays and Thursdays as there are no 0 DTE options available on those days.
If you have questions about script ask ... if you have questions about options ... the answers will likely take too much time to answer.
อินดิเคเตอร์ Pine Script®
Doms 0dte/hassan conversion v2 Hello Guys
This is a reupload!
The 0dte is for options trading and is used for the main 1 to 0 odte strategy!
It uses volume, sector and tik analysis in order to give an understanding of looking which way to play.
The next version will look at correlations between the es! Feel free to point out bugs and reach out as I want this to grow into something way stronger!
อินดิเคเตอร์ Pine Script®
NIFTY VIX BANDSThis script can be used to visually identify the 1 standard deviation range of price movement anticipated by NSE ticker for Volatility Index NSE:INDIAVIX
Ideal to use on NSE:NIFTY ticker only!
The NIFTY range is extended to Yearly, Monthly, Weekly, Daily based on the current value of INDIAVIX.
All options are customizable:
Time frame of the VIX Bands
Select / De-select of Plots for Yearly, Monthly Weekly and Daily
อินดิเคเตอร์ Pine Script®
Nifty Expiry Day Vikas DhariwalStrategy for Expiry day plan
Here you can find easy expiry day of nifty and bank nifty
mark Thursday with color to find that day for test any expiry strategy plan
thanks call for more updated 8287335651
อินดิเคเตอร์ Pine Script®
Commercial Short IndexThis script takes the hedger (commercial short) from the COT report and normalize the chart for configurable time frames (e.g. 26 weeks, 152 weeks and 260 weeks).
Based on the "Commercial Index-Buschi" script by MagicEins.
อินดิเคเตอร์ Pine Script®
UCS_3rd FridaySimple script to show you a way to find 3rd Fridays (Monthly Options Expiry)
If that friday is a holiday, then it doesn't generate a signal. Futures & Forex trader need not to worry. I will fix it for the stock traders as well. Time is all I need.
as usual Good Luck for those who believe in it. Practice for those who believe in hard work. Think for those who believe in smart work. ;)
อินดิเคเตอร์ Pine Script®






















