PROTECTED SOURCE SCRIPT
Look Back Calculator

Custom Lookbacks with Individual Colors (Accurate on All Timeframes)
A clean, monochrome-grey indicator that displays historical closing price levels from user-defined lookback periods.
Key Features:
• 4 Custom Hourly Levels (e.g., 1.5h, 3h, 6h, 9h or any value you choose) – fully accurate on 15-minute and lower timeframes
• 4 Custom Daily Levels (e.g., 20d, 40d, 60d, 90d or any number of days)
• Independent toggle for each level
• Individual color selection for every vertical line
• Table column backgrounds match the selected vertical line colors
• Optional candle highlighting (background/border/both) at lookback bars
• Dashed vertical lines at lookback points (toggleable)
• Current price row with automatic spanning
• Time row shown only for daily levels (cleaner layout for intraday)
• Alerts on price crossing any enabled level (with dynamic messages)
• Compact mode for shorter labels
Perfect for support/resistance analysis, order flow, or ICT/SMC concepts. Works seamlessly on any timeframe, including 15min charts.
A clean, monochrome-grey indicator that displays historical closing price levels from user-defined lookback periods.
Key Features:
• 4 Custom Hourly Levels (e.g., 1.5h, 3h, 6h, 9h or any value you choose) – fully accurate on 15-minute and lower timeframes
• 4 Custom Daily Levels (e.g., 20d, 40d, 60d, 90d or any number of days)
• Independent toggle for each level
• Individual color selection for every vertical line
• Table column backgrounds match the selected vertical line colors
• Optional candle highlighting (background/border/both) at lookback bars
• Dashed vertical lines at lookback points (toggleable)
• Current price row with automatic spanning
• Time row shown only for daily levels (cleaner layout for intraday)
• Alerts on price crossing any enabled level (with dynamic messages)
• Compact mode for shorter labels
Perfect for support/resistance analysis, order flow, or ICT/SMC concepts. Works seamlessly on any timeframe, including 15min charts.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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.