OPEN-SOURCE SCRIPT
מעודכן

RBD Advanced Pinbar

181
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. קרא עוד בתנאים וההגבלות.