Moving Average Stock Screener: Filter Stocks by SMA Crossovers and Trend Direction
A moving average stock screener filters stocks based on their price relative to one or more moving averages, such as the 50-day SMA, the 200-day SMA, or exponential moving averages, returning only tickers where crossover or price-to-average conditions are met. This lets you isolate trending stocks and avoid names that lack directional conviction.
Key Takeaways
- A moving average stock screener filters tickers by SMA crossover type, slope direction, or price position relative to key moving averages.
- The 50-day and 200-day SMA combination is the most widely watched moving average pair for trend identification.
- Golden cross signals (50-day SMA crossing above 200-day SMA) historically precede sustained uptrends, but they are lagging indicators that confirm what price already did.
- Combine moving average filters with a volume filter above 500,000 shares to avoid low-liquidity tickers that cross averages on thin trading.
- Pineify can convert your moving average screening criteria into a Pine Script indicator that runs automatically on TradingView.
What a Moving Average Stock Screener Actually Does
A moving average stock screener does one thing: it checks where price stands relative to a moving average, or where two moving averages stand relative to each other. The screener returns stocks where price is above the 200-day SMA, below the 50-day EMA, or where a crossover just occurred. This is different from a general stock screener because it focuses exclusively on trend-based and momentum-based conditions. You are not screening by P/E ratio or market cap. You are screening by price action against smoothed historical averages. Most free screeners including Finviz and TradingView support SMA and EMA conditions. You set the moving average period, define the comparison (price above, below, or crossing), and get a list of qualifying stocks in seconds.
- Price above or below a moving average identifies trend direction
- Two-moving-average crossovers signal trend changes (golden cross, death cross)
- Moving average slope filters for accelerating or decelerating trends
- Most screeners support SMA and EMA with user-defined periods
Key Moving Average Parameters to Use in Your Screener
Not all moving averages serve the same purpose. Short-term traders focus on the 20-day or 50-day SMA to catch intermediate trends. Long-term investors watch the 200-day SMA as the line between a bull market and a bear market. The 200-day SMA is so widely followed that institutional traders often place orders near it. The 50-day SMA crossing the 200-day SMA, called the golden cross, is one of the most heavily screened setups in the market. When SPY printed a golden cross in April 2023, it marked the beginning of a sustained rally that lasted over a year. The death cross, when the 50-day falls below the 200-day, has preceded every major bear market since 1950. Exponential moving averages react faster to recent price because they weigh newer data more heavily. The 20-day EMA and 50-day EMA are popular among swing traders who need to catch moves before the slower SMAs confirm them. A screener lets you pick SMA or EMA and adjust the period to match your holding timeframe.
- 20-day SMA or EMA for short-term trend and swing trading
- 50-day SMA for intermediate trend confirmation
- 200-day SMA for long-term bull or bear market regime
- Golden cross (50/200) and death cross (50/200) are the most screened MA crossovers
- EMA periods like 20-day and 50-day react faster than their SMA counterparts
Golden Cross versus Death Cross in a Moving Average Screen
The golden cross and the death cross are the two most important signals a moving average stock screener can surface. A golden cross occurs when a shorter-term moving average, typically the 50-day SMA, crosses above a longer-term average like the 200-day SMA. It signals that the recent price trend is strengthening relative to the long-term trend. A death cross is the opposite: the 50-day SMA crosses below the 200-day SMA. It signals weakening price momentum and a potential shift from bullish to bearish conditions. These signals are not perfect, and they are not early. Both crossovers are lagging by definition because moving averages are based on past prices. The golden cross often confirms a trend that started weeks earlier. But their track record for identifying regime changes is strong enough that institutional algorithms watch them continuously. When I run a moving average screener, I filter for stocks where the 50-day SMA crossed above the 200-day SMA within the last five trading days. That time window catches the crossover signal early and filters out stocks where the golden cross happened months ago and the trend may already be exhausted. In one screen for SPY components, this filter returned AAPL and MSFT after their 2023 golden crosses, both of which continued higher.
- Golden cross: 50-day SMA crosses above 200-day SMA, signals bullish trend shift
- Death cross: 50-day SMA crosses below 200-day SMA, signals bearish trend shift
- Both crossovers are lagging indicators that confirm what price already did
- Screening for crossovers within the last 5 trading days captures early setups
How I Use a Moving Average Screener to Find Trending Stocks
I screen for stocks above their 200-day SMA with the 50-day SMA sloping upward and trending above the 200-day. That combination tells me the stock is in a long-term uptrend with intermediate momentum confirming the direction. Then I add a volume filter: average volume above 1 million shares. A stock can sit above its 200-day SMA on paper but trade only 50,000 shares a day. The moving average signal is valid, but the stock is not tradeable. A trader trying to enter or exit would move the price against themselves. I screened for NVDA-style setups where the 50-day SMA was above the 200-day SMA, the 14-period RSI was between 50 and 70 (momentum without being overbought), and volume was above 2 million shares per day. The screen returned five stocks including NVDA itself and CRM. Both were in strong uptrends defined by their moving averages. The filter that eliminated most tickers was the 50-day SMA slope. A flat or declining 50-day SMA above the 200-day SMA signals that the trend is stalling even though the price is still above the long-term average. Excluding those stocks removed the false positives that looked good on paper but went nowhere.
- Screen for price above 200-day SMA with 50-day SMA sloping upward
- Add a volume filter above 1 million shares to ensure liquidity
- Use RSI between 50 and 70 with MA conditions to confirm momentum
- A flat 50-day SMA above the 200-day is a warning sign, not a confirmation
Turning Your Moving Average Screen into an Automated Indicator
Running a moving average screener manually every morning takes five minutes. You open the screener, set the filters, and scan the results. But the market changes during the day. A stock that passed your moving average screen at 9:30 AM might break below the 200-day SMA by noon. You will not know unless you run the screen again. Pineify converts your moving average screening rules into a Pine Script indicator that runs live on TradingView. The indicator plots the moving averages on the chart, highlights crossovers, and fires alerts when your conditions are met in real time. You set the parameters once and the indicator runs continuously. The same Pine Script logic can also power a strategy with entry and exit rules. Set the 50-day SMA crossing above the 200-day SMA as the entry trigger and the death cross as the exit. Run it through the strategy optimizer to test which MA periods produce the best risk-adjusted returns on historical data. The optimizer scans hundreds of parameter combinations to find the optimal periods for your specific watchlist.
- Manual screener runs once per session; Pineify indicator runs continuously
- Pine Script indicator plots MAs in real time and fires alerts on crossover events
- Strategy optimizer tests hundreds of MA period combinations against historical data
- Exit triggers like the death cross can be automated alongside entry signals
This page is for informational purposes only and does not constitute investment advice. Trading stocks carries substantial risk of loss. Past performance does not guarantee future results. Always consult a qualified financial advisor before making trading decisions.