OPEN-SOURCE SCRIPT
HTF ChoCh Wick Scalper

The SMC HTF ChoCh & Single-Wick Alignment is an institutional-grade trend-following indicator designed for TradingView. It blends advanced Smart Money Concepts (SMC) market structure tracking with precise candlestick anatomy filters. By analyzing structural shifts on a Higher Timeframe (HTF), the indicator filters out minor market noise and internal pullbacks on the lower timeframe (LTF), pinpointing high-probability entry candles that align perfectly with the macro order flow.
Objective (The Purpose)
The main objective of this indicator is to ensure traders only trade with the dominant institutional trend and completely avoid "trap" setups during corrections.
By hard-locking the market direction to the Higher Timeframe's ChoCh (Change of Character), the indicator eliminates counter-trend trading. It ensures that lower-timeframe single-wick reversal candles (like Hammers or Shooting Stars) are only highlighted when they represent institutional mitigation or the completion of a pullback in the direction of the macro trend.
How It Works
The indicator operates through a strict three-step filtering process:
1. Higher Timeframe (HTF) Pivot Tracking
The script continuously monitors a user-defined Higher Timeframe (e.g., 5-Minute structure while trading on a 1-Minute chart). It uses a dynamic Pivot mechanism (ta.pivothigh and ta.pivotlow) to identify major institutional swing highs and swing lows on the HTF.
2. HTF Change of Character (ChoCh) Detection
Bullish ChoCh: When the HTF candle body closes above the last confirmed HTF swing high, a Bullish ChoCh is triggered. The indicator locks into a Bullish state.
Bearish ChoCh: When the HTF candle body closes below the last confirmed HTF swing low, a Bearish ChoCh is triggered. The indicator locks into a Bearish state.
Note: Local structural breaks on the lower timeframe are completely ignored, treating them merely as temporary market corrections.
3. Candlestick Anatomy Filtering & Bar Coloring
Once the HTF trend state is locked, the indicator scans the current lower-timeframe candles for specific institutional footprints:
In a Bullish HTF State: The indicator looks only for candles with a bottom wick and absolutely no top wick (signaling strong buying pressure and liquidity sweeps). These bars are colored Green.
In a Bearish HTF State: The indicator looks only for candles with a top wick and absolutely no bottom wick (signaling heavy selling pressure and supply mitigation). These bars are colored Red.
Any candle that does not meet these strict rules or moves against the HTF ChoCh remains its default chart color.
Objective (The Purpose)
The main objective of this indicator is to ensure traders only trade with the dominant institutional trend and completely avoid "trap" setups during corrections.
By hard-locking the market direction to the Higher Timeframe's ChoCh (Change of Character), the indicator eliminates counter-trend trading. It ensures that lower-timeframe single-wick reversal candles (like Hammers or Shooting Stars) are only highlighted when they represent institutional mitigation or the completion of a pullback in the direction of the macro trend.
How It Works
The indicator operates through a strict three-step filtering process:
1. Higher Timeframe (HTF) Pivot Tracking
The script continuously monitors a user-defined Higher Timeframe (e.g., 5-Minute structure while trading on a 1-Minute chart). It uses a dynamic Pivot mechanism (ta.pivothigh and ta.pivotlow) to identify major institutional swing highs and swing lows on the HTF.
2. HTF Change of Character (ChoCh) Detection
Bullish ChoCh: When the HTF candle body closes above the last confirmed HTF swing high, a Bullish ChoCh is triggered. The indicator locks into a Bullish state.
Bearish ChoCh: When the HTF candle body closes below the last confirmed HTF swing low, a Bearish ChoCh is triggered. The indicator locks into a Bearish state.
Note: Local structural breaks on the lower timeframe are completely ignored, treating them merely as temporary market corrections.
3. Candlestick Anatomy Filtering & Bar Coloring
Once the HTF trend state is locked, the indicator scans the current lower-timeframe candles for specific institutional footprints:
In a Bullish HTF State: The indicator looks only for candles with a bottom wick and absolutely no top wick (signaling strong buying pressure and liquidity sweeps). These bars are colored Green.
In a Bearish HTF State: The indicator looks only for candles with a top wick and absolutely no bottom wick (signaling heavy selling pressure and supply mitigation). These bars are colored Red.
Any candle that does not meet these strict rules or moves against the HTF ChoCh remains its default chart color.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.