PROTECTED SOURCE SCRIPT
Riesgo sp500 4.0

Key Features:
- Day Filter:
The user can choose to run the strategy on all days or restrict it to a specific weekday (Monday–Sunday).
- Session Definition:
The breakout box is built during the New York morning session (05:00–09:30 NY time).
- At the start of the session, the script initializes a box with the high and low.
- It updates the box boundaries as new highs and lows occur until the session ends.
- Vertical and horizontal lines mark the box boundaries, extended until 12:00 NY.
- Breakout Logic:
After the session ends, the strategy waits for price to break above the box high or below the box low.
- The user can select which breakout number to trade (first, second, or third).
- When the chosen breakout occurs, the strategy enters a long (buy) or short (sell) position.
- Stop Loss and Take Profit:
- A stop loss is set near the midpoint of the box, adjusted at entry.
- Two take profit levels are defined:
- TP1 at 1.2 times the risk distance.
- TP2 at 2 times the risk distance.
- Labels are drawn on the chart to mark SL and TP levels.
- Day Filter:
The user can choose to run the strategy on all days or restrict it to a specific weekday (Monday–Sunday).
- Session Definition:
The breakout box is built during the New York morning session (05:00–09:30 NY time).
- At the start of the session, the script initializes a box with the high and low.
- It updates the box boundaries as new highs and lows occur until the session ends.
- Vertical and horizontal lines mark the box boundaries, extended until 12:00 NY.
- Breakout Logic:
After the session ends, the strategy waits for price to break above the box high or below the box low.
- The user can select which breakout number to trade (first, second, or third).
- When the chosen breakout occurs, the strategy enters a long (buy) or short (sell) position.
- Stop Loss and Take Profit:
- A stop loss is set near the midpoint of the box, adjusted at entry.
- Two take profit levels are defined:
- TP1 at 1.2 times the risk distance.
- TP2 at 2 times the risk distance.
- Labels are drawn on the chart to mark SL and TP levels.
Script protegido
Este script se publica como código cerrado. No obstante, puede utilizarlo libremente y sin ninguna limitación. Obtenga más información aquí.
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 o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script protegido
Este script se publica como código cerrado. No obstante, puede utilizarlo libremente y sin ninguna limitación. Obtenga más información aquí.
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 o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.