OPEN-SOURCE SCRIPT
SMC: Multi-TF Bias & HTF BOS with Sessions

Overview
The HTF BOS (Session) - Precision Lines is a comprehensive trading tool designed for Smart Money Concepts (SMC) and price action traders. It identifies Higher Timeframe (HTF) Break of Structure (BOS) levels while filtering them based on specific trading sessions. Additionally, it features a built-in Bias Dashboard that tracks trend alignment across three different timeframes to help you stay on the right side of the market.
Key Features
1. Precision HTF BOS Tracking
Unlike standard indicators that only mark the breakout candle, this script uses high-precision pivot detection to identify the exact origin of a structural high or low.
Tam Yapışık Çizgiler (Precise Lines): The BOS lines are drawn exactly from the pivot point to the breakout point, providing a clean and professional look on your chart.
HTF Integration: You can track structure from a higher timeframe (e.g., 4H) while trading on a lower timeframe (e.g., 15m or 5m).
2. Session Filtering (Time Sensitivity)
Structural breaks are most reliable when they happen during high-volume periods.
The script includes a Session Filter (London & New York).
If enabled, the indicator will only plot BOS levels that occur during your specified trading hours, helping you avoid "fake-outs" or noise during low-liquidity periods (Asian session/After-hours).
3. Multi-Timeframe Bias Dashboard
Stay aware of the "Big Picture" without constantly switching charts. The dashboard monitors three custom timeframes (e.g., Daily, 4H, 1H) and determines if the structure is Bullish or Bearish.
Strong Buy/Sell Signals: When all three timeframes align, the status cell highlights as "BUY" or "SELL."
Wait Status: If timeframes are in conflict, the dashboard suggests "WAIT," encouraging disciplined trading.
How to Use
Define Your Bias: Set your three Bias Timeframes in the settings to match your higher-level strategy.
Set Your BOS TF: Choose the timeframe you want structural breaks to be calculated from (usually one or two steps above your entry chart).
Adjust Sensitivity: Use the "Pivot Sensitivity" setting to filter between minor and major structural points.
Confirm with Session: Enable the session filter to ensure you are only trading breaks that occur during the NY or London sessions.
Settings
Bias Dashboard Settings: Customize the TFs and pivot sensitivity for trend analysis.
BOS & Session Settings: Set your target HTF for drawings and define your trading window (NY Timezone supported).
Visual Settings: Full control over colors (Bullish/Bearish), table positioning, and text sizes.
The HTF BOS (Session) - Precision Lines is a comprehensive trading tool designed for Smart Money Concepts (SMC) and price action traders. It identifies Higher Timeframe (HTF) Break of Structure (BOS) levels while filtering them based on specific trading sessions. Additionally, it features a built-in Bias Dashboard that tracks trend alignment across three different timeframes to help you stay on the right side of the market.
Key Features
1. Precision HTF BOS Tracking
Unlike standard indicators that only mark the breakout candle, this script uses high-precision pivot detection to identify the exact origin of a structural high or low.
Tam Yapışık Çizgiler (Precise Lines): The BOS lines are drawn exactly from the pivot point to the breakout point, providing a clean and professional look on your chart.
HTF Integration: You can track structure from a higher timeframe (e.g., 4H) while trading on a lower timeframe (e.g., 15m or 5m).
2. Session Filtering (Time Sensitivity)
Structural breaks are most reliable when they happen during high-volume periods.
The script includes a Session Filter (London & New York).
If enabled, the indicator will only plot BOS levels that occur during your specified trading hours, helping you avoid "fake-outs" or noise during low-liquidity periods (Asian session/After-hours).
3. Multi-Timeframe Bias Dashboard
Stay aware of the "Big Picture" without constantly switching charts. The dashboard monitors three custom timeframes (e.g., Daily, 4H, 1H) and determines if the structure is Bullish or Bearish.
Strong Buy/Sell Signals: When all three timeframes align, the status cell highlights as "BUY" or "SELL."
Wait Status: If timeframes are in conflict, the dashboard suggests "WAIT," encouraging disciplined trading.
How to Use
Define Your Bias: Set your three Bias Timeframes in the settings to match your higher-level strategy.
Set Your BOS TF: Choose the timeframe you want structural breaks to be calculated from (usually one or two steps above your entry chart).
Adjust Sensitivity: Use the "Pivot Sensitivity" setting to filter between minor and major structural points.
Confirm with Session: Enable the session filter to ensure you are only trading breaks that occur during the NY or London sessions.
Settings
Bias Dashboard Settings: Customize the TFs and pivot sensitivity for trend analysis.
BOS & Session Settings: Set your target HTF for drawings and define your trading window (NY Timezone supported).
Visual Settings: Full control over colors (Bullish/Bearish), table positioning, and text sizes.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.