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. اقرأ المزيد في شروط الاستخدام.