OPEN-SOURCE SCRIPT
已更新

RBD Advanced Pinbar

225
Inputs / Settings
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:

  1. Calculates upper wick, lower wick, and body size in both absolute and percentage terms.
  2. Checks if the total candle size is “large enough” using ATR.
  3. Looks back lookback_period bars to find the largest historical upper and lower wick.
  4. Compares current wick size to the past max wick (must exceed it by wick_size_multiplier).
  5. Classifies the candle:

Hammer Pinbar (Bullish) if
  1. Lower wick ≥ min_wick_ratio
  2. Body ≤ max_body_ratio
  3. Candle is big enough (ATR filter)
  4. Lower wick is significantly longer than past wicks


Shooting Star (Bearish) if
  1. Upper wick ≥ min_wick_ratio
  2. Body ≤ max_body_ratio
  3. Candle is big enough
  4. Upper wick is significantly longer than past wicks
發行說明
To use on Key levels, E.g. Moving average, Support/Resistance
發行說明
Update Chart Settings

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。