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 อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน