OPEN-SOURCE SCRIPT
已更新 RBD Advanced Pinbar

Inputs / Settings
Detection parameters
Visual options
Toggle display of hammer / shooting star markers, labels, background highlights, and info table.
Customize colors and label size.
For each candle:
Hammer Pinbar (Bullish) if
Shooting Star (Bearish) if
Detection parameters
- lookback_period → How far back to compare wick sizes.
- min_wick_ratio → Minimum wick length as % of total candle height.
- max_body_ratio → Maximum body size as % of total candle height.
- atr_multiplier → Ensures the pinbar candle’s total height is at least a multiple of the ATR (filters out small candles).
- wick_size_multiplier → The wick must be at least X times larger than the biggest wick in recent candles.
Visual options
Toggle display of hammer / shooting star markers, labels, background highlights, and info table.
Customize colors and label size.
For each candle:
- Calculates upper wick, lower wick, and body size in both absolute and percentage terms.
- Checks if the total candle size is “large enough” using ATR.
- Looks back lookback_period bars to find the largest historical upper and lower wick.
- Compares current wick size to the past max wick (must exceed it by wick_size_multiplier).
- Classifies the candle:
Hammer Pinbar (Bullish) if
- Lower wick ≥ min_wick_ratio
- Body ≤ max_body_ratio
- Candle is big enough (ATR filter)
- Lower wick is significantly longer than past wicks
Shooting Star (Bearish) if
- Upper wick ≥ min_wick_ratio
- Body ≤ max_body_ratio
- Candle is big enough
- Upper wick is significantly longer than past wicks
發行說明
To use on Key levels, E.g. Moving average, Support/Resistance發行說明
Update Chart Settings開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。