Dynamic Messages & Easy Screener
Feb 14, 2021

The Dynamic Messages & Easy Screener tool provides an automated way to monitor multiple securities for price breakouts and breakdowns while generating detailed alert messages. It simplifies the tracking of price action across various assets by consolidating real-time data into a visual screener and structured alert system.
Usage
The tool is designed to track whether the current price closes above the previous day's high or below the previous day's low for a predefined list of symbols. When a condition is met, the script updates a visual label on the chart and triggers a dynamic alert message.
To use the tool effectively:
- Visual Screener: Look at the labels on the chart to see which symbols have recently triggered a breakout (Close Above Prev Day High) or breakdown (Close Below Prev Day Low).
- Dynamic Alerts: Configure TradingView alerts to receive notifications that include the specific ticker, current close price, percentage change, and the relevant high/low level breached.
- Multi-Symbol Tracking: By default, the script tracks major indices and stocks (e.g., DJI, IXIC, GOLD, AAPL, TSLA), allowing for a broad market overview without switching charts.
Details
The script utilizes Pine Script arrays to handle dynamic message construction, ensuring that multiple signals within the same bar are captured and displayed clearly. It uses request.security() to fetch OHLC data and percentage change values for each scanned security.
The implementation logic follows these steps:
- It calculates whether the price of a ticker has crossed the previous period's boundaries.
- It gathers price data (Close, High, Low) and the daily percentage change.
- It formats this data into a human-readable string.
- It updates the on-chart labels and triggers an
alert()function with the specific data variables included in the message.
Settings
- Time Frame: Determines the resolution used for scanning and identifying high/low levels (e.g., Daily, Weekly).
FAQ
How do I add more symbols to the screener?
Users can modify the script's main logic by adding more calls to the trigger function with the desired ticker ID.
Can I change the breakout conditions?
Yes, the script is structured so that the logic within the trigger function can be replaced with other technical indicators or price action rules.
How do I access this tool?
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.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.