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
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.