ORB + Expected Move + Trade Bias RWCORB + Expected Move + Trade Bias v3
Overview
A comprehensive 0DTE SPX options trading indicator designed to identify optimal credit spread and iron condor setups based on Opening Range Breakout (ORB) analysis, Expected Move calculations, VWAP dynamics, and multi-factor confidence scoring. The indicator provides specific strike suggestions, real-time position management signals, and exit warnings.
Who This Is For
This indicator is built for traders who sell 0DTE SPX credit spreads (put spreads, call spreads, or iron condors) and want a systematic, data-driven approach to:
Determine trade direction (bullish, bearish, or neutral)
Select appropriate strikes based on market conditions
Manage positions with clear exit signals
Core Components
1. Opening Range Breakout (ORB)
The ORB establishes the initial trading range after market open, serving as the foundation for trade bias determination.
Settings:
ORB Period: Choose 15, 30, 45, or 60 minutes
Shorter periods (15-30 min) = more signals, more noise
Longer periods (45-60 min) = fewer signals, more reliable ranges
ORB Breakout Buffer %: Percentage buffer beyond ORB high/low before confirming breakout (default 0.1%)
Colors: Customize ORB high (green), low (red), and fill colors
How It Works:
Tracks the high and low during the ORB period
After ORB completes, monitors for breakouts above/below with buffer
Counts consecutive bars above/below ORB for confirmation
2. Expected Move (EM)
Calculates the statistically expected daily range based on Average True Range (ATR).
Settings:
ATR Length: Lookback period for ATR calculation (default 14)
ATR Multiplier: Scale the expected move (default 1.0)
Colors: Customize expected move lines and fill
How It Works:
Pulls daily ATR from the previous session
Projects expected move boundaries from session open
Used for strike distance calculations and range containment analysis
3. VWAP Analysis
Volume Weighted Average Price with standard deviation bands provides trend confirmation and stretch detection.
Settings:
Show VWAP: Toggle VWAP line visibility
Show VWAP StdDev Bands: Toggle ±1 standard deviation bands
VWAP Band Multiplier: Adjust band width (default 1.0)
VWAP Slope Lookback: Bars to measure VWAP slope (default 10)
Key Metrics:
VWAP Slope: Normalized slope indicating trend strength
Strong Up (↑↑): > 0.5
Up (↑): 0.3 to 0.5
Flat (—): -0.3 to 0.3
Down (↓): -0.5 to -0.3
Strong Down (↓↓): < -0.5
Stretched Detection: Warns when price is >1.5 standard deviations from VWAP
4. Prior Day Levels (PDH/PDL)
Yesterday's high and low serve as key support/resistance levels where institutional orders often cluster.
Settings:
Show Prior Day High/Low: Toggle PDH/PDL lines
Show Prior Day Close: Optional PDC line
Colors: Customize PDH (teal), PDL (orange), PDC (gray)
Why It Matters:
Price above PDH = strong bullish continuation signal
Price below PDL = strong bearish continuation signal
Price between PDH/PDL = range-bound, favors iron condors
Strikes are adjusted to respect these levels as potential support/resistance
Trade Signal System
Signal Time
Settings:
Signal Time (ET): Choose when the indicator evaluates and locks in the trade signal
1100 = 8:00 AM PT / 11:00 AM ET
1115 = 8:15 AM PT / 11:15 AM ET (default)
1130 = 8:30 AM PT / 11:30 AM ET
1145 = 8:45 AM PT / 11:45 AM ET
1200 = 9:00 AM PT / 12:00 PM ET
Recommendation: Later signal times (8:30-9:00 AM PT) provide more data and reduce morning fakeout signals, but leave less time for theta decay.
Confidence Scoring (9 Factors)
The indicator calculates three scores: Iron Condor (IC), Bullish, and Bearish. The highest score determines the signal.
Factor 1: Price Position vs ORB (max 40 pts)
Inside ORB → +35-40 IC points
Above ORB (confirmed breakout) → +40 Bull points
Below ORB (confirmed breakout) → +40 Bear points
Factor 2: VWAP Slope (max 30 pts)
Flat slope → +25 IC points
Strong positive slope → +30 Bull points
Strong negative slope → +30 Bear points
Factor 3: Price vs VWAP Position (max 20 pts)
Above upper band → +20 Bull points
Below lower band → +20 Bear points
Near VWAP → +12 IC points
Factor 4: VWAP Consistency (max 15 pts)
70%+ bars above VWAP → +15 Bull points
70%+ bars below VWAP → +15 Bear points
Mixed → +10 IC points
Factor 5: Move from Open (max 20 pts)
30% of EM up → +20 Bull points
30% of EM down → +20 Bear points
<12% move either way → +15 IC points
Factor 6: Trend Structure (max 15 pts)
Higher highs + higher lows → +15 Bull points
Lower lows + lower highs → +15 Bear points
No clear structure → +8 IC points
Factor 7: Day Range Containment (max 15 pts)
Range <35% of EM → +15 IC points
Range <50% of EM → +8 IC points
Range >65% of EM → Points to directional score
Factor 8: Gap Behavior (max 12 pts)
Gap up, unfilled, above ORB → +12 Bull points
Gap down, unfilled, below ORB → +12 Bear points
Gap filled, inside ORB → +8 IC points
Factor 9: Prior Day High/Low (max 20 pts)
Above PDH → +20 Bull points
Below PDL → +20 Bear points
Between PDH/PDL → +15-20 IC points
Alignment Bonuses (max 25 pts)
Additional points when multiple factors align in the same direction.
Signal Types
SignalMeaningTradeIRON CONDORRange-bound conditionsSell both put and call credit spreadsPUT SPREADBullish conditionsSell put credit spread onlyCALL SPREADBearish conditionsSell call credit spread onlyNO TRADEConflicting signals or low confidenceStay out
Confidence Levels
ConfidenceColorStrike Mode75%+Green🍆 AGGRESSIVE (tighter strikes, more premium)60-75%Lime/Yellow🌶️ NORMAL (balanced strikes)45-60%Yellow/Orange🐢 CONSERVATIVE (wider strikes, safer)<45%Orange/RedNO TRADE triggered
Strike Suggestions
Base Calculation
For Iron Condors: Strikes are calculated from current price at signal time as the midpoint, ensuring symmetric risk on both sides.
For Directional Spreads: Strikes are calculated from session open, betting on continuation.
Put Strike = Midpoint - (Expected Move × Distance)
Call Strike = Midpoint + (Expected Move × Distance)
Distance Settings:
High Confidence (75%+): 0.60 EM (default) - Tighter strikes, more premium
Mid Confidence (60-75%): 0.70 EM (default) - Balanced
Low Confidence (<60%): 0.80 EM (default) - Wider strikes, safer
Skew Adjustments
When Auto-Adjust for Skew is enabled, strikes are asymmetrically adjusted based on:
VIX Level:
VIX > 20: Puts pushed wider (-0.05), Calls pulled tighter (+0.05)
VIX < 15: Opposite adjustment
2-Day Momentum:
Strong down move: Puts pushed wider
Strong up move: Calls pushed wider
Prior Day Levels:
Below PDL: Puts pushed wider (more downside protection)
Above PDH: Calls pushed wider (more upside protection)
PDH/PDL Strike Reference
If the calculated strike is too close to PDH or PDL, the indicator adjusts to place strikes 10 points beyond these key levels (maximum 20 point adjustment).
Exit Signal System
Three-Stage Warning System
Stage 1: EARLY ⚠️ (Yellow)
Trigger: Price moves against position with:
Below VWAP AND in lower fib zones (for put spreads/IC downside)
Above VWAP AND in upper fib zones (for call spreads/IC upside)
Action: Heightened awareness. Consider reducing position or tightening mental stops.
Note: Only fires once per direction per day to avoid alert fatigue.
Stage 2: CAUTION (Orange)
Trigger:
2+ consecutive bars beyond ORB
Price has traveled 25%+ of the distance to short strike
Action: Actively manage position. Prepare to exit.
Stage 3: EXIT (Red)
Trigger:
3+ consecutive bars beyond ORB (configurable)
Price has traveled 40%+ of the distance to short strike
VWAP slope confirms the move (if enabled)
Action: Close position immediately.
Exit Settings
Exit Confirmation Bars: Consecutive bars required for EXIT signal (default 3)
CAUTION Distance %: How far toward strike before CAUTION (default 25%)
EXIT Distance %: How far toward strike before EXIT (default 40%)
Require VWAP Confirmation: EXIT only fires if VWAP slope confirms direction
Fibonacci Retracement Levels
After signal fires, fib levels are drawn between key price points:
For Iron Condors:
0% = Put Strike
100% = Call Strike
For Put Spreads:
0% = Put Strike (danger zone)
100% = Day High at signal
For Call Spreads:
0% = Day Low at signal
100% = Call Strike (danger zone)
Fib Levels Shown:
0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
Fib Zone Tracking: The left table shows current fib zone, color-coded:
Red: Near strikes (danger)
Orange: Approaching strikes
Green: Safe middle zones
Information Tables
Left Table (Position Management)
RowDescriptionSIGNALCurrent trade signal with confidence colorConfConfidence percentageEXITCurrent exit status (HOLD/EARLY/CAUTION/EXIT)Fib ZoneCurrent price position in fib structurePDHPrior day high valuePDLPrior day low valuevs PDPosition relative to prior day rangeModeStrike mode (🍆/🌶️/🐢)PutSuggested short put strikeCallSuggested short call strikeCall Dist% distance traveled toward call strikePut Dist% distance traveled toward put strike
Right Table (Market Factors)
RowDescriptionStructureOverall market structure (BULLISH/BEARISH/RANGE/MIXED)PricePosition relative to ORBVWAPVWAP slope direction and strengthStretchedWarning if price extended from VWAPMoveCurrent move from open as % of EMEM UsedDay range as % of expected moveGapGap status (up/down, filled/unfilled)ReversalV-top or V-bottom detectionConflictAny conflicting signals detectedVIXCurrent VIX levelSkewMomentum-based skew direction
Alerts
The indicator includes pre-configured alerts:
AlertDescriptionEntry: Iron CondorIC signal firedEntry: Put SpreadBullish signal firedEntry: Call SpreadBearish signal firedHigh Confidence EntryAny signal with 75%+ confidenceNo TradeNO TRADE signal firedEARLY WARNINGEarly warning triggeredCAUTIONPosition under pressureEXIT NOWExit signal triggered
Recommended Settings
Conservative (New Traders)
ORB Period: 60 minutes
Signal Time: 1130 (8:30 AM PT)
Min Confidence: 50%
Strike Distances: 0.65 / 0.75 / 0.85
Balanced (Default)
ORB Period: 30-45 minutes
Signal Time: 1115 (8:15 AM PT)
Min Confidence: 45%
Strike Distances: 0.60 / 0.70 / 0.80
Aggressive (Experienced)
ORB Period: 30 minutes
Signal Time: 1100 (8:00 AM PT)
Min Confidence: 40%
Strike Distances: 0.55 / 0.65 / 0.75
Important Notes
This indicator does not guarantee profits. It provides a systematic framework for trade selection and management.
Paper trade first. Test the indicator on historical data and paper trade before using real capital.
Position sizing matters. Never risk more than you can afford to lose on any single trade.
Exits are suggestions. Use the exit signals as guidance, but always apply your own judgment.
Market conditions vary. The indicator performs best in normal volatility environments. Use extra caution during major news events, FOMC days, and earnings season.
SPX/SPY focused. While the indicator may work on other instruments, it was designed specifically for SPX 0DTE options trading.
Version History
v3.0
Added 45/60 minute ORB options
Added configurable signal time (8:00-9:00 AM PT)
Added stretched detection (VWAP distance warning)
Added Prior Day High/Low as scoring factor
Iron Condor strikes now centered on current price (symmetric risk)
Split table UI (left: position, right: factors)
PDH/PDL reference for strike adjustments
Credits
Developed for the 0DTE SPX options trading community. Inspired by SMB Capital's ORB methodology, VWAP analysis techniques, and real-world credit spread trading experience.
Disclaimer: This indicator is for educational and informational purposes only. It is not financial advice. Trading options involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results.
Options
Option Levels KiKOption Levels KiK - Automatic Options Levels Converter
This indicator automatically converts SPX options levels to ES futures prices in real-time.
KEY FEATURES:
- Automatic conversion from any index (SPX, NDX, etc.) to its corresponding futures contract (ES, NQ, etc.)
- Two conversion modes: Ratio or Spread
- Automatic reference price capture at user-defined time (default 15:30 Paris time)
- Displays key options levels: Gamma Flip, Forward, C50, C70, P50, P70
CONVERSION METHODS:
- Ratio Mode: Future Level = Index Level × (ES Reference / SPX Reference)
- Spread Mode: Future Level = Index Level + (ES Reference - SPX Reference)
CUSTOMIZATION:
- Enable/disable individual levels
- Fully customizable colors, line styles, and widths
- Labels displayed on the right side of the chart
- Reference time automatically converts from Paris timezone to US market time
USAGE:
1. Enter your options levels for the index (e.g., SPX)
2. The indicator automatically converts them to futures levels (e.g., ES)
3. Monitor the conversion info table in the top-right corner
Perfect for options traders who need to track index levels on futures charts!
Straddle Premium TrackerStraddle Premium Trackefr is used to combine CALL and PUT of premiums of same strike price
Price HighlightsThis script shows you price highlights that you define. You can choose what price interval and how many to show above and below the current price. I made this to help me choose a strike price quickly when trading options but also found it useful for visualizing price targets for quick futures scalps.
util_overlay_v1What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Why do we use it?
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Options Visualizer: Smart Money Barriers [V6]Options Visualizer: Institutional Barriers & Expected Move
The Options Visualizer is analysis tool designed for traders who want to gain an edge by monitoring the "Smart Money" (options market makers and institutional hedgers). This script helps you visualize key option market dynamics directly on your chart, allowing you to see statistical support/resistance levels and massive "walls" of liquidity.
Key Features
1. Institutional Walls (Manual Mode)
Input high Open Interest (OI) data from exchanges like Deribit or Coinglass.
Call Wall (Resistance): The strike price with the highest concentration of Call options. Market makers often defend these levels to prevent paying out buyers.
Put Wall (Support): The strike price with the highest concentration of Put options, acting as a "floor" for price action.
2. Auto-Probability Mode (Statistical Barriers)
Enable Auto Mode to calculate theoretical barriers based on a 2-Standard Deviation (95% Probability) model.
This visualizes the "extreme" ends of market expectations, where a reversal or significant resistance is mathematically likely.
3. Expected Move (68% Range Box)
The blue dotted box represents the 1-Standard Deviation (68% probability) move.
Historically, 68% of the time, the price at expiration will settle within this range. Staying outside this box signals an "over-extended" market.
The Math Behind the Magic
The script utilizes the standard Expected Move formula used by professional floor traders:
Expected Move = Current Price * (IV / 100) * SquareRoot(Days To Expiry / 365)
68% Probability (The Blue Box): Derived from 1-Standard Deviation (1-Sigma). It assumes a normal distribution of price returns.
95% Probability (Auto Mode Walls): Derived from 2-Standard Deviations (2-Sigma). This covers the vast majority of expected market outcomes, making these levels powerful institutional-grade support and resistance zones.
Implied Volatility (IV): Unlike historical volatility, IV represents the market's forward-looking "fear gauge" based on option pricing.
How to Use This Tool
1. Setup:
Look up the current Implied Volatility (IV) and Max Pain/Open Interest for your asset (use Coinglass or Deribit Metrics).
2. Inputs:
Enter the Days Until Expiration (e.g., if monthly options expire this Friday, enter the remaining days).
Enter the IV % (e.g., 55 for 55%).
3. Execution:
Trend Trading: If price stays within the Blue Box, the trend is "normal."
Mean Reversion: If price hits the Call/Put Wall (Red/Green dashed lines), look for exhaustion and potential reversal signals.
Breakouts: A sustained candle close outside the 95% Auto Walls suggests a "Black Swan" event or a massive short/gamma squeeze.
Why Use This Tool?
Traditional indicators (RSI, MACD) look at the past. This tool looks at current market expectations and positioning. By seeing where the "walls" are built, you can significantly improve your risk management and trading edge.
MANUAL:
Mode 1: Manual Institutional Data (Recommended for Specific Expiries)
This mode uses real-world Open Interest (OI) data, offering the most accurate view of where large institutions are actively defending their positions.¨
🛑 How to use the Manual Mode:
1. Disable the Enable Auto Probability Mode checkbox in the indicator settings.
2. Find the Data: Navigate to specialized crypto options analytics websites:
Coinglass Options (Look for "Open Interest by Strike")
Deribit Metrics (Look for Max Pain charts)
3. Identify Key Levels & Input them into the script settings:
Manual Call Wall Strike: Find the Highest Red Bar on the OI chart. This is the strike price with the most Call options, acting as massive institutional resistance.
Manual Put Wall Strike: Find the Highest Green Bar on the OI chart. This is the strike price with the most Put options, acting as a solid price floor (support).
Manual Max Pain Level: Locate the value labeled as Max Pain on the source website. This is the price where the most options would expire worthless for buyers.
Mode 2: Auto Probability Barriers (Statistical Mode)
If you don't want to manually input data, the Auto Mode calculates theoretical barriers based purely on math and volatility, providing highly probable, yet slightly less precise, support/resistance levels.
✅ How to use the Auto Mode:
Enable the Enable Auto Probability Mode checkbox in the indicator settings.
The script will automatically set the Call/Put Walls at the 2-Standard Deviation (95% probability) range.
You still need to update the Implied Volatility (IV) % and Days Until Expiration to ensure the calculations are accurate for today's market conditions.
Pradip's MACD Divergence ProThis is where the "magic" happens, Pradip. MACD Divergence is one of the most powerful concepts because it acts like an early-warning system. It tells you when the market is "lying"—when the price is moving up or down, but the energy (momentum) behind it is dying.
GRA/Rei BRIA Simple [ReiConcept]BRIA SIMPLE - 22 Indicators Buy/Sell Signals
Get clear BUY and SELL signals based on the consensus of 22 technical indicators!
WHAT DOES IT DO?
BRIA Simple analyzes 22 indicators simultaneously and generates signals when a strong majority agrees on the direction.
22 INDICATORS IN 4 CATEGORIES:
MOVING AVERAGES (9): SMA, EMA (Short/Medium/Long), DEMA, TEMA, VIDYA
MOMENTUM (5): ROC, Momentum, TRIX, Price Oscillator, KST
OSCILLATORS (4): RSI, Stochastic, SMI, MACD
TREND (4): Parabolic SAR, DMI/ADX, Aroon, Elder Ray
HOW IT WORKS?
- BUY signal when 75%+ indicators are bullish
- SELL signal when 75%+ indicators are bearish
- Adjustable threshold (50-95%)
- Anti-repainting: signals confirmed at candle close only
FEATURES
- Clean BUY/SELL labels on chart
- EMA fill showing trend direction (cyan = bull, pink = bear)
- Bar coloring based on dominant direction
- Score table showing current consensus
- Built-in alerts for signals
SETTINGS
- Score Threshold: minimum % of indicators required (default 75%)
- EMA Fast/Slow: for trend visualization
- Show/Hide table and EMA fill
ANTI-REPAINTING
All signals are confirmed at candle close only. No repainting, no false signals during live candles.
This is a FREE simplified version. For advanced features like trailing stop, TP/SL management, and backtesting, check out BRIA Multi-Score Premium.
More tools: reiconcept.fr
MTF EMA + MACD Single Signal Line (Enhanced)zerodha intraday trading strategy with 3 inbuilt indicators like ema, macd. 25 ema in 1 hour timeframe and 25 ema in 5 min timeframe and 15 min macd for better direction forecast
Option Levels PlottingThis script plots the levels for options of single legs and 4 vertical spreads.
polymarket 15 min markerHere is a professional and catchy description you can use when publishing this script on TradingView. It highlights the "pro" features we added (MTF capability, custom fonts, and bug fixes).
Title: Current 15m Open – Pro Anchored Level
Description:
What it does: This indicator is a precision tool for intraday traders. It automatically identifies and draws a horizontal line at the opening price of the current 15-minute candle. This level serves as a key pivot for intraday bias—price above is often bullish, price below is often bearish.
Unlike standard indicators, this script is engineered to be Multi-Timeframe (MTF) stable. This means you can view the 15m Open level while scalping on a 1-minute, 5-minute, or even 1-second chart, and the line will remain locked to the correct price without repainting or jumping.
Key Features:
🎯 Precision Anchor: Uses time-based coordinates to ensure the line starts exactly at the 15m candle open, regardless of your current timeframe.
⚡ Zero-Lag MTF: Instantly updates the moment a new 15-minute session begins.
💎 Luxury Visuals: Features a "Fancy Font" hack that uses special Unicode characters to display the label in a bold, professional serif style (customizable in settings).
📐 Smart Positioning: The label floats clearly on the right side of the chart (margin area), ensuring it never obstructs your view of the candles.
🛠 Stability Fixes: Includes custom logic to prevent the "disappearing line" bug that often occurs when viewing the same timeframe as the indicator source.
Settings:
Theme Color: Customize the line and text color to match your chart theme.
Font Style: Choose between "Luxury" (Serif), "Hacker" (Monospace), or "Modern" (Standard).
Text Offset: Adjust how far to the right the label sits.
How to use:
Add to your chart.
Use it as a bias filter: Look for longs above the blue line and shorts below it.
Perfect for scalpers who need to keep the higher-timeframe context visible at all times.
laurent//@version=5
indicator("Big Candle + Squeeze Dots (ATR + RSI + MACD + BB)", overlay=true, timeframe="", timeframe_gaps=true)
//---------------------------
// Inputs
//---------------------------
lenATR = input.int(14, "Période ATR")
multATR = input.float(2.5, "Grosse bougie : range > ATR * X", step=0.1)
lenBodyMA = input.int(20, "Période moyenne de corps")
useBodyMA = input.bool(true, "Filtrer par corps > moyenne")
// RSI / MACD
lenRSI = input.int(14, "Période RSI")
rsiOB = input.float(60, "RSI haussier min")
rsiOS = input.float(40, "RSI baissier max")
fastMACD = input.int(12, "MACD fast")
slowMACD = input.int(26, "MACD slow")
sigMACD = input.int(9, "MACD signal")
// Squeeze Bollinger
bbLen = input.int(20, "Période Bollinger")
bbMult = input.float(2.0, "Ecart-type Bollinger", step=0.1)
squeezeLen = input.int(20, "Période moyenne largeur BB")
squeezeMult = input.float(0.7, "Seuil squeeze (largeur BB < moyenne * X)", step=0.05)
// Filtres
requireMomentum = input.bool(true, "Exiger RSI + MACD")
requireSqueeze = input.bool(true, "Exiger un squeeze juste avant")
squeezeLookback = input.int(5, "Nb de bougies max depuis squeeze", minval=1, maxval=50)
//---------------------------
// Calculs de base
//---------------------------
atr = ta.atr(lenATR)
rangeC = high - low
body = math.abs(close - open)
// moyenne de corps
bodyMA = ta.sma(body, lenBodyMA)
// RSI
rsi = ta.rsi(close, lenRSI)
// MACD
macdVal = ta.ema(close, fastMACD) - ta.ema(close, slowMACD)
macdSig = ta.ema(macdVal, sigMACD)
macdHist = macdVal - macdSig
//---------------------------
// Bollinger Bands + Squeeze
//---------------------------
basis = ta.sma(close, bbLen)
dev = bbMult * ta.stdev(close, bbLen)
upper = basis + dev
lower = basis - dev
bbWidth = (upper - lower) / basis
bbWidthMA = ta.sma(bbWidth, squeezeLen)
// squeeze = largeur BB inférieure à une fraction de sa moyenne
isSqueeze = bbWidth < bbWidthMA * squeezeMult
// Nombre de barres depuis le dernier squeeze
barsSinceSqueeze = ta.barssince(isSqueeze)
// Condition : on considère qu'on sort d'une zone de squeeze récente
hadRecentSqueeze = barsSinceSqueeze >= 0 and barsSinceSqueeze <= squeezeLookback
//---------------------------
// Conditions Wide Range Candle
//---------------------------
// 1) Bougie large vs ATR
wideByATR = rangeC > atr * multATR
// 2) Bougie large vs moyenne de corps (optionnel)
wideByBody = useBodyMA ? body > bodyMA : true
wideCandle = wideByATR and wideByBody
//---------------------------
// Direction + momentum
//---------------------------
bullBody = close > open
bearBody = close < open
bullMomentum = (rsi > rsiOB) and (macdHist > 0)
bearMomentum = (rsi < rsiOS) and (macdHist < 0)
condMomentumBull = requireMomentum ? bullMomentum : true
condMomentumBear = requireMomentum ? bearMomentum : true
condSqueeze = requireSqueeze ? hadRecentSqueeze : true
bullCond = wideCandle and bullBody and condMomentumBull and condSqueeze
bearCond = wideCandle and bearBody and condMomentumBear and condSqueeze
//---------------------------
// Affichage des points discrets
//---------------------------
// Petit point vert sous la bougie = grosse bougie haussière
plotshape(bullCond, title="Big Bull Candle (Squeeze + Mom.)", style=shape.circle,
location=location.belowbar, color=color.new(color.lime, 0), size=size.tiny)
// Petit point rouge au-dessus de la bougie = grosse bougie baissière
plotshape(bearCond, title="Big Bear Candle (Squeeze + Mom.)", style=shape.circle,
location=location.abovebar, color=color.red, size=size.tiny)
Options X-Level Lock Tracker (Weekly Fri PM)What this indicator is
Options X Lock Tracker is a weekly trade‑management dashboard for defined‑risk premium selling where the “trade thesis” is primarily about finishing on the correct side of a single level (X) by expiration. In this framework, X is the short strike (the “line”) you sell, and the goal is to remain on the correct side of X through settlement.
This script helps you:
Compute candidate PUT X and/or CALL X levels using a volatility‑based model,
Lock those X levels on specific weekdays (Mon/Tue/Wed),
Track touches/breaches during the week, and
Evaluate win/loss at weekly settlement.
Core features
1) X‑Level computation (PUT and/or CALL)
Can compute PUT X, CALL X, or both.
Can use a target delta approach or a 1‑sigma move approach.
Volatility input can be HV (log returns) or ATR, with configurable lookback lengths and caps/floors.
2) Expiry / settlement controls
Settlement is aligned to next Friday with a configurable timezone + settle hour/minute (e.g., Fri 16:00 New York).
3) Strike rounding + optional “snap”
Rounds strikes to your chosen strike increment (e.g., 5‑point spacing for index products).
Optional “snap” can align X to nearby prior daily/weekly key levels (H/L/C/Mid) rather than purely model output.
4) Locking workflow (Mon / Tue / Wed)
You can enable locking on Monday, Tuesday, and/or Wednesday.
Locks occur on the daily close (confirmed bar), and once locked, the level is held for the week.
5) Visual plotting
Plots the locked X levels as horizontal lines extended to the right:
PUT lines are solid, CALL lines are dashed, and
Lines are color‑coded by lock day (Mon/Tue/Wed).
6) Touch/Breach tracking
Tracks whether price touched/breached the locked X during the week (after the lock moment).
7) Friday settlement result (win/loss)
On Friday’s confirmed close, evaluates results:
Short PUT considered a win if settle > put strike
Short CALL considered a win if settle < call strike
8) Table dashboard (weekly “control panel”)
The table is meant to be your weekly at‑a‑glance tracker. For each lock day and each side it can show:
Locked strike (X),
“Now” distance from price,
Touch status,
Settle status (once Friday passes),
W% = a real‑time probability estimate (normal approximation).
Important: W% is a real‑time probability estimate, not a historical win‑rate backtest.
9) RSI context + RSI alerts
Optional RSI context in the table and RSI‑based bias framing.
Includes alert conditions for RSI crossing above/below 50 (useful for regime shifts).
Recommended chart setup / best practices
This tracker is intentionally built around daily locking, and is designed for 1D charts where the lock event is the daily close.
Make sure your settlement timezone/time matches the product you’re trading (and your intended settlement convention).
If you trade instruments with different strike spacing, update Strike increment accordingly.
Limitations / notes
Probability outputs (W%) are model estimates and can diverge from real option pricing (skew, kurtosis, jumps, event risk, liquidity, etc.).
This is a decision support / tracking tool. It is not an automated execution system, and it does not include slippage/fees in outcomes.
Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial advice. Options involve substantial risk and are not suitable for all traders. Always use defined risk controls and trade within your plan.
Reversal Detector [Scalping-Algo]Reversal Detector - Volume-Based Price Structure Analysis
───────────────────────────────────────────
WHAT IT DOES
This indicator identifies potential reversal zones by analyzing price structure combined with volume. Instead of using traditional overbought/oversold readings or single candlestick patterns, it looks for a specific two-phase setup:
Phase 1 - Anchor Detection:
The script scans for bars where price closes beyond ALL previous bars in the lookback period. For a bullish setup, the close must be lower than every low of the past N candles (default 20). This represents an extreme extension, not just a "lower low." Volume on this bar should exceed 2x the average to confirm real participation.
Phase 2 - Confirmation:
After an anchor forms, the indicator waits for price to reverse back through the anchor bar's range. This must occur within a set number of bars (default 3). If price continues making new extremes instead, the setup is cancelled.
────────────────────────────────────────────────────────────────
HOW TO READ THE SIGNALS
B Labels (Green, below price) = Bullish reversal confirmed
S Labels (Red, above price) = Bearish reversal confirmed
Each signal shows a score from 3/5 to 5/5:
- 3/5 = Basic confirmation met
- 4/5 = Good volume on anchor or confirmation
- 5/5 = Strong volume + aligned with 200 EMA trend
Dashed Boxes = Pending setup waiting for confirmation
- Green box = Bullish setup in progress
- Red box = Bearish setup in progress
Status Panel (bottom right):
- Shows current state (Scanning / Bull Setup / Bear Setup)
- Countdown for confirmation window
- Current volume condition
────────────────────────────────────────────────────────────────
HOW TO USE
Entry Approach:
1. Wait for a confirmed signal (B or S label appears)
2. Higher scores (4/5 or 5/5) indicate better quality setups
3. Consider the overall trend context - signals aligned with the 200 EMA direction tend to work better
Stop Placement:
- For long entries: below the anchor bar's low
- For short entries: above the anchor bar's high
The boxes show you the anchor zone while waiting for confirmation, which can help visualize the invalidation level.
────────────────────────────────────────────────────────────────
SETTINGS
Structure Settings:
- Lookback Period (default 20): How many bars back to check for the breakout. Lower = more setups but less extreme. Higher = fewer but more significant extensions.
- Confirmation Bars (default 3): Maximum bars allowed for price to reverse. Tighter window = stricter filter.
Volume Settings:
- Use Volume Filter: Toggle volume requirement on/off
- Volume MA Length (default 20): Period for average volume calculation
- Anchor Volume Multiple (default 2.0): Required volume spike on anchor bar
- Confirm Volume Multiple (default 1.2): Volume threshold on confirmation bar
Visual Settings:
- Trend EMA Length (default 200): Used for trend alignment scoring
- Show Pending Setups: Display the dashed boxes for active setups
- Show Status Panel: Display the info table
- Colors and label size customization
────────────────────────────────────────────────────────────────
WHAT MAKES THIS DIFFERENT
The core idea is requiring price to break beyond EVERY bar in the lookback range, not just make a swing high/low. This filters out minor pullbacks and focuses on genuine extensions where price has moved significantly.
The two-phase approach (anchor then confirmation) helps avoid catching falling knives - you're not entering just because price is extended, but waiting for actual reversal evidence.
Volume integration adds another layer. The anchor bar needs elevated volume to confirm real selling/buying pressure, not just a gap or illiquid move.
────────────────────────────────────────────────────────────────
SUGGESTED USE
Works on any timeframe, but I find it most useful on 5-15 minute charts for intraday setups.
Combine with:
- Key support/resistance levels
- Higher timeframe trend direction
- Market context (avoid during major news)
The indicator identifies the pattern mechanically - it doesn't predict outcomes. Use proper position sizing and always have a stop loss plan.
────────────────────────────────────────────────────────────────
ALERTS INCLUDED
- Bullish Reversal
- Bearish Reversal
- Any Reversal
- Strong Bullish (4/5 or higher)
- Strong Bearish (4/5 or higher)
────────────────────────────────────────────────────────────────
Supercharged MA Momentum Oscillator (v6,Secondary Levels)Supercharged MA Momentum Oscillator (Dots on Line)
Description:
The Supercharged MA Momentum Oscillator is a trend and momentum-based tool designed to highlight short-term market momentum relative to a moving average. It provides a visual way to identify potential entry and exit points using a combination of smoothed momentum, ATR-based thresholds, and upper/lower momentum levels.
Key Features:
Smooth momentum line derived from a moving average slope.
Opposite momentum line for contrarian signals.
ATR-based thresholds to detect meaningful momentum shifts.
Upper and lower momentum levels for stronger confirmation of overbought/oversold conditions.
Buy/sell dots plotted on the momentum line to highlight potential trade opportunities.
Customizable inputs for moving average length, smoothing, ATR period, and thresholds.
How to Use:
Momentum Interpretation:
Blue Line (Momentum): Represents the primary momentum.
Orange Line (Opposite Momentum): Represents the inverse momentum for contrarian observation.
Thresholds & Levels:
Green/Red Lines (ATR Thresholds): Define minor trigger zones for potential momentum changes.
Yellow Dashed Lines (Upper/Lower Levels): Define major momentum levels; stronger signals occur when momentum crosses these.
Trade Signals:
Buy Signal (Green Dot): Momentum crosses above both the ATR long threshold and the upper momentum level.
Sell Signal (Red Dot): Momentum crosses below both the ATR short threshold and the lower momentum level.
Dots appear directly on the momentum line to easily visualize trade triggers.
Customization:
Adjust the MA Length and Smoothing to fit the timeframe and asset volatility.
Modify ATR Length and Threshold Factor to fine-tune sensitivity.
Change Upper/Lower Momentum Levels to capture stronger or weaker signals.
Tips:
Best used in combination with trend analysis or other technical indicators for confirmation.
Ideal for spotting momentum reversals or identifying potential breakout entries.
Works on multiple timeframes — shorter timeframes will show more frequent signals, longer timeframes filter noise.
Note:
This indicator is for educational and informational purposes. Always use proper risk management and confirm signals with other analysis before executing trades.
Previous Day, Pre Market and ORB LevelsDescription
This indicator is designed for intraday traders who need significant price levels—Previous Day, Premarket, and Opening Ranges—without the visual clutter that typically plagues multi-level indicators.
Unlike standard indicators that draw lines across your entire chart history, this script focuses purely on the current trading day. It draws levels starting from the daily open and extends them into the future, keeping your historical price action clean and readable.
Key Features
Previous Day Levels: Automatically plots Previous Day High (PDH), Low (PDL), and Close (PDC).
Premarket Levels: Tracks the High and Low of the premarket session (04:00 – 09:30 NY).
Opening Range Breakout (ORB): Automatically detects and plots the 5-minute and 15-minute Opening Range Highs and Lows.
Clean Charting: Lines and labels are only drawn for the current active day. Old levels from previous days are automatically removed to prevent "chart noise."
Fully Customizable: Toggle any level on/off and customize colors to match your chart theme via the settings menu.
How It Works
Daily Data: Uses request.security to fetch the previous day's High, Low, and Close without repainting.
Session Logic: The script utilizes specific time sessions (set to New York time) to capture the Premarket range and the first 5 and 15 minutes of the regular session for ORB calculations.
Dynamic Drawing: Using Pine Script's line.new and label.new functions, the indicator draws levels only on the last bar, ensuring the lines stay relevant to the current price action.
SPY Options Targets -IV Expected MoveWhat this indicator is?
This tool turns option implied volatility into two things:
1) Expected move levels on the SPY chart for a chosen time horizon
2) Estimated option premium targets if SPY reaches those levels
It is built to answer three trading questions:
1) How far can SPY reasonably move in my holding window
2) What SPY levels should I use for profit targets or invalidation
3) If SPY hits those levels, what option price is a realistic target
What the bands mean on the SPY chart
The bands are expected move levels on the underlying, recalculated each bar from the selected option’s implied volatility.
One sigma band
The teal band is the expected one standard deviation move over the next Horizon minutes. In practice, this is a normal move zone for that holding window.
Two sigma band
The orange band is the expected two standard deviation move over the next Horizon minutes. In practice, this is a large move zone for that holding window.
How to interpret value
If price is near the middle of the bands, the market is behaving normally for that window.
If price approaches the one sigma band, the move is extended for that window.
If price approaches the two sigma band, the move is unusually large for that window and you should expect either strong continuation or sharp mean reversion depending on market context.
What the table means and how to use it
IV
Implied volatility solved from the selected option price. Higher IV widens the bands and increases option targets.
DTE
Days to expiry of the selected option. Near expiry options can change faster and IV can shift quickly.
H move 1 sigma
The projected one sigma SPY move in dollars for the selected Horizon minutes. This is the key number for planning.
Opt at plus 1 sigma and minus 1 sigma
If SPY reaches the one sigma upper band or the one sigma lower band, the indicator estimates what your selected option should be worth at that moment, assuming implied volatility does not change.
Opt at plus 2 sigma and minus 2 sigma
Same idea for the two sigma bands.
Now opt px
Current option price for reference.
.................................................................................................................
How to trade using it?
Step 1 Pick the right option input
Choose the same expiry you plan to trade and pick a liquid contract, ideally at the money or near the money. This makes the IV reading more representative of the current tape.
Step 2 Set the horizon to your holding time
If you typically hold 15 to 30 minutes, set Horizon minutes to 15 or 30.
If you typically hold 60 to 120 minutes, set it accordingly.
This matters because the bands represent expected move for that exact window.
Step 3 Use the bands to define trade planning
For a long bias
Entry is your setup. The bands are used for targets and risk.
Target 1 is the one sigma upper band.
Target 2 is the two sigma upper band if momentum supports continuation.
Invalidation can be defined as losing the mid zone and failing to reclaim, or a clear level based stop. The indicator does not choose your stop. It gives your realistic upside distance.
For a short bias
Target 1 is the one sigma lower band.
Target 2 is the two sigma lower band if momentum supports continuation.
Invalidation can be defined similarly using your structure.
Step 4 Use the option targets as profit taking levels
Once you enter an option trade, ignore random premium swings and anchor to the table.
Common approach
Take partial profit when the option approaches the plus or minus one sigma target value.
Hold a smaller runner for the plus or minus two sigma target value.
If SPY hits the one sigma band but the option is far below the table target, it usually means implied volatility is dropping. Reduce expectations or exit earlier.
If SPY hits the one sigma band and the option is above the table target, it usually means implied volatility expanded. Consider taking profits sooner because this extra premium can mean revert.
Step 5 Use it to choose strikes
Before entering, check whether your desired option profit requires SPY to travel to the two sigma band within your horizon.
If yes, that is a lower probability trade for that window.
If your plan is achievable around the one sigma band, it is typically more realistic.
..................................................................................................................
Practical examples
Scalp example
Horizon 30 minutes.
If H move 1 sigma is about 1 dollar, then expecting a 3 dollar SPY move in 30 minutes is a two to three sigma expectation and should be treated as a low probability scalp unless a news event is active.
Intraday example
Horizon 120 minutes.
If H move 1 sigma is about 2 dollars, a 2 dollar move is a reasonable target and a 4 dollar move is the stretch target.
Important limitations
Implied volatility changes
The option target prices assume IV stays constant. In real markets IV can change during the move, especially on 0DTE, around news, or during sharp selloffs. Treat option targets as a baseline estimate.
Not a standalone signal
This indicator does not generate buy or sell signals. Combine it with your entry model, structure, or momentum confirmation.
Liquidity matters
Very wide bid ask spreads can distort the inferred IV. Use liquid contracts.
Suggested defaults for SPY
Use a liquid near the money option for the current expiry.
Horizon 30 for scalps, 60 for intraday, 120 for swings.
Keep expiry time at 16:00 New York.
Disclaimer
This script is for educational and informational purposes only and is not financial advice. Options involve risk and may not be suitable for all traders.
Panik-Tief-Signal: Aktien Put-Call RatioUsing the put call ratio (equites), this indicator identifies panic situations on the stock market and therefor can be used for long entries. no advice, no recommendation.
Dealer Control Index (DCI) Oscillator BreakoutsOverview
The Dealer Control Index (DCI) is a structural oscillator designed to measure market stability based on the relationship between price and key institutional "hedging levels" (Gamma Flip). Unlike momentum-based oscillators like RSI, the DCI focuses on Dealer Gamma Exposure—the point where market makers shift from supporting price (Long Gamma) to accelerating moves (Short Gamma).
How to Use
This indicator requires a Manual Anchor (Flip Level) to function with high precision. Users should identify the current institutional Gamma Flip level for their specific ticker and input it into the script settings.
Positive Score (+25 to +100): Price is above the Flip Level. Dealers are in a "Long Gamma" position, typically resulting in lower volatility and "dip-buying" behavior.
Neutral Zone (-75 to +25): The "Transition Zone." Price is fluctuating near the hedge-rebalancing point. Expect "choppy" price action.
The Gamma Trap (-75 to -100): Price has snapped significantly below the Flip Level. Dealers are now "Short Gamma" and may be forced to sell into further price drops to hedge their books, potentially creating a "Waterfall" effect.
Key Features
Volatility Normalized: Uses ATR-based normalization to ensure the -100 to +100 scale is consistent across different asset classes (e.g., comparing SPY to NVDA).
Sigmoid Smoothing: Employs a sigmoid curve to filter out "market noise" and provide a clear visual of when the regime shift is actually occurring.
Visual Regimes: Color-coded zones (Green/Red) provide instant feedback on the current dealer hedging bias.
Key Zone$ - Support and Resistance0DTE Bounce Zones (6M) — Support & Resistance with VWAP, Volume, and Risk Management
This indicator is built for intraday and 0DTE options trading, focused on high-quality bounce and rejection setups at historically proven support and resistance zones.
It automatically identifies key zones from six months of historical price action and waits for real-time confirmation before signaling CALL or PUT opportunities. The goal is to reduce noise, avoid weak bounces, and provide clear, rules-based trade structure.
====================================================================
CORE FEATURES
====================================================================
Historical Support & Resistance Zones (6 Months)
Zones are built using 15-minute pivot highs and lows.
A zone must be tested at least 3 times to be considered valid.
Nearby zones are merged automatically to reduce clutter.
Zones extend forward in time and update dynamically.
Support zones are shown in green, resistance zones in red.
These are higher-quality structural levels, not same-day levels.
====================================================================
0DTE-Focused Entry Logic
Signals only trigger when price interacts with a confirmed zone and shows a strong rejection candle.
Signals are limited to high-probability trading windows only.
Market Open: 9:30–10:45 ET
Market Close: 3:00–4:00 ET
This avoids midday chop and focuses on periods with real momentum.
====================================================================
VWAP Confirmation (Strict)
CALL setups require a VWAP reclaim.
PUT setups require a VWAP loss.
This aligns trades with institutional order flow instead of counter-trend noise.
====================================================================
MACD Momentum Filter
MACD histogram behavior is used to confirm momentum direction and avoid taking bounces against the prevailing move.
====================================================================
ATR Candle Strength Filter
The signal candle must be large enough relative to ATR.
This filters out weak or indecisive candles that often fail with 0DTE.
====================================================================
Advanced Volume Confirmation (Relative Volume)
Relative Volume (RVOL) is used instead of raw volume.
Different RVOL thresholds are applied for CALLS versus PUTS.
Higher RVOL is required for PUTS due to downside urgency.
Lower RVOL is allowed for CALLS due to grind-up behavior.
Separate RVOL thresholds are used for the market open and market close.
This ensures signals only occur when real participation is present.
====================================================================
Built-In Risk Management (2:1 Reward/Risk)
Every signal automatically calculates an entry, stop loss, and target.
Stop loss is based on the zone edge with an ATR buffer.
Targets default to a 2:1 reward-to-risk ratio.
Entry, stop, and target levels are drawn directly on the chart and included in alerts.
====================================================================
Smart Alerts (CALLS & PUTS)
Alerts trigger only when all conditions are met.
Alerts include trade direction, entry price, stop price, target price, and RVOL information.
Alerts are designed for 5-minute confirmation trading.
To use alerts, select “Any alert() function call” when creating the alert.
====================================================================
INTENDED USE
====================================================================
0DTE options trading.
5-minute chart confirmation.
Index ETFs and liquid equities such as SPY, QQQ, IWM, and SPX.
Traders who want aggressive entries with confirmation.
Traders who value structure, volume, and risk control.
====================================================================
NOTES
====================================================================
This is not a prediction tool.
Signals require discipline and confirmation.
Best results come from trading only the highest-quality setups.
NSE Monthly Expiry 2022-26 : Ashish RajoriaThis indicator, "NSE Monthly Expiry Marker 2022-2026", is designed for traders on TradingView to visually track NSE (National Stock Exchange) monthly F&O (Futures & Options) expiry dates from 2022 to 2026. It plots red dashed vertical lines on each expiry date, with labels showing the month, year, and exact date for easy identification. The dates are accurately calculated based on NSE rules: last Thursday for months up to August 2025, and last Tuesday from September 2025 onwards, with holiday adjustments (e.g., shifted if expiry falls on a holiday). Additionally, it includes trading days, holidays in the session, and a link to www.GSTwork.com for reference. Ideal for option traders to plan strategies around expiry cycles, this tool helps in analyzing patterns over multiple years without manual calculations. Note: Ensure your chart timeframe is daily or higher for best visibility.






















