OPEN-SOURCE SCRIPT
3-Candle Range Breakout (Buy/Sell Signal)

⚡ 3-Candle Range Breakout (Buy/Sell Signal)
This indicator identifies a 3-candle range breakout pattern, designed to capture early momentum shifts after a short-term price contraction. It’s simple, price-action-based, and works effectively for scalping and intraday trading.
🧩 Concept
The setup looks for a 3-bar formation where:
The first candle (Mother) defines the range (High–Low).
The next two candles form inside bars within the first candle’s range.
Depending on candle colors, it identifies potential bullish or bearish setups.
A breakout beyond the first candle’s high or low confirms the entry.
📈 Signal Logic
✅ Buy Setup:
1st candle is red, next two candles are green (price recovery).
Both 2nd and 3rd candles stay inside the 1st candle’s range.
A break above the 1st candle’s high triggers a Buy signal.
❌ Sell Setup:
1st candle is green, next two candles are red (price weakness).
Both 2nd and 3rd candles stay inside the 1st candle’s range.
A break below the 1st candle’s low triggers a Sell signal.
⚙️ Features
🔔 Buy/Sell markers with clear visual labels
🟩 Green triangle for Buy entries
🟥 Red triangle for Sell entries
📊 Pure price-action logic — no lagging indicators
⏱️ Works on any timeframe or instrument
💡 Usage Tip
Use this indicator alongside volume, trend EMAs, or higher timeframe bias for stronger confirmation and better trade filtering.
This indicator identifies a 3-candle range breakout pattern, designed to capture early momentum shifts after a short-term price contraction. It’s simple, price-action-based, and works effectively for scalping and intraday trading.
🧩 Concept
The setup looks for a 3-bar formation where:
The first candle (Mother) defines the range (High–Low).
The next two candles form inside bars within the first candle’s range.
Depending on candle colors, it identifies potential bullish or bearish setups.
A breakout beyond the first candle’s high or low confirms the entry.
📈 Signal Logic
✅ Buy Setup:
1st candle is red, next two candles are green (price recovery).
Both 2nd and 3rd candles stay inside the 1st candle’s range.
A break above the 1st candle’s high triggers a Buy signal.
❌ Sell Setup:
1st candle is green, next two candles are red (price weakness).
Both 2nd and 3rd candles stay inside the 1st candle’s range.
A break below the 1st candle’s low triggers a Sell signal.
⚙️ Features
🔔 Buy/Sell markers with clear visual labels
🟩 Green triangle for Buy entries
🟥 Red triangle for Sell entries
📊 Pure price-action logic — no lagging indicators
⏱️ Works on any timeframe or instrument
💡 Usage Tip
Use this indicator alongside volume, trend EMAs, or higher timeframe bias for stronger confirmation and better trade filtering.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。