OPEN-SOURCE SCRIPT
HTF Previous Candle High/Low

HTF Previous Candle High/Low is a multi‑timeframe support‑and‑resistance tool designed for traders who rely on higher‑timeframe structure while executing on lower timeframes. The indicator automatically plots the previous candle’s high and low from any selected higher timeframe (HTF), such as 15m, 30m, 1h, 4h, or any custom timeframe supported by TradingView.
The levels update automatically at the moment a new HTF candle opens, ensuring the lines always reflect the most recent completed candle. Unlike traditional horizontal rays that extend across the entire chart, this tool allows you to define a custom line length (in minutes) so the levels only extend as far as you want—ideal for scalpers and intraday traders who prefer clean charts.
Key Features
HTF Selection: Choose any timeframe (15m, 30m, 1h, 4h, etc.) to pull the previous candle’s high and low.
Auto‑Updating Lines: The indicator updates the same lines every time a new HTF candle forms—no clutter, no line duplication.
Custom Line Length: Define how far the lines extend (in minutes), instead of using full‑screen rays.
Color & Width Customization: Independently set the color, transparency, and width for both high and low lines.
Timeframe Visibility Control: Choose whether the levels appear on all timeframes, only lower timeframes, only higher timeframes, or only the same timeframe.
Clean & Lightweight: Uses minimal resources and avoids unnecessary objects on the chart.
Use Cases
Intraday traders marking key HTF levels while trading on 1m/5m charts.
Scalpers who want HTF structure without cluttering the entire chart.
Swing traders who want clear visual confirmation of previous candle boundaries.
Anyone who uses HTF highs/lows as liquidity zones, breakout levels, or reaction points.
This indicator is designed to be simple, efficient, and highly customizable—giving you full control over how HTF levels appear on your chart.
The levels update automatically at the moment a new HTF candle opens, ensuring the lines always reflect the most recent completed candle. Unlike traditional horizontal rays that extend across the entire chart, this tool allows you to define a custom line length (in minutes) so the levels only extend as far as you want—ideal for scalpers and intraday traders who prefer clean charts.
Key Features
HTF Selection: Choose any timeframe (15m, 30m, 1h, 4h, etc.) to pull the previous candle’s high and low.
Auto‑Updating Lines: The indicator updates the same lines every time a new HTF candle forms—no clutter, no line duplication.
Custom Line Length: Define how far the lines extend (in minutes), instead of using full‑screen rays.
Color & Width Customization: Independently set the color, transparency, and width for both high and low lines.
Timeframe Visibility Control: Choose whether the levels appear on all timeframes, only lower timeframes, only higher timeframes, or only the same timeframe.
Clean & Lightweight: Uses minimal resources and avoids unnecessary objects on the chart.
Use Cases
Intraday traders marking key HTF levels while trading on 1m/5m charts.
Scalpers who want HTF structure without cluttering the entire chart.
Swing traders who want clear visual confirmation of previous candle boundaries.
Anyone who uses HTF highs/lows as liquidity zones, breakout levels, or reaction points.
This indicator is designed to be simple, efficient, and highly customizable—giving you full control over how HTF levels appear on your chart.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。