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 protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.