OPEN-SOURCE SCRIPT
15 Consecutive Heikin Ashi Candles Alert

This indicator detects 15 consecutive Heikin Ashi candles in the same direction (bullish or bearish) and alerts you the moment the 15th candle closes.
Key Features:
Accurate Heikin Ashi detection using ticker.heikinashi (works on any chart type)
Configurable streak length (default 15) and Heikin Ashi timeframe (default 3 minutes)
Triggers alerts only once when the streak reaches exactly 15 (no spam on longer streaks)
Live visual streak counter (histogram) — green for bullish, red for bearish
Optional overlay of clean Heikin Ashi candles on your chart
Real-time table showing current streak direction and count
Background flash + large on-chart labels when the 15-candle streak is confirmed
Clean, lightweight code with zero repainting
Best Use:
Ideal on 3-minute charts for scalping or momentum trading
Great for catching strong trends early in crypto, forex, or stocks
Set alerts for "15 Bullish HA Candles" or "15 Bearish HA Candles"
Settings:
Streak Length → Change alert threshold
Overlay Heikin Ashi Candles → Toggle HA display
Heikin Ashi Timeframe → Use "3" for 3-minute HA data
Key Features:
Accurate Heikin Ashi detection using ticker.heikinashi (works on any chart type)
Configurable streak length (default 15) and Heikin Ashi timeframe (default 3 minutes)
Triggers alerts only once when the streak reaches exactly 15 (no spam on longer streaks)
Live visual streak counter (histogram) — green for bullish, red for bearish
Optional overlay of clean Heikin Ashi candles on your chart
Real-time table showing current streak direction and count
Background flash + large on-chart labels when the 15-candle streak is confirmed
Clean, lightweight code with zero repainting
Best Use:
Ideal on 3-minute charts for scalping or momentum trading
Great for catching strong trends early in crypto, forex, or stocks
Set alerts for "15 Bullish HA Candles" or "15 Bearish HA Candles"
Settings:
Streak Length → Change alert threshold
Overlay Heikin Ashi Candles → Toggle HA display
Heikin Ashi Timeframe → Use "3" for 3-minute HA data
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.