OPEN-SOURCE SCRIPT
Güncellendi

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
Sürüm Notları
To use on Key levels, E.g. Moving average, Support/Resistance
Sürüm Notları
Update Chart Settings

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.