OPEN-SOURCE SCRIPT
Range Breakout Session Strategy

Range Breakout Session Strategy | Smart Session Box + Visual Risk Management
This strategy is designed to trade breakouts from a predefined session range with automatic execution logic and full visual risk management.
The script builds a trading range during a selected time window (example: 07:30–08:00), then waits for the session to finish before analyzing breakout conditions.
Once price closes outside the range:
✅ Break above → Buy signal
✅ Break below → Sell signal
The entry is executed at the close of the breakout candle.
Features
🔹 Custom session range (fully configurable)
🔹 Time zone selection
🔹 Automatic breakout detection
🔹 Entry only after session closes
🔹 Configurable Stop Loss (ticks)
🔹 Configurable Take Profit (ticks)
🔹 Visual SL and TP zones directly on chart
🔹 Session range displayed as a dynamic box
🔹 Day filter (choose which weekdays are active)
🔹 Built-in strategy backtesting
Strategy Logic
Define the operational session.
The indicator builds the High/Low range.
After the session ends, price is monitored.
First confirmed breakout triggers an entry.
Risk management is automatically applied.
Best Use Cases
• Opening Range Breakout (ORB)
• Index Futures
• Forex Sessions
• Gold (XAUUSD)
• NASDAQ / US30
• Intraday momentum trading
Recommended Timeframes
1 Minute
3 Minutes
5 Minutes
15 Minutes
This tool is intended to provide a structured and visual approach to breakout trading, combining clear execution rules with transparent risk management.
This strategy is designed to trade breakouts from a predefined session range with automatic execution logic and full visual risk management.
The script builds a trading range during a selected time window (example: 07:30–08:00), then waits for the session to finish before analyzing breakout conditions.
Once price closes outside the range:
✅ Break above → Buy signal
✅ Break below → Sell signal
The entry is executed at the close of the breakout candle.
Features
🔹 Custom session range (fully configurable)
🔹 Time zone selection
🔹 Automatic breakout detection
🔹 Entry only after session closes
🔹 Configurable Stop Loss (ticks)
🔹 Configurable Take Profit (ticks)
🔹 Visual SL and TP zones directly on chart
🔹 Session range displayed as a dynamic box
🔹 Day filter (choose which weekdays are active)
🔹 Built-in strategy backtesting
Strategy Logic
Define the operational session.
The indicator builds the High/Low range.
After the session ends, price is monitored.
First confirmed breakout triggers an entry.
Risk management is automatically applied.
Best Use Cases
• Opening Range Breakout (ORB)
• Index Futures
• Forex Sessions
• Gold (XAUUSD)
• NASDAQ / US30
• Intraday momentum trading
Recommended Timeframes
1 Minute
3 Minutes
5 Minutes
15 Minutes
This tool is intended to provide a structured and visual approach to breakout trading, combining clear execution rules with transparent risk management.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.