OPEN-SOURCE SCRIPT

All SMAs Bullish/Bearish Screener

75
Title: All SMAs Bullish/Bearish Screener: Uncover Powerful Trend Alignment

Description:

Are you tired of sifting through countless charts, desperately trying to find stocks that are truly trending? Do you seek clear, unequivocal signals that scream "Buy!" or "Sell!" based on robust price action? Look no further. Introducing the "All SMAs Bullish/Bearish Screener," a powerful yet elegantly simple Pine Script indicator designed to pinpoint stocks where the current price is in absolute harmony (or discord) with a comprehensive suite of Simple Moving Averages.

The Power of Confluence: Why This Indicator Matters

In the dynamic world of trading, strong trends are often characterized by significant alignment across multiple timeframes. This indicator is built on the profound principle of Moving Average Confluence. Instead of just looking at one or two moving averages, this screener meticulously analyzes the relationship between the current closing price and six critical Simple Moving Averages (SMAs): the 5, 10, 20, 50, 100, and 200-period SMAs.

When the price is trading above ALL these moving averages – from the shortest-term (5-period) to the longest-term (200-period) – it's a powerful declaration of unwavering bullish momentum. This often signifies strong institutional buying, a clear accumulation phase, and a robust uptrend across all market horizons. Imagine easily identifying stocks like the one pictured (SAIL), where price confidently rides above every key average, signaling a prime opportunity.

Conversely, when the price is trading below ALL these moving averages, it indicates a severe and widespread bearish bias. This is a warning sign, often preceding further declines, suggesting strong distribution, and a downtrend that impacts every time horizon.

What This Script Delivers:

Unambiguous Trend Identification: Quickly identify stocks exhibiting exceptionally strong bullish or bearish trends. No more guessing – the alignment of all SMAs provides undeniable clarity.

Customizable SMA Lengths: Tailor the moving average periods to your specific trading style and preferred timeframes. Whether you prefer slightly different short, medium, or long-term averages, you have full control via user-friendly input settings.

Instant Visual Cues: The indicator visually highlights these rare and significant conditions directly on your chart:

A green triangle-up signal appears below the bar when all SMAs are bullish.

A red triangle-down signal appears above the bar when all SMAs are bearish.

The chart background color will subtly shift to lime green for bullish alignment and red for bearish alignment, providing immediate visual feedback at a glance.

Real-time Screener Capability (via TradingView Alerts): This is where the true power of this script shines for efficient trading. Set up custom alerts on TradingView for "All SMAs Bullish" or "All SMAs Bearish" conditions. Receive instant notifications (email, mobile, webhook) on any stock in your watchlist that meets these stringent criteria, allowing you to react swiftly to high-probability setups without constant chart monitoring. The alert message even tells you the ticker!

On-Chart Status Display: A clear, concise status message is displayed directly on your chart, indicating "Current Price is ABOVE ALL SMAs (Bullish)", "Current Price is BELOW ALL SMAs (Bearish)", or "SMAs are Mixed," ensuring you're always aware of the prevailing condition.

Who is This For?

This indicator is invaluable for:

Trend Followers: Identify robust trends early and ride them for significant gains.

Swing Traders: Spot strong directional momentum for intermediate-term trades.

Long-Term Investors: Confirm the health and direction of fundamental trends.

Screener Enthusiasts: Automate your market scanning to find the cleanest setups.

Stop wasting time on ambiguous charts. Leverage the "All SMAs Bullish/Bearish Screener" to gain an edge, simplify your analysis, and focus only on the highest conviction trend opportunities. Add it to your favorites today and transform your trading workflow!

#PineScript #TradingView #SMA #MovingAverage #TrendFollowing #StockScreener #TechnicalAnalysis #Bullish #Bearish #MarketScanner

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.