PROTECTED SOURCE SCRIPT
SPX ORB 60m → 0DTE Credit Spreads (Signals & Webhooks)

SPX ORB 60m → 0DTE Credit Spreads (Signals & Webhooks)
This indicator implements a 60-minute Opening Range Breakout (ORB) workflow for SPX and maps the first breakout during a monitoring window to a same-day options credit-spread idea. It’s signal-only (no backtesting) and includes both visual planning tools and automation hooks (webhooks/alerts).
How it works
ORB window: 09:30–10:30 New York. The script builds ORB High/Low and fixes them at 10:30.
Monitoring window: 10:31–12:00 New York.
The first wick break picks direction:
Break above ORB High → bullish bias → PUT credit spread idea (short strike below ORB Low − offset).
Break below ORB Low → bearish bias → CALL credit spread idea (short strike above ORB High + offset).
One signal per day. The bar is tagged “Fired PUT/CALL”.
Key inputs
Spread width ($), strike step ($), and independent short-strike offsets for PUT/CALL.
Eligibility thresholds by % of 09:30 open or points (separate minima for PUT vs CALL), plus an “ignore thresholds” test mode.
Day-of-week filters per side.
Preview before fire: show gray dotted “hypothetical” strikes only when eligible (or always), or hide until the actual trigger.
If the chosen side is blocked by weekday filter, you can still display it disabled (gray).
Visuals
ORB Rectangle: from 10:30 to 16:00 NY spanning ORB High/Low; updates intraday and then stays fixed. Optional label shows the range in pts and %.
Executed lines & labels: customizable style and width; colorized after the first trigger.
“NOT ELIGIBLE” gray label (optional) when thresholds/day filters are not met.
Outcome tag at session close (informational): WIN/LOSE relative to the short strike.
ORB High/Low plotted with plot.style_linebr for clean session edges.
Probability box (informational)
Optional box displayed at the breakout with a 0–100% composite score from:
ORB/ATR size (capped),
ADX (Wilder calculation inside the script),
ATR regime vs a long SMA baseline.
All lengths, caps, weights, colors and opacity are configurable, including a time offset to place the box.
Automation
Two backends supported: DigitalOcean server.js or SignalStack (Tastytrade).
Optional limit_price per leg and time_in_force (day/gtc) for SignalStack.
Alertconditions provided for PUT / CALL signals so you can create alerts from the TradingView dialog.
Additionally, the script can emit alert() payloads on trigger (enable in settings) to drive your webhook.
Notes
Designed for intraday NY session; 1–15m charts are typical.
Signals are for automation/planning, not recommendations. Validate risk, fills, and routing.
Disclaimer
For educational/informational purposes only. Not financial advice. Options trading involves substantial risk.
SPX ORB 60m → Spreads de crédito 0DTE (webhook Tastytrade)
Indicador para estrategia intradía que construye el rango de apertura (ORB) de 60 min en SPX (09:30–10:30 NY), y durante 10:31–12:00 detecta la primera ruptura por mecha. Según la dirección, propone un spread de crédito 0DTE:
Rompe por arriba (High ORB) → sesgo alcista → spread PUT de crédito (short por debajo del Low ORB – offset).
Rompe por abajo (Low ORB) → sesgo bajista → spread CALL de crédito (short por encima del High ORB + offset).
Solo 1 disparo por día, con etiqueta “Fired PUT/CALL”.
Ajustes clave
Ancho del spread ($) y paso de strike ($).
Offsets ($) independientes para PUT/CALL.
Umbrales de elegibilidad por % (vs apertura 09:30) o por puntos, con mínimos distintos para PUT/CALL; modo “ignorar umbrales” para pruebas.
Filtros por día de la semana (activar PUT/CALL por día).
Preview antes del disparo: mostrar u ocultar strikes hipotéticos en gris (solo si cumple o siempre); o no mostrar nada hasta que realmente dispare.
Si el lado elegido está bloqueado por día, puedes mostrarlo en gris (OFF).
Visuales
Rectángulo ORB: de 10:30 a 16:00 NY entre High/Low del ORB; se actualiza en tiempo real y queda fijo el resto del día. Etiqueta opcional con rango en puntos y % para evaluar rápidamente si “vale la pena”.
Líneas/etiquetas de ejecución con estilo y grosor configurables; colores por estado.
Etiqueta “NOT ELIGIBLE” (EN): opcional, en gris cuando no cumple reglas/umbrales.
Etiqueta de resultado al cierre (16:00): WIN/LOSE según el precio vs el strike corto (solo informativa).
Las líneas ORB High/Low usan plot.style_linebr para que corten limpio en los bordes de sesión.
Caja de “probabilidad” (informativa)
Opcional, aparece en la ruptura y muestra un score (0–100%) basado en:
Tamaño del ORB vs ATR,
ADX (cálculo de Wilder),
Régimen de ATR vs su media larga.
Configurable (periodos, límites, pesos, colores, opacidad) y con desplazamiento en minutos para ubicarla.
Automatización / Webhooks
Backends: DigitalOcean server.js o SignalStack (Tastytrade).
Opcional limit_price por pierna y time_in_force (day/gtc) en SignalStack.
Cantidad y preferencia 0DTE configurables.
Las alertas se envían solo cuando dispara (no en previews).
Uso recomendado
Gráficos intradía en sesión NY (1–15m).
Es una herramienta de ejecución/automatización, no una recomendación.
Verifica riesgo, slippage y ejecución con tu bróker.
Aviso
Contenido educativo/informativo. No es asesoría financiera. Operar opciones implica riesgo elevado.
This indicator implements a 60-minute Opening Range Breakout (ORB) workflow for SPX and maps the first breakout during a monitoring window to a same-day options credit-spread idea. It’s signal-only (no backtesting) and includes both visual planning tools and automation hooks (webhooks/alerts).
How it works
ORB window: 09:30–10:30 New York. The script builds ORB High/Low and fixes them at 10:30.
Monitoring window: 10:31–12:00 New York.
The first wick break picks direction:
Break above ORB High → bullish bias → PUT credit spread idea (short strike below ORB Low − offset).
Break below ORB Low → bearish bias → CALL credit spread idea (short strike above ORB High + offset).
One signal per day. The bar is tagged “Fired PUT/CALL”.
Key inputs
Spread width ($), strike step ($), and independent short-strike offsets for PUT/CALL.
Eligibility thresholds by % of 09:30 open or points (separate minima for PUT vs CALL), plus an “ignore thresholds” test mode.
Day-of-week filters per side.
Preview before fire: show gray dotted “hypothetical” strikes only when eligible (or always), or hide until the actual trigger.
If the chosen side is blocked by weekday filter, you can still display it disabled (gray).
Visuals
ORB Rectangle: from 10:30 to 16:00 NY spanning ORB High/Low; updates intraday and then stays fixed. Optional label shows the range in pts and %.
Executed lines & labels: customizable style and width; colorized after the first trigger.
“NOT ELIGIBLE” gray label (optional) when thresholds/day filters are not met.
Outcome tag at session close (informational): WIN/LOSE relative to the short strike.
ORB High/Low plotted with plot.style_linebr for clean session edges.
Probability box (informational)
Optional box displayed at the breakout with a 0–100% composite score from:
ORB/ATR size (capped),
ADX (Wilder calculation inside the script),
ATR regime vs a long SMA baseline.
All lengths, caps, weights, colors and opacity are configurable, including a time offset to place the box.
Automation
Two backends supported: DigitalOcean server.js or SignalStack (Tastytrade).
Optional limit_price per leg and time_in_force (day/gtc) for SignalStack.
Alertconditions provided for PUT / CALL signals so you can create alerts from the TradingView dialog.
Additionally, the script can emit alert() payloads on trigger (enable in settings) to drive your webhook.
Notes
Designed for intraday NY session; 1–15m charts are typical.
Signals are for automation/planning, not recommendations. Validate risk, fills, and routing.
Disclaimer
For educational/informational purposes only. Not financial advice. Options trading involves substantial risk.
SPX ORB 60m → Spreads de crédito 0DTE (webhook Tastytrade)
Indicador para estrategia intradía que construye el rango de apertura (ORB) de 60 min en SPX (09:30–10:30 NY), y durante 10:31–12:00 detecta la primera ruptura por mecha. Según la dirección, propone un spread de crédito 0DTE:
Rompe por arriba (High ORB) → sesgo alcista → spread PUT de crédito (short por debajo del Low ORB – offset).
Rompe por abajo (Low ORB) → sesgo bajista → spread CALL de crédito (short por encima del High ORB + offset).
Solo 1 disparo por día, con etiqueta “Fired PUT/CALL”.
Ajustes clave
Ancho del spread ($) y paso de strike ($).
Offsets ($) independientes para PUT/CALL.
Umbrales de elegibilidad por % (vs apertura 09:30) o por puntos, con mínimos distintos para PUT/CALL; modo “ignorar umbrales” para pruebas.
Filtros por día de la semana (activar PUT/CALL por día).
Preview antes del disparo: mostrar u ocultar strikes hipotéticos en gris (solo si cumple o siempre); o no mostrar nada hasta que realmente dispare.
Si el lado elegido está bloqueado por día, puedes mostrarlo en gris (OFF).
Visuales
Rectángulo ORB: de 10:30 a 16:00 NY entre High/Low del ORB; se actualiza en tiempo real y queda fijo el resto del día. Etiqueta opcional con rango en puntos y % para evaluar rápidamente si “vale la pena”.
Líneas/etiquetas de ejecución con estilo y grosor configurables; colores por estado.
Etiqueta “NOT ELIGIBLE” (EN): opcional, en gris cuando no cumple reglas/umbrales.
Etiqueta de resultado al cierre (16:00): WIN/LOSE según el precio vs el strike corto (solo informativa).
Las líneas ORB High/Low usan plot.style_linebr para que corten limpio en los bordes de sesión.
Caja de “probabilidad” (informativa)
Opcional, aparece en la ruptura y muestra un score (0–100%) basado en:
Tamaño del ORB vs ATR,
ADX (cálculo de Wilder),
Régimen de ATR vs su media larga.
Configurable (periodos, límites, pesos, colores, opacidad) y con desplazamiento en minutos para ubicarla.
Automatización / Webhooks
Backends: DigitalOcean server.js o SignalStack (Tastytrade).
Opcional limit_price por pierna y time_in_force (day/gtc) en SignalStack.
Cantidad y preferencia 0DTE configurables.
Las alertas se envían solo cuando dispara (no en previews).
Uso recomendado
Gráficos intradía en sesión NY (1–15m).
Es una herramienta de ejecución/automatización, no una recomendación.
Verifica riesgo, slippage y ejecución con tu bróker.
Aviso
Contenido educativo/informativo. No es asesoría financiera. Operar opciones implica riesgo elevado.
Script protegido
Este script se publica como código cerrado. Sin embargo, puede utilizarlo libremente y sin limitaciones: obtenga más información aquí.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script protegido
Este script se publica como código cerrado. Sin embargo, puede utilizarlo libremente y sin limitaciones: obtenga más información aquí.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.