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.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.