OPEN-SOURCE SCRIPT
3 Consecutive Same Color Candles

This TradingView Pine Script detects when three consecutive candlesticks are either all bullish (green) or all bearish (red). It plots a triangle marker above or below the candle to visually signal the pattern and optionally triggers alerts.
How It Works:
A green signal (triangle up) appears below the third candle if the last 3 candles closed higher than they opened (bullish).
A red signal (triangle down) appears above the third candle if the last 3 candles closed lower than they opened (bearish).
Alerts can be set up to notify you immediately when the pattern forms.
Use Case on the 10-Minute Chart:
On the 10-minute chart, this script helps you spot short-term momentum buildups in either direction.
Bullish Signal (3 Green Candles):
Suggests buyers are gaining control.
Can be used to:
Enter breakout trades
Confirm trend continuation
Prepare for scalp entries or momentum trades
Bearish Signal (3 Red Candles):
Indicates sellers are applying pressure.
Can help:
Spot pullbacks or trend reversals
Set up for short positions
Warn of potential breakdowns
Example Trading Ideas:
Pair with EMA or support/resistance for confirmation.
Use as a momentum filter in scalping systems.
Combine with volume or RSI divergence to gauge strength or exhaustion.
How It Works:
A green signal (triangle up) appears below the third candle if the last 3 candles closed higher than they opened (bullish).
A red signal (triangle down) appears above the third candle if the last 3 candles closed lower than they opened (bearish).
Alerts can be set up to notify you immediately when the pattern forms.
Use Case on the 10-Minute Chart:
On the 10-minute chart, this script helps you spot short-term momentum buildups in either direction.
Bullish Signal (3 Green Candles):
Suggests buyers are gaining control.
Can be used to:
Enter breakout trades
Confirm trend continuation
Prepare for scalp entries or momentum trades
Bearish Signal (3 Red Candles):
Indicates sellers are applying pressure.
Can help:
Spot pullbacks or trend reversals
Set up for short positions
Warn of potential breakdowns
Example Trading Ideas:
Pair with EMA or support/resistance for confirmation.
Use as a momentum filter in scalping systems.
Combine with volume or RSI divergence to gauge strength or exhaustion.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。