All indicators

HTF Sweep Signals

By LuxAlgoJul 3, 2026

Static chart image
SignalsPatterns

The HTF Sweep Signals indicator identifies liquidity sweeps on a selected higher timeframe, allowing traders to visualize key market reversals and liquidity zones directly on their current chart timeframe.

# Usage The HTF Sweep Signals tool is designed to assist traders in identifying liquidity grabs that occur on larger timeframes without needing to switch back and forth between charts. By applying this indicator, you can see how price interacts with the high and low levels of previous higher timeframe candles.

### Interpreting Signals

  • Bullish Sweep: Marked by a triangle icon below the bar. This occurs when the current price sweeps below the previous higher timeframe low and then closes above the previous low.
  • Bearish Sweep: Marked by a triangle icon above the bar. This occurs when the current price sweeps above the previous higher timeframe high and then closes below the previous high.
  • Visual Overlay: When using a lower timeframe than the chosen setting, the indicator automatically draws a box representing the high and low range of the higher timeframe candle, along with an open line to help visualize price levels.

### Trend Filtering By enabling the Trend Signals setting, you can refine your entries. When active, bullish sweeps only display if the previous higher timeframe candle was bullish (close > open), while bearish sweeps only appear if the previous higher timeframe candle was bearish (close < open). This helps in filtering signals that align with the broader momentum.

# Details The script functions by utilizing the request.security function to fetch price data from a user-defined timeframe. It executes a liquidity sweep logic, which is a common concept in institutional trading where price temporarily moves beyond a significant support or resistance level to trigger stop orders before reversing.

The indicator is built using Pine Script v6 and utilizes advanced drawing objects such as boxes, lines, and labels. It includes a specific check for timeframe synchronization, ensuring that the visual elements are rendered accurately on lower timeframes while providing immediate signal feedback when viewing the chart at the same timeframe as the input.

# Settings ### Inputs

  • Higher Timeframe: Sets the specific timeframe (e.g., 240 minutes) that the indicator will use to calculate liquidity sweeps.
  • Trend Signals: A toggle that restricts signal generation to only those that align with the previous higher timeframe candle direction.

### Style

  • Bullish Color: Determines the color for bullish signal shapes, box borders, and lines.
  • Bearish Color: Determines the color for bearish signal shapes, box borders, and lines.

# FAQ ### How do I access the HTF Sweep Signals indicator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

### Does this indicator repaint? No, the logic utilizes standard security lookahead approaches to ensure that the signals are calculated based on closed bar data, preventing repainting on historical data.

### Can I change the timeframe of the sweep signals? Yes, simply navigate to the settings menu and adjust the Higher Timeframe input to any preferred value, such as 60 for 1 hour or 1440 for 1 day.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.