OPEN-SOURCE SCRIPT
ORB NASDAQ Stop Orders - All Trades

Este script es un indicador para TradingView que automatiza visualmente una estrategia ORB (Opening Range Breakout) sobre el Nasdaq, utilizando órdenes stop basadas en el rango inicial del mercado.
La lógica funciona así:
Define un rango ORB usando la vela o conjunto de velas entre las 9:30 y 9:45 AM.
Calcula automáticamente el máximo y mínimo de ese rango.
Después de las 9:45 AM, espera un breakout:
Si el precio rompe el máximo → genera una entrada BUY.
Si rompe el mínimo → genera una entrada SELL.
El Stop Loss se coloca al lado opuesto del rango ORB.
El Take Profit se calcula automáticamente usando un Risk Reward configurable (RR).
Además, el script:
Dibuja visualmente el rango ORB en el gráfico.
Muestra cajas de TP y SL estilo estrategia de TradingView.
Coloca etiquetas de BUY, SELL, TP, SL y STOP TIME.
Permite cerrar operaciones automáticamente a una hora específica si no alcanzaron TP o SL.
Lleva estadísticas en tiempo real:
número de trades,
BUY vs SELL,
TP vs SL,
winrate,
trades cerrados por tiempo,
ganancias y pérdidas.
También incluye alertas automáticas para entradas BUY y SELL, por lo que puede conectarse con automatizaciones o bots externos.
La lógica funciona así:
Define un rango ORB usando la vela o conjunto de velas entre las 9:30 y 9:45 AM.
Calcula automáticamente el máximo y mínimo de ese rango.
Después de las 9:45 AM, espera un breakout:
Si el precio rompe el máximo → genera una entrada BUY.
Si rompe el mínimo → genera una entrada SELL.
El Stop Loss se coloca al lado opuesto del rango ORB.
El Take Profit se calcula automáticamente usando un Risk Reward configurable (RR).
Además, el script:
Dibuja visualmente el rango ORB en el gráfico.
Muestra cajas de TP y SL estilo estrategia de TradingView.
Coloca etiquetas de BUY, SELL, TP, SL y STOP TIME.
Permite cerrar operaciones automáticamente a una hora específica si no alcanzaron TP o SL.
Lleva estadísticas en tiempo real:
número de trades,
BUY vs SELL,
TP vs SL,
winrate,
trades cerrados por tiempo,
ganancias y pérdidas.
También incluye alertas automáticas para entradas BUY y SELL, por lo que puede conectarse con automatizaciones o bots externos.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.