OPEN-SOURCE SCRIPT
Actualizado 0DTE Credit-Spread Morning Filter

UPDATE: NATIVE ALERTS ADDED!
You asked, we delivered. You no longer need to sit and stare at the dashboard waiting for a green signal.
1. New "Trade Entry Signal" Alert:
I have added a custom alert condition to the code. This triggers the exact moment the dashboard flips from "NO TRADE" to "GREEN" (Strategy Found).
2. How to set it:
Simply click the "Create Alert" button (clock icon) in TradingView, select this indicator, and choose "Trade Entry Signal" from the list.
Now you can get notified on your phone or desktop instantly when the market conditions align for a 0DTE play.
Happy Trading!
You asked, we delivered. You no longer need to sit and stare at the dashboard waiting for a green signal.
1. New "Trade Entry Signal" Alert:
I have added a custom alert condition to the code. This triggers the exact moment the dashboard flips from "NO TRADE" to "GREEN" (Strategy Found).
2. How to set it:
Simply click the "Create Alert" button (clock icon) in TradingView, select this indicator, and choose "Trade Entry Signal" from the list.
Now you can get notified on your phone or desktop instantly when the market conditions align for a 0DTE play.
Happy Trading!
Notas de prensa
0DTE Credit-Spread Morning Filter (SPX/SPY) — Smart StrategySTOP FORCING TRADES IN CHOP. LET THE MARKET TELL YOU WHICH STRATEGY TO USE.
This indicator is a complete "Pre-Flight Checklist" designed specifically for 0DTE (Zero Days to Expiration) credit spread traders on SPX and SPY. It replaces guesswork with a systematic dashboard that analyzes Time, Volatility, Trend Structure, and Range Exhaustion to determine if it is safe to enter a trade.
Unlike standard indicators that just say "Buy" or "Sell," this tool acts as a RISK MANAGER first and a STRATEGY SELECTOR second.
[ NEW! INTEGRATED ALERTS ]
You no longer need to stare at the chart. The script now includes a custom alert condition that triggers the moment all safety checks are passed.
• To Activate: Click "Alert" -> Select this indicator -> Select "Trade Entry Signal".
[ KEY FEATURES ]
1. SMART STRATEGY SELECTOR
The dashboard automatically analyzes the market environment (EMAs + VWAP + Slope) and recommends the highest-probability credit spread for the current conditions:
• "SELL PUT SPREADS" (Bull Trend)
• "SELL CALL SPREADS" (Bear Trend)
• "IRON CONDORS" (Range Day)
• "NO EDGE" (Chop/Messy Structure — Stay Cash)
2. DYNAMIC "SMART ADR" (Average Daily Range)
Most range indicators fail on trend days because they tell you the move is "overextended" too early. This script uses a dynamic logic:
• Range Mode: If the market is chopping, it enforces a strict safety limit (default 70% of ADR) to prevent buying at the top of a range.
• Trend Mode: If a strong trend is detected (Stacked EMAs), it automatically RELAXES the limit (default 125% of ADR), allowing you to ride the momentum without getting a false "Stop Trading" signal.
3. THE 7-POINT SAFETY CHECKLIST
The main signal will only turn GREEN if all safety checks are passed:
• Time Window: Filters out the first 30 mins of open volatility (customizable).
• News Risk: Manual toggle to block signals on FOMC/CPI days.
• Overnight Gap: Warns if the opening gap is too large to trade safely.
• Structure: Ensures price isn't "tangled" inside the moving averages.
• Impulse: Detects massive expansion candles and forces you to wait for volatility to settle.
• VIX Filter: (Optional) Checks if VIX is spiking relative to its moving average.
• Day Type: Ensures you aren't trading against the dominant market bias.
[ HOW TO USE ]
1. Add to Chart: Best used on 5-minute or 1-minute timeframes for SPY/SPX.
2. Check the Dashboard (Bottom Right):
- RED: Do not open a new position. Read the dashboard to see why (e.g., "WAIT (TIME)", "NO TRADE (CHOP)").
- GREEN: The dashboard will display the specific strategy (e.g., "SELL PUT SPREADS").
3. Set an Alert: Use the "Trade Entry Signal" condition to get notified on your phone or desktop when the dashboard turns Green.
[ SETTINGS ]
• Core Filters: Adjust the Overnight Gap threshold and Impulse candle sensitivity.
• ADR / Range: Safety Limit (0.70) and Trend Limit (1.25).
• Structure (EMAs): Fully customizable periods for Fast, Mid, and Slow EMAs.
• Time Window: Set your preferred "Prime" trading hours.
Disclaimer:
This tool is for informational and educational purposes only. It does not provide financial advice. Trading 0DTE options involves significant risk. Always perform your own due diligence.
Notas de prensa
Changelog: Base v1.0 vs Titan v1.11. New Safety Filters (The Trap Prevention)
EMA Fan Out Filter:
Old: Signal turned Green as soon as EMAs crossed, even if they were touching (causing chop losses).
New: Requires EMAs to be separated by 0.5 ATR before confirming a trend.
Max Extension (Rubber Band) Filter:
Old: Would signal Buy at the absolute top of a parabolic move.
New: Blocks trades if price is greater than 2.0 ATR away from the 20 EMA, forcing you to wait for a pullback.
RSI Momentum Filter:
Old: No awareness of Overbought or Oversold conditions.
New: Blocks Bullish trades if RSI is greater than 75 (Overbought) and Bearish trades if RSI is less than 25 (Oversold).
Day Color Filter:
Old: Would buy into a Gap and Fade scenario.
New: Requires price to be above the Daily Open for Bullish trades (Green Day) and below for Bearish trades (Red Day).
2. Logic and Strategy Updates
Gap Cool Down Timer:
Old: Trading could start immediately at 10:00 AM even after a massive gap.
New: If a gap greater than 0.6 percent is detected, the dashboard shows GAP WAIT and blocks trades for 60 minutes (customizable) to let the morning volatility settle.
Iron Condor Relaxed Mode:
Old: VWAP Flatness threshold was 0.35 (Too strict; almost never triggered).
New: Threshold increased to 0.75. Now correctly identifies Range Days and suggests Iron Condors more frequently.
3. Visual Improvements
Chart Signals:
Old: Only line plots.
New: Green Dot for Put Spread Signal (Below bar), Red Dot for Call Spread Signal (Above bar), and Blue Diamond for Iron Condor Signal (Range Day).
Dashboard:
Old: Background color was generic Green or Red.
New: Background turns Blue for Iron Condor signals. Time Window row now displays status like GAP WAIT or PRIME.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.