OPEN-SOURCE SCRIPT
Scenario Screener — Consolidation → Bullish Setup

The script combines multiple indicators to filter out false signals and only highlight strong conditions:
Consolidation Check
Uses ATR % of price → filters out stocks in tight ranges.
Uses Choppiness Index → confirms sideways/non-trending behavior.
Momentum Shift (Bullish Bias)
MACD Histogram > 0 → bullish momentum starting.
RSI between 55–70 → strength without being overbought.
Stochastic %K & %D > 70 → confirms strong momentum.
Volume & Accumulation
Chaikin Money Flow (CMF > 0) → buying pressure.
Chaikin Oscillator > 0 (debug only) → accumulation phase.
Trend Direction
+DI > -DI (from DMI) → buyers stronger than sellers.
ADX between 18–40 → healthy trend strength (not too weak, not overheated).
Breakout Filter (Optional)
If enabled, requires price to cross above 20 SMA before signal confirmation.
📈 Outputs
✅ Green label (“MATCH”) below the bar when all bullish conditions align.
✅ Background highlight (light green) when signal appears.
✅ Info Table (top-right) summarizing key values:
Signal = True/False
MACD, CMF, Chaikin values
Consolidation Check
Uses ATR % of price → filters out stocks in tight ranges.
Uses Choppiness Index → confirms sideways/non-trending behavior.
Momentum Shift (Bullish Bias)
MACD Histogram > 0 → bullish momentum starting.
RSI between 55–70 → strength without being overbought.
Stochastic %K & %D > 70 → confirms strong momentum.
Volume & Accumulation
Chaikin Money Flow (CMF > 0) → buying pressure.
Chaikin Oscillator > 0 (debug only) → accumulation phase.
Trend Direction
+DI > -DI (from DMI) → buyers stronger than sellers.
ADX between 18–40 → healthy trend strength (not too weak, not overheated).
Breakout Filter (Optional)
If enabled, requires price to cross above 20 SMA before signal confirmation.
📈 Outputs
✅ Green label (“MATCH”) below the bar when all bullish conditions align.
✅ Background highlight (light green) when signal appears.
✅ Info Table (top-right) summarizing key values:
Signal = True/False
MACD, CMF, Chaikin values
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。