Moving Average Cross Screener
Jun 23, 2021

The Moving Average Cross Screener indicator allows users to monitor up to 20 different assets simultaneously for bullish or bearish moving average crossovers across any timeframe. This tool provides a centralized dashboard to track a custom watchlist, helping traders identify potential entry and exit points based on classic trend-following logic.
Usage
The Usage section describes how the script can be used, examples should be provided in this section. To use the indicator, populate the symbol inputs with your preferred tickers (e.g., AAPL, BTCUSD, EURUSD). The tool will then scan these assets in real-time based on the chart's current timeframe.
When a "Fast MA" crosses above a "Slow MA," the asset symbol will appear under the "Potential Buy Signals" section of the on-screen label. Conversely, when the "Fast MA" crosses below the "Slow MA," it will appear under "Potential Sell Signals." This is particularly useful for traders following the 8/21 EMA strategy or the 50/200 SMA "Golden Cross" strategy. Users can also configure alerts to be notified the moment a cross occurs on any ticker in the list.
Details
The script utilizes the request.security() function to fetch data for multiple tickers without needing to switch between charts. It applies a uniform calculation logic—defined by the maScanner function—across all selected instruments.
The screener is built to be flexible, supporting both Simple Moving Averages (SMA) and Exponential Moving Averages (EMA). By refactoring the logic into a scanner function, the script efficiently determines ta.crossover and ta.crossunder states for the entire watchlist every bar. The visual output is rendered using a dynamic label that updates its position based on the user's offset preferences.
Settings
- Source: Determines the price data used for the MA calculations (e.g., Close, Open, HL2).
- Fast MA: Sets the period length for the shorter moving average.
- Slow MA: Sets the period length for the longer moving average.
- MA Type: Allows the user to toggle between "EMA" (Exponential) and "SMA" (Simple).
- Show Screener Label: Toggles the visibility of the on-screen dashboard.
- Pos. Label x-axis offset: Adjusts the horizontal placement of the dashboard relative to the current bar.
- Pos. Size Label y-axis offset: Adjusts the vertical placement of the dashboard.
- Symbol 1 - 20: Individual input fields to define the specific tickers to be monitored.
FAQ
How many assets can I track at once with this tool? You can track up to 20 unique symbols simultaneously within a single instance of the indicator.
Can I use different timeframes for the scanner than what is on my chart? The current version of the script is designed to scan assets based on the timeframe currently selected on your charting platform.
How do I get access to the Moving Average Cross Screener? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

