PROTECTED SOURCE SCRIPT
Q1 Hourly Breakout Strategy [Full Time & Risk Management]

This is a highly customizable Hourly Breakout Strategy designed to capture momentum shifts at the start of specific hours. It automatically identifies an "Opening Range" (default 15 minutes) at the beginning of an hour and triggers a trade when the price confirms a breakout above or below that range.
Unlike standard breakout scripts, this strategy offers institutional-grade time filtering, allowing you to surgically select exactly when the strategy is active down to the specific Hour, Day of the Week, and even the Week of the Month.
📈 How It Works
The Range: At the start of every enabled hour, the script tracks the High and Low for a user-defined duration (e.g., the first 15 minutes).
The Box: Once the duration is over, a visual box is locked in place.
The Trigger: A candle close outside of this box triggers an entry (Long for bullish breakout, Short for bearish).
The Exit: Trades are managed via fixed Stop Loss and Take Profit percentages.
🛠 Key Features
1. Flexible Range Duration
You are not locked into a specific timeframe. You can set the "Range Duration" to any value (e.g., 5 min, 15 min, 30 min).
Works on any chart timeframe smaller than your range (e.g., use a 1m or 3m chart for a 15m range).
2. Advanced Time Filtering
Hourly Filter: specific checkboxes for every hour of the futures session (18:00 to 15:00). Easily disable choppy "lunch hours" or low-volume overnight sessions.
Daily Filter: Select specific trading days (e.g., skip Fridays or Sundays).
Week of Month Filter: Unique logic allows you to enable/disable specific weeks (e.g., avoid Week 1 for NFP or Week 5 for end-of-month flows).
3. Robust Risk Management
% of Equity Sizing: Automatically calculates position size based on your account balance to control risk (essential for backtesting Futures like NQ/MNQ on smaller accounts).
Fixed Contract Sizing: Option to switch to a fixed number of contracts.
4. Visual Aids
Draws the "Opening Range" box on the chart for visual backtesting.
Plots confirmation dots and entry markers (L/S) to clearly show signal generation.
⚙️ How to Use
Apply the strategy to a low-timeframe chart (e.g., 1m, 3m, or 5m).
In Settings, adjust "Range Duration" to your preferred opening window (Default: 15 mins).
Use the "Active Trading Hours" and "Active Weeks" checkboxes to filter out bad market conditions.
Adjust SL/TP percentages to match the volatility of the asset you are trading.
Disclaimer: This strategy is for educational and backtesting purposes. Past performance does not guarantee future results. Always manage your risk.
Unlike standard breakout scripts, this strategy offers institutional-grade time filtering, allowing you to surgically select exactly when the strategy is active down to the specific Hour, Day of the Week, and even the Week of the Month.
📈 How It Works
The Range: At the start of every enabled hour, the script tracks the High and Low for a user-defined duration (e.g., the first 15 minutes).
The Box: Once the duration is over, a visual box is locked in place.
The Trigger: A candle close outside of this box triggers an entry (Long for bullish breakout, Short for bearish).
The Exit: Trades are managed via fixed Stop Loss and Take Profit percentages.
🛠 Key Features
1. Flexible Range Duration
You are not locked into a specific timeframe. You can set the "Range Duration" to any value (e.g., 5 min, 15 min, 30 min).
Works on any chart timeframe smaller than your range (e.g., use a 1m or 3m chart for a 15m range).
2. Advanced Time Filtering
Hourly Filter: specific checkboxes for every hour of the futures session (18:00 to 15:00). Easily disable choppy "lunch hours" or low-volume overnight sessions.
Daily Filter: Select specific trading days (e.g., skip Fridays or Sundays).
Week of Month Filter: Unique logic allows you to enable/disable specific weeks (e.g., avoid Week 1 for NFP or Week 5 for end-of-month flows).
3. Robust Risk Management
% of Equity Sizing: Automatically calculates position size based on your account balance to control risk (essential for backtesting Futures like NQ/MNQ on smaller accounts).
Fixed Contract Sizing: Option to switch to a fixed number of contracts.
4. Visual Aids
Draws the "Opening Range" box on the chart for visual backtesting.
Plots confirmation dots and entry markers (L/S) to clearly show signal generation.
⚙️ How to Use
Apply the strategy to a low-timeframe chart (e.g., 1m, 3m, or 5m).
In Settings, adjust "Range Duration" to your preferred opening window (Default: 15 mins).
Use the "Active Trading Hours" and "Active Weeks" checkboxes to filter out bad market conditions.
Adjust SL/TP percentages to match the volatility of the asset you are trading.
Disclaimer: This strategy is for educational and backtesting purposes. Past performance does not guarantee future results. Always manage your risk.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.