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が提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。