All indicators

Moving Average Cross Screener

Jun 23, 2021

Static chart image
SignalsDashboardMoving Averages

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.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.