OPEN-SOURCE SCRIPT
Session Breakout Detector (SBD)

Overview:
The Session Breakout Detector (SBD) is a TradingView indicator designed to identify and visualize breakouts from major trading sessions. It tracks a selected session (Tokyo, London, or New York) and detects price movements beyond the session's high or low, assisting traders in spotting potential breakout opportunities.
Key Features:
- Session Selection: Choose between Tokyo, London, or New York sessions.
- Breakout Detection Modes:
- Confirmed Bar: Detects breakouts when a candle closes beyond the session's range.
- Intrabar: Detects breakouts as soon as the price exceeds the session's high or low within a
candle.
- Visual Indicators:
- Displays session high, low, and range with a colored box for clear visualization.
- Marks breakouts with green (bullish) or red (bearish) triangles.
- Optional 50-Period SMA: Adds a 50-period Simple Moving Average to the chart for trend
analysis.
- Alerts: Configurable alerts for bullish and bearish breakouts.
Usage Instructions:
1. Select Session: Choose the desired trading session (Tokyo, London, or New York) from the
input settings.
2. Choose Breakout Detection Mode: Select between 'By confirmed bar' or 'By intrabars' based
on your trading preference.
3. Enable SMA (Optional): Toggle the 'Use SMA?' option to display the 50-period Simple Moving
Average.
4. Set Alerts: Configure alerts for breakout signals as per your trading strategy.
⚠️Note: This indicator is intended for informational purposes only and should not be construed as financial advice. Users are encouraged to conduct their own research and consider their individual risk tolerance before making trading decisions.
The Session Breakout Detector (SBD) is a TradingView indicator designed to identify and visualize breakouts from major trading sessions. It tracks a selected session (Tokyo, London, or New York) and detects price movements beyond the session's high or low, assisting traders in spotting potential breakout opportunities.
Key Features:
- Session Selection: Choose between Tokyo, London, or New York sessions.
- Breakout Detection Modes:
- Confirmed Bar: Detects breakouts when a candle closes beyond the session's range.
- Intrabar: Detects breakouts as soon as the price exceeds the session's high or low within a
candle.
- Visual Indicators:
- Displays session high, low, and range with a colored box for clear visualization.
- Marks breakouts with green (bullish) or red (bearish) triangles.
- Optional 50-Period SMA: Adds a 50-period Simple Moving Average to the chart for trend
analysis.
- Alerts: Configurable alerts for bullish and bearish breakouts.
Usage Instructions:
1. Select Session: Choose the desired trading session (Tokyo, London, or New York) from the
input settings.
2. Choose Breakout Detection Mode: Select between 'By confirmed bar' or 'By intrabars' based
on your trading preference.
3. Enable SMA (Optional): Toggle the 'Use SMA?' option to display the 50-period Simple Moving
Average.
4. Set Alerts: Configure alerts for breakout signals as per your trading strategy.
⚠️Note: This indicator is intended for informational purposes only and should not be construed as financial advice. Users are encouraged to conduct their own research and consider their individual risk tolerance before making trading decisions.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.