OPEN-SOURCE SCRIPT
已更新 50% Wick Detector + ATR Filter

This indicator highlights candles where the upper or lower wick is at least 50% of the candle’s total range. It is designed to help identify potential liquidity sweeps, rejection candles, and price action reversal zones.
To reduce noisy signals, the indicator also uses an ATR filter. By default, the candle must be at least 100% of ATR, meaning the full candle range must be equal to or greater than the Average True Range.
The ATR period automatically adjusts based on the chart timeframe:
Below 1 hour: ATR(100)
1 hour to 4 hours: ATR(50)
Above 4 hours: ATR(14)
In simple terms, the indicator adjusts the ATR period — the number of candles used in the ATR calculation — depending on the timeframe, so lower timeframes use more candles to smooth out noise, while higher timeframes use fewer candles to stay responsive.
To reduce noisy signals, the indicator also uses an ATR filter. By default, the candle must be at least 100% of ATR, meaning the full candle range must be equal to or greater than the Average True Range.
The ATR period automatically adjusts based on the chart timeframe:
Below 1 hour: ATR(100)
1 hour to 4 hours: ATR(50)
Above 4 hours: ATR(14)
In simple terms, the indicator adjusts the ATR period — the number of candles used in the ATR calculation — depending on the timeframe, so lower timeframes use more candles to smooth out noise, while higher timeframes use fewer candles to stay responsive.
版本注释
**50% Wick Detector + ATR Filter**This indicator highlights candles where the upper or lower wick is at least 50% of the candle's total range. It is designed to help identify potential liquidity sweeps, rejection candles, stop hunts, and price action reversal zones.
A wick representing at least half of a candle's total range often indicates strong rejection of price or liquidity being absorbed at that level.
To reduce noisy signals, the indicator also applies an ATR (Average True Range) filter. By default, a candle's total range must be at least equal to 100% of ATR before a signal is generated, helping filter out smaller, less significant candles.
The ATR filter is calculated using the previous completed candle so the current candle does not influence the volatility benchmark it is being measured against.
The ATR period automatically adjusts based on the chart timeframe:
* Below 1 hour: ATR(100)
* 1 hour to 4 hours: ATR(50)
* Above 4 hours: ATR(14)
This adaptive approach smooths out noise on lower timeframes while remaining responsive on higher timeframes.
The indicator includes TradingView alerts, allowing you to receive notifications whenever a qualifying upper or lower wick is detected.
This indicator is intended as a price action tool and works well alongside support and resistance, market structure, volume analysis, and other technical analysis techniques. It is not intended to be used as a standalone trading signal.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。