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.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由使用,沒有任何限制 — 點擊此處了解更多。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由使用,沒有任何限制 — 點擊此處了解更多。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。