OPEN-SOURCE SCRIPT
All SMAs Bullish/Bearish Screener (Visually Enhanced)

Title: All SMAs Bullish/Bearish Screener Enhanced: Uncover Elite Trend Opportunities with Confidence & Clarity
Description:
Are you striving to master the art of trend-following, but often find yourself overwhelmed by market noise and ambiguous signals? Do you yearn for a trading edge that clearly identifies high-conviction opportunities and equips you with robust risk management principles? Look no further. The "All SMAs Bullish/Bearish Screener Enhanced" is your ultimate solution – a meticulously crafted Pine Script indicator designed to cut through the clutter, pinpointing stocks where the trend is undeniably strong, and providing you with the clarity you need to trade with confidence.
The Pinnacle of Confluence: Beyond Simple Averages
This is not just another moving average indicator. This is a sophisticated, multi-layered analytical engine built on the profound principle of Confluence. While our core strength lies in tracking a comprehensive suite of six critical Simple Moving Averages (5, 10, 20, 50, 100, and 200-period SMAs), this Enhanced version elevates signal reliability by integrating powerful, independent confirmation layers:
Momentum (Rate of Change - ROC): A true trend isn't just about direction; it's about the force and persistence of price movement. The Momentum filter ensures that the trend is backed by accelerating buying (for bullish signals) or selling (for bearish signals) pressure, validating its underlying strength.
Volume Confirmation: Smart money always leaves a trail. Significant price moves, especially trend continuations or reversals, demand genuine participation. This enhancement confirms that the "All SMAs" alignment is accompanied by above-average volume, signaling institutional conviction and differentiating authentic moves from mere whipsaws.
Relative Strength Index (RSI) Bias: The RSI helps gauge the health of the trend. For a bullish signal, we confirm RSI maintains a bullish bias (above 50), while for a bearish signal, we look for a bearish bias (below 50). This adds another layer of qualitative validation, ensuring the trend isn't overextended without confirmation.
When a stock's price is trading above ALL six critical SMAs, and is simultaneously confirmed by strong positive Momentum, robust Volume, and a bullish RSI bias, you are witnessing a powerful "STRONGLY BULLISH" signal. This rare alignment often precedes sustained upward moves and signifies a prime accumulation phase across all time horizons. Conversely, a "STRONGLY BEARISH" signal, where price is below ALL SMAs with compelling negative Momentum, validating Volume, and a bearish RSI bias, indicates significant distribution and potential for substantial downside.
Seamless Usage & Unmatched Visual Clarity:
Adding this script to your TradingView chart is simple, and its visual design has been meticulously optimized for maximum readability:
Easy Integration: Paste the script into your Pine Editor and click "Add to Chart."
Full Customization: All SMA lengths, RSI periods, Volume SMA periods, and Momentum periods are easily adjustable via user-friendly input settings, allowing you to fine-tune the strategy to your precise preferences.
Optimal Timeframes:
For identifying robust, actionable trends for swing and position trading, Daily (1D) and 4-Hour (240 min) timeframes are highly recommended. These capture significant market movements with reduced noise.
While the script functions on shorter timeframes (e.g., 15min, 60min), these are best reserved for highly active day traders seeking precise entry triggers within broader trends, as shorter timeframes are prone to increased volatility and noise.
Important Note on Candle Size: The width of candles on your chart is controlled by TradingView's platform settings and your zoom level, not directly by Pine Script. To make candles appear larger, simply zoom in horizontally on your chart or adjust the "Bar Spacing" in your Chart Settings (Right-click chart > Settings > Symbol Tab).
Crystal-Clear Visual Signals:
Subtle Background Hues: The chart background will subtly tint lime green for "STRONGLY BULLISH" and red for "STRONGLY BEARISH" conditions. This transparency ensures your underlying candles remain perfectly visible.
Distinct Moving Averages: SMAs are plotted with increased line thickness and a carefully chosen color palette for easy identification.
Precise Signal Triangles: Small, clean green triangles below the bar signify "STRONGLY BULLISH," while small red triangles above the bar mark "STRONGLY BEARISH" conditions. These are unobtrusive yet clear.
Dedicated Indicator Panes: RSI and Momentum plots, along with their key levels, now appear in their own separate, clean sub-panes below the main price chart, preventing clutter and allowing for focused analysis.
On-Chart Status Table: A prominent table in your chosen corner of the chart provides an immediate, plain-language update on the current trend status.
Real-Time Screener Power (via TradingView Alerts): This is your ultimate automation tool. Set up custom alerts for "Confirmed Bullish Trade" or "Confirmed Bearish Trade" conditions. Receive instant notifications (email, app, webhook) for any stock in your watchlist that meets these stringent, high-conviction criteria, allowing you to react swiftly to premium setups across the market without constant chart monitoring.
Mastering Risk & Rewards: The Trader's Edge
Finding a signal is only the first step. This script helps you trade intelligently by guiding your risk management:
Strategic Stop-Loss Placement: Your stop-loss is your capital protector. For a "STRONGLY BULLISH" trade, place it just below the most recent significant swing low (higher low). This is where the uptrend's structure is invalidated. For "STRONGLY BEARISH" trades, place it just above the most recent significant swing high (lower high). As an alternative, consider placing your stop just outside the 20-period SMA; a close beyond this mid-term average often signals a crucial shift. Always ensure your chosen stop-loss aligns with your strict risk-per-trade rules (e.g., risking no more than 1-2% of your capital per trade).
Disciplined Profit Booking: Don't just let winners turn into losers. Employ a strategy to capture gains:
Trailing Stop-Loss: As your trade moves into profit, dynamically move your stop-loss upwards (for longs) or downwards (for shorts). You can trail it by following subsequent swing lows/highs or by using a faster Moving Average like the 10 or 20-period SMA as a dynamic exit point if price closes beyond it. This allows you to ride extended trends while protecting accumulated gains.
Target Levels: Identify potential profit targets using traditional support/resistance levels, pivot points, or Fibonacci extensions. Consider taking partial profits at these key junctures to secure gains while letting a portion of your position run.
Loss of Confluence: A unique exit signal for this script is the breakdown of the "STRONGLY BULLISH" or "STRONGLY BEARISH" confluence itself. If the confirmation layers or even a few of the core SMAs are no longer aligned, it might be time to re-evaluate or exit, even if your hard stop hasn't been hit.
The "All SMAs Bullish/Bearish Screener Enhanced" is more than just code; it's a philosophy for disciplined trend trading. By combining comprehensive multi-factor confluence with intuitive visuals and robust risk management principles, you're equipped to make smarter, higher-conviction trading decisions. Add it to your favorites today and transform your approach to the markets!
#PineScript #TradingView #SMA #MovingAverage #TrendFollowing #StockScreener #TechnicalAnalysis #Bullish #Bearish #MarketScanner #Momentum #Volume #RSI #Confluence #TradingStrategy #Enhanced #Signals #Analysis #DayTrading #SwingTrading
Description:
Are you striving to master the art of trend-following, but often find yourself overwhelmed by market noise and ambiguous signals? Do you yearn for a trading edge that clearly identifies high-conviction opportunities and equips you with robust risk management principles? Look no further. The "All SMAs Bullish/Bearish Screener Enhanced" is your ultimate solution – a meticulously crafted Pine Script indicator designed to cut through the clutter, pinpointing stocks where the trend is undeniably strong, and providing you with the clarity you need to trade with confidence.
The Pinnacle of Confluence: Beyond Simple Averages
This is not just another moving average indicator. This is a sophisticated, multi-layered analytical engine built on the profound principle of Confluence. While our core strength lies in tracking a comprehensive suite of six critical Simple Moving Averages (5, 10, 20, 50, 100, and 200-period SMAs), this Enhanced version elevates signal reliability by integrating powerful, independent confirmation layers:
Momentum (Rate of Change - ROC): A true trend isn't just about direction; it's about the force and persistence of price movement. The Momentum filter ensures that the trend is backed by accelerating buying (for bullish signals) or selling (for bearish signals) pressure, validating its underlying strength.
Volume Confirmation: Smart money always leaves a trail. Significant price moves, especially trend continuations or reversals, demand genuine participation. This enhancement confirms that the "All SMAs" alignment is accompanied by above-average volume, signaling institutional conviction and differentiating authentic moves from mere whipsaws.
Relative Strength Index (RSI) Bias: The RSI helps gauge the health of the trend. For a bullish signal, we confirm RSI maintains a bullish bias (above 50), while for a bearish signal, we look for a bearish bias (below 50). This adds another layer of qualitative validation, ensuring the trend isn't overextended without confirmation.
When a stock's price is trading above ALL six critical SMAs, and is simultaneously confirmed by strong positive Momentum, robust Volume, and a bullish RSI bias, you are witnessing a powerful "STRONGLY BULLISH" signal. This rare alignment often precedes sustained upward moves and signifies a prime accumulation phase across all time horizons. Conversely, a "STRONGLY BEARISH" signal, where price is below ALL SMAs with compelling negative Momentum, validating Volume, and a bearish RSI bias, indicates significant distribution and potential for substantial downside.
Seamless Usage & Unmatched Visual Clarity:
Adding this script to your TradingView chart is simple, and its visual design has been meticulously optimized for maximum readability:
Easy Integration: Paste the script into your Pine Editor and click "Add to Chart."
Full Customization: All SMA lengths, RSI periods, Volume SMA periods, and Momentum periods are easily adjustable via user-friendly input settings, allowing you to fine-tune the strategy to your precise preferences.
Optimal Timeframes:
For identifying robust, actionable trends for swing and position trading, Daily (1D) and 4-Hour (240 min) timeframes are highly recommended. These capture significant market movements with reduced noise.
While the script functions on shorter timeframes (e.g., 15min, 60min), these are best reserved for highly active day traders seeking precise entry triggers within broader trends, as shorter timeframes are prone to increased volatility and noise.
Important Note on Candle Size: The width of candles on your chart is controlled by TradingView's platform settings and your zoom level, not directly by Pine Script. To make candles appear larger, simply zoom in horizontally on your chart or adjust the "Bar Spacing" in your Chart Settings (Right-click chart > Settings > Symbol Tab).
Crystal-Clear Visual Signals:
Subtle Background Hues: The chart background will subtly tint lime green for "STRONGLY BULLISH" and red for "STRONGLY BEARISH" conditions. This transparency ensures your underlying candles remain perfectly visible.
Distinct Moving Averages: SMAs are plotted with increased line thickness and a carefully chosen color palette for easy identification.
Precise Signal Triangles: Small, clean green triangles below the bar signify "STRONGLY BULLISH," while small red triangles above the bar mark "STRONGLY BEARISH" conditions. These are unobtrusive yet clear.
Dedicated Indicator Panes: RSI and Momentum plots, along with their key levels, now appear in their own separate, clean sub-panes below the main price chart, preventing clutter and allowing for focused analysis.
On-Chart Status Table: A prominent table in your chosen corner of the chart provides an immediate, plain-language update on the current trend status.
Real-Time Screener Power (via TradingView Alerts): This is your ultimate automation tool. Set up custom alerts for "Confirmed Bullish Trade" or "Confirmed Bearish Trade" conditions. Receive instant notifications (email, app, webhook) for any stock in your watchlist that meets these stringent, high-conviction criteria, allowing you to react swiftly to premium setups across the market without constant chart monitoring.
Mastering Risk & Rewards: The Trader's Edge
Finding a signal is only the first step. This script helps you trade intelligently by guiding your risk management:
Strategic Stop-Loss Placement: Your stop-loss is your capital protector. For a "STRONGLY BULLISH" trade, place it just below the most recent significant swing low (higher low). This is where the uptrend's structure is invalidated. For "STRONGLY BEARISH" trades, place it just above the most recent significant swing high (lower high). As an alternative, consider placing your stop just outside the 20-period SMA; a close beyond this mid-term average often signals a crucial shift. Always ensure your chosen stop-loss aligns with your strict risk-per-trade rules (e.g., risking no more than 1-2% of your capital per trade).
Disciplined Profit Booking: Don't just let winners turn into losers. Employ a strategy to capture gains:
Trailing Stop-Loss: As your trade moves into profit, dynamically move your stop-loss upwards (for longs) or downwards (for shorts). You can trail it by following subsequent swing lows/highs or by using a faster Moving Average like the 10 or 20-period SMA as a dynamic exit point if price closes beyond it. This allows you to ride extended trends while protecting accumulated gains.
Target Levels: Identify potential profit targets using traditional support/resistance levels, pivot points, or Fibonacci extensions. Consider taking partial profits at these key junctures to secure gains while letting a portion of your position run.
Loss of Confluence: A unique exit signal for this script is the breakdown of the "STRONGLY BULLISH" or "STRONGLY BEARISH" confluence itself. If the confirmation layers or even a few of the core SMAs are no longer aligned, it might be time to re-evaluate or exit, even if your hard stop hasn't been hit.
The "All SMAs Bullish/Bearish Screener Enhanced" is more than just code; it's a philosophy for disciplined trend trading. By combining comprehensive multi-factor confluence with intuitive visuals and robust risk management principles, you're equipped to make smarter, higher-conviction trading decisions. Add it to your favorites today and transform your approach to the markets!
#PineScript #TradingView #SMA #MovingAverage #TrendFollowing #StockScreener #TechnicalAnalysis #Bullish #Bearish #MarketScanner #Momentum #Volume #RSI #Confluence #TradingStrategy #Enhanced #Signals #Analysis #DayTrading #SwingTrading
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.