OPEN-SOURCE SCRIPT

Elephant Bar Detector by McAi

205
Elephant Bar Detector 🐘
Overview:
The Elephant Bar Detector identifies significant bullish and bearish bars (candlesticks) based on size and volume criteria. It also detects follow-through patterns, helping traders confirm strong price movements.

Features:
βœ… Elephant Bar Detection:

Bullish Elephant Bar 🐘: A large bullish candle with high volume.
Bearish Elephant Bar 🐘: A large bearish candle with high volume.
βœ… Follow-Through Confirmation:

Checks if price continues in the same direction after the Elephant Bar.
Requires at least 80% follow-through over the next few bars.
βœ… Visual Markers & Alerts:

Yellow Elephant 🐘 (Bottom) β†’ Bullish signal
Pink Elephant 🐘 (Top) β†’ Bearish signal
Background Highlight: Indicates confirmed follow-through
Alerts: Get notified when an Elephant Bar or follow-through occurs.
How It Works:
Calculates the average candle size over a user-defined period.
Sets a volume threshold (average volume Γ— multiplier).
Identifies Elephant Bars when price movement & volume exceed thresholds.
Confirms follow-through by checking if 80% of the next few bars continue in the same direction.
Customizable Settings:
Length for Average Candle Size (Default: 200)
Volume Multiplier (Default: 1.5)
Number of Follow-Through Bars (Default: 3)
This indicator helps traders spot strong price moves early and confirm trends before entering trades. πŸš€πŸ”₯

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.