Custom Multi-Timeframe Screener with Alerts
May 19, 2021

The Custom Multi-Timeframe Screener with Alerts indicator is a powerful tool designed to monitor multiple assets simultaneously across different timeframes for specific technical conditions. It helps traders identify trend alignment and momentum shifts by scanning up to 20 symbols using a dual-timeframe logic.
Usage
The Usage section focuses on monitoring several symbols for a specific EMA-based condition. By default, the script scans for an EMA crossover on the current chart timeframe while confirming the trend direction on a user-defined higher timeframe.
Examples of usage include:
- Trend Confirmation: Identify bullish momentum when a fast EMA crosses above a slow EMA on the intraday chart, provided the higher timeframe EMA alignment is also bullish.
- Symbol Monitoring: View the status of up to 20 different tickers (Stocks, Forex, Crypto) in a single visual label on your main chart.
- Alert Automation: Use the built-in
alert()function to receive notifications whenever any of the screened symbols meet the criteria at the close of a bar.
Details
The script utilizes the request.security() function to fetch data for multiple symbols. Due to TradingView's limit of 40 security calls per script, this tool is optimized to handle 2 timeframes for 20 symbols (20 symbols x 2 timeframes = 40 calls).
The logic operates in two stages:
- Current Timeframe: Checks for an EMA crossover (Fast EMA crossing Slow EMA).
- Higher Timeframe: Checks for EMA positioning (Fast EMA above/below Slow EMA) to serve as a trend filter. A signal is only generated and displayed if both timeframes show alignment.
Settings
General Settings
- Higher Timeframe: The timeframe used for trend confirmation (e.g., Daily, 4H).
- EMA Fast Length: The period for the shorter-term Exponential Moving Average.
- EMA Slow Length: The period for the longer-term Exponential Moving Average.
Symbols
- Symbol 01 - 20: Input fields to define the specific tickers you wish to screen.
FAQ
How do I access the Custom Multi-Timeframe Screener with Alerts? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Can I screen more than 20 symbols?
TradingView limits scripts to 40 security calls. To screen more symbols, you would need to reduce the number of timeframes being checked or use multiple instances of the script.
How do I set up alerts for all symbols? Create an alert by selecting this indicator in the Alert Dialog and choosing the "Any alert() function call" condition. This will trigger a single alert containing the names of all symbols currently meeting the criteria.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.