PROTECTED SOURCE SCRIPT
SPX ORB to 0DTE Credit Spreads (Signals & Webhooks)

This indicator outputs signals and webhooks; it does not execute orders or manage positions.
SPX ORB to 0DTE Credit Spreads identifies a 60-minute Opening Range (09:30–10:30 NY) and then, between 10:31–12:00, reacts to the first wick break:
• If price wicks above the ORB high first, it prepares a PUT credit spread (fade of the upside break).
• If price wicks below the ORB low first, it prepares a CALL credit spread (fade of the downside break).
Strikes & visualization
• Short/long strikes are derived from ORB high/low plus user-defined offsets and fixed spread width; preview lines are shown until the signal fires.
• Day-of-week filters (separate for PUT/CALL).
• Thresholds by percent or points to require a minimum ORB size.
• ORB rectangle with range (pts/%) and end-of-day WIN/LOSE label (informational).
• Optional probability box at the moment of the break (weighted ORB/ATR, ADX, ATR-regime).
Alerts & webhooks
• alertcondition for PUT/CALL.
• When enabled, alert() pushes JSON suitable for either a DO server.js route or SignalStack (Tastytrade). This script itself does not place orders.
How to use (quick)
1) Keep your chart on regular RTH minutes. The tool computes the ORB (09:30–10:30) and watches breaks until 12:00.
2) Set spread width ($), strike step, and offsets for short legs. Adjust thresholds (percent/points) and day filters.
3) Turn on alerts/webhooks if you want downstream automation. Verify payloads with paper trading first.
Notes
• No external data is fetched. This is a signal/automation helper around an ORB→0DTE credit spread workflow. It is not affiliated with any vendor.
• Performance depends on fills, slippage, and execution workflow; results are not guaranteed.
----------------------------------------------------------------------------------------------------------------------
Este indicador emite señales y webhooks; no ejecuta órdenes por sí mismo.
Detecta el Opening Range de 60 minutos (09:30–10:30 NY) y, entre 10:31–12:00, reacciona a la primera ruptura por mecha:
• Si la mecha rompe por arriba del ORB High primero, prepara un crédito PUT (fade de la ruptura alcista).
• Si rompe por abajo del ORB Low primero, prepara un crédito CALL (fade de la ruptura bajista).
Strikes y visualización
• Los strikes (short/long) se calculan desde el ORB con offsets y ancho fijo; se muestran líneas en “preview” hasta que dispare.
• Filtros por día de la semana (PUT/CALL por separado).
• Umbrales por porcentaje o puntos para exigir un rango mínimo.
• Rectángulo ORB con rango (pts/%) y etiqueta WIN/LOSE al cierre (informativa).
• Caja de probabilidad opcional al momento de la ruptura (ORB/ATR, ADX, ATR-régimen).
Alertas y webhooks
• alertcondition para PUT/CALL.
• Si activas alert(), envía JSON para DO server.js o SignalStack (Tastytrade). Este script no coloca órdenes por sí mismo.
Uso rápido
1) Mantén el gráfico en minutos RTH. El indicador calcula el ORB (09:30–10:30) y vigila rupturas hasta las 12:00.
2) Ajusta ancho del spread ($), paso de strike y offsets. Configura umbrales y filtros por día.
3) Activa alertas/webhooks si automatizas aguas abajo. Prueba primero en paper.
Notas
• No trae datos externos. Es un asistente de señal/automatización alrededor de ORB→0DTE credit spreads. No está afiliado a ningún proveedor.
• El desempeño depende de fills, slippage y ejecución; no se garantizan resultados.
SPX ORB to 0DTE Credit Spreads identifies a 60-minute Opening Range (09:30–10:30 NY) and then, between 10:31–12:00, reacts to the first wick break:
• If price wicks above the ORB high first, it prepares a PUT credit spread (fade of the upside break).
• If price wicks below the ORB low first, it prepares a CALL credit spread (fade of the downside break).
Strikes & visualization
• Short/long strikes are derived from ORB high/low plus user-defined offsets and fixed spread width; preview lines are shown until the signal fires.
• Day-of-week filters (separate for PUT/CALL).
• Thresholds by percent or points to require a minimum ORB size.
• ORB rectangle with range (pts/%) and end-of-day WIN/LOSE label (informational).
• Optional probability box at the moment of the break (weighted ORB/ATR, ADX, ATR-regime).
Alerts & webhooks
• alertcondition for PUT/CALL.
• When enabled, alert() pushes JSON suitable for either a DO server.js route or SignalStack (Tastytrade). This script itself does not place orders.
How to use (quick)
1) Keep your chart on regular RTH minutes. The tool computes the ORB (09:30–10:30) and watches breaks until 12:00.
2) Set spread width ($), strike step, and offsets for short legs. Adjust thresholds (percent/points) and day filters.
3) Turn on alerts/webhooks if you want downstream automation. Verify payloads with paper trading first.
Notes
• No external data is fetched. This is a signal/automation helper around an ORB→0DTE credit spread workflow. It is not affiliated with any vendor.
• Performance depends on fills, slippage, and execution workflow; results are not guaranteed.
----------------------------------------------------------------------------------------------------------------------
Este indicador emite señales y webhooks; no ejecuta órdenes por sí mismo.
Detecta el Opening Range de 60 minutos (09:30–10:30 NY) y, entre 10:31–12:00, reacciona a la primera ruptura por mecha:
• Si la mecha rompe por arriba del ORB High primero, prepara un crédito PUT (fade de la ruptura alcista).
• Si rompe por abajo del ORB Low primero, prepara un crédito CALL (fade de la ruptura bajista).
Strikes y visualización
• Los strikes (short/long) se calculan desde el ORB con offsets y ancho fijo; se muestran líneas en “preview” hasta que dispare.
• Filtros por día de la semana (PUT/CALL por separado).
• Umbrales por porcentaje o puntos para exigir un rango mínimo.
• Rectángulo ORB con rango (pts/%) y etiqueta WIN/LOSE al cierre (informativa).
• Caja de probabilidad opcional al momento de la ruptura (ORB/ATR, ADX, ATR-régimen).
Alertas y webhooks
• alertcondition para PUT/CALL.
• Si activas alert(), envía JSON para DO server.js o SignalStack (Tastytrade). Este script no coloca órdenes por sí mismo.
Uso rápido
1) Mantén el gráfico en minutos RTH. El indicador calcula el ORB (09:30–10:30) y vigila rupturas hasta las 12:00.
2) Ajusta ancho del spread ($), paso de strike y offsets. Configura umbrales y filtros por día.
3) Activa alertas/webhooks si automatizas aguas abajo. Prueba primero en paper.
Notas
• No trae datos externos. Es un asistente de señal/automatización alrededor de ORB→0DTE credit spreads. No está afiliado a ningún proveedor.
• El desempeño depende de fills, slippage y ejecución; no se garantizan resultados.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.