OPEN-SOURCE SCRIPT
Elephant Bar Detector by McAi

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. ๐๐ฅ
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. ๐๐ฅ
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.