PROTECTED SOURCE SCRIPT
Screener - Moving Average / ATR Breakout Signal [ARTech]

Screener - Moving Average / ATR Breakout Signal [ARTech]
This indicator features a powerful multi-symbol screener that scans up to 40 user-defined symbols in real time for Moving Average (MA) and ATR breakout signals. Users can customize the list of symbols, select the asset class (e.g., Crypto, Stocks, Forex). The screener detects trend-following signals based on price crossing a chosen MA type and length, enhanced by optional ATR-based volatility filters and breakout thresholds to improve signal accuracy. Signals can be displayed on the chart via labels, tooltips, or a compact signal table, allowing traders to monitor multiple markets simultaneously without switching charts. The list of symbols generating signals can also be tracked with customizable alerts, enabling traders to receive real-time notifications for long and short breakout signals directly via TradingView alerts.
This indicator is developed based on the concept of Moving Average / ATR Breakout Signal [ARTech] script on TradingView, with enhancements to support multi-symbol scanning.
Key Features
• Multi-Symbol Screener: Scans up to 40 user-defined symbols simultaneously, with automatic separator detection and symbol validation.
• Repaint Prevention: Carefully designed to avoid repaint issues. The script structure and signal logic have been built to ensure reliable behavior, even across multiple symbols and varying chart conditions.
• Flexible Signal Display: Offers chart labels, tooltips, or a compact table to show signals, enabling multi-market monitoring without switching charts.
• Customizable Alerts: Supports alerts for both long and short signals, sending a list of symbols generating signals as real-time notifications.
• Multi-Type Moving Average Support: Choose from several MA types including EMA, SMA, Hull MA, VWMA, RMA, and TEMA, with customizable source and length settings.
• Flexible Signal Logic: Generates signals when price breaks above or below the selected MA, with options for confirmation candles and wick or close based breakout detection.
• ATR-Based Filtering: Utilizes ATR to create dynamic breakout bands around the MA, reducing noise and improving breakout validation.
• Breakout Threshold Filtering: Adds an optional minimum percentage price move before a new opposite signal is allowed, preventing rapid reversals.
Why use this indicator?
• Scans up to 40 symbols at the same time.
• Users can define the symbol list, asset class, and automatically detects the symbol separator; warns if any symbols are invalid
• Detected signals are shown directly on the chart as labels, tooltips, or in a compact table.
• The list of signal-generating symbols can be tracked with alerts — no need to watch the chart constantly.
How to Use
███████ Alerts ███████
🔸 Long / Short
To enable Custom Alerts, select the desired alert type (Long or Short) from the indicator's settings under the "Alerts" section, you can customize messages and enable notifications for Long and Short signals. Then, you need to activate the fx alert() function call option in TradingView’s alert creation dialog.
Alert messages include your custom message followed by a list of symbols currently giving signals, each shown on a new line. For example, if your input message is set to “🟢 Long Signal” and BTCUSD and ETHUSD are signaling, the alert will look like this:
This format helps you clearly see the type of signal and each symbol individually, making real-time monitoring easier.
🔸 Alert Delay (seconds)
This setting adds a delay before alerts are triggered. It helps ensure that signals are based on confirmed bar closures for slight timing differences between symbol data feeds (especially in multi-symbol mode). For example, setting a 30-second delay allows all symbols to finish processing before the alert fires, avoiding early or incomplete signal lists.
███████ Display / Signal ███████
🔸 Display Mode
Choose how the indicator presents signals on your chart. Focus on a single symbol (Chart mode), Scan and display multiple symbols at once (Screener mode), or hide visuals and use only tables or alerts (No mode).
🔸 Long
You can independently turn ON or OFF the display of Long signals using the toggle.
🔸 Short
You can independently turn ON or OFF the display of Short signals using the toggle.
███████ Symbols ███████
🔸 Symbols
You can enter up to 40 symbols. Symbols must be written in full format. For example: BINANCE:BTCUSDT, NASDAQ:AAPL, or OANDA:EURUSD. TradingView requires this full format to correctly recognize each symbol. Due to TradingView’s limitations, only the first 40 symbols in your list will be processed
🔸 Symbol Filter
When scanning multiple symbols, it's important that they belong to the same market type (Crypto, Stocks, Forex, etc.). Different markets have different trading hours, and mixing them may cause issues.
For example, if your chart is using a stock symbol (like NASDAQ:AAPL) and your symbol list includes crypto symbols (like BINANCE:BTCUSDT), the screener may not work correctly. Since stock markets are not open 24/7, the chart time may fall outside of crypto trading hours — causing crypto signals to fail or not update properly.
To avoid this issue, the indicator includes a Symbol Filter. This lets you filter your symbol list to include only the correct asset type (e.g., only Crypto or only Stocks). By using this filter, you make sure the screener runs under the correct market conditions and avoids signal mismatches.
If you set the filter to None, no filtering will be applied. In this case, you are responsible for making sure all listed symbols match your chart’s market type.
🔸 Show Symbols on Table
This feature helps you quickly review the symbols you've entered. When enabled, a table appears in the bottom-right corner of the chart displaying all symbols from your list along with their market types and statuses
███████ Signal Display Style ███████
🔸 Display Method
Choose how signals will be shown visually
🔸 Symbol Display Format
This setting affects the labels, tooltips, signal table, and alert messages, ensuring consistency across all displays. Select whether you want symbols to appear as:
🔸 Long Signal Icon
Used only in Tooltip mode, these icons (e.g., 🟢 for Long) appear on bars where signals are detected. Customize it freely to match your style or strategy.
🔸 Short Signal Icon
Used only in Tooltip mode, these icons (e.g., 🔴 for Short) appear on bars where signals are detected. Customize it freely to match your style or strategy.
🔸 Size
Adjust the visual size of labels or tooltips. Smaller sizes help reduce clutter when many signals trigger in close proximity.
███████ Signal Table ███████
This section controls the appearance and behavior of the signal table that displays last detected Long and Short signals for your symbols.
🔸 Show
Enable or disable the signal table display on the chart.
🔸 Highlight Signal Duration (Bars)
When a signal occurs, the corresponding cell in the table is highlighted using the selected Long or Short color for this many bars. This helps visually track recent signals over time. The bar where the signal icon appears is counted as 1.
🔸 Table Size
Choose the size of the table to fit your chart layout and readability preferences.
🔸 Table Position
Select where the table appears on your chart (e.g., top right, middle right, bottom left).
🔸 Title
Customize the table header text. The default is “Recent Signals”.
🔸 Background Color
Set the table’s background color and transparency to match your chart’s theme.
🔸 Long Signal Color
Choose the highlight color used to mark Long signals within the table.
🔸 Short Signal Color
Choose the highlight color used to mark Short signals within the table.
🔸 Text Color
Customize the text color inside the table for better contrast and readability.
🔸 Show Bars Since Signal
Optionally display how many bars have passed since each signal appeared. The bar where the signal occurs counts as 1.
███████ Signal ███████
This is the core component of the signal system. You can customize:
🔸 Moving Average Type
Choose from SMA, EMA, WMA, Hull MA, VWMA, RMA, or TEMA
🔸 Length
Adjust the length to suit your strategy.
🔸 Source
Select which price data (e.g., Close, Open, HL2) is used to calculate the MA.
🔸 Confirm Candles
Defines the number of consecutive candles that must break the selected level to confirm a signal.
This helps filter out noise and avoid premature signals.
🔸 Break Type
Specifies how the candle must break the level:
🔸 Filter
This section provides optional filters to improve signal accuracy.
ATR
When the ATR filter is enabled, signals are generated only if the price breaks above the upper ATR line or below the lower ATR line—calculated by adding or subtracting the ATR multiplied threshold from the moving average—and the breakout must occur for the number of consecutive confirmation candles specified by the user input. This helps reduce false signals during low volatility periods.
Breakout
When enabled, breakout confirmation requires the price to cross above the upper breakout line or below the lower breakout line by a specified percentage from the last signal price.
This indicator features a powerful multi-symbol screener that scans up to 40 user-defined symbols in real time for Moving Average (MA) and ATR breakout signals. Users can customize the list of symbols, select the asset class (e.g., Crypto, Stocks, Forex). The screener detects trend-following signals based on price crossing a chosen MA type and length, enhanced by optional ATR-based volatility filters and breakout thresholds to improve signal accuracy. Signals can be displayed on the chart via labels, tooltips, or a compact signal table, allowing traders to monitor multiple markets simultaneously without switching charts. The list of symbols generating signals can also be tracked with customizable alerts, enabling traders to receive real-time notifications for long and short breakout signals directly via TradingView alerts.
This indicator is developed based on the concept of Moving Average / ATR Breakout Signal [ARTech] script on TradingView, with enhancements to support multi-symbol scanning.
Key Features
• Multi-Symbol Screener: Scans up to 40 user-defined symbols simultaneously, with automatic separator detection and symbol validation.
• Repaint Prevention: Carefully designed to avoid repaint issues. The script structure and signal logic have been built to ensure reliable behavior, even across multiple symbols and varying chart conditions.
• Flexible Signal Display: Offers chart labels, tooltips, or a compact table to show signals, enabling multi-market monitoring without switching charts.
• Customizable Alerts: Supports alerts for both long and short signals, sending a list of symbols generating signals as real-time notifications.
• Multi-Type Moving Average Support: Choose from several MA types including EMA, SMA, Hull MA, VWMA, RMA, and TEMA, with customizable source and length settings.
• Flexible Signal Logic: Generates signals when price breaks above or below the selected MA, with options for confirmation candles and wick or close based breakout detection.
• ATR-Based Filtering: Utilizes ATR to create dynamic breakout bands around the MA, reducing noise and improving breakout validation.
• Breakout Threshold Filtering: Adds an optional minimum percentage price move before a new opposite signal is allowed, preventing rapid reversals.
Why use this indicator?
• Scans up to 40 symbols at the same time.
• Users can define the symbol list, asset class, and automatically detects the symbol separator; warns if any symbols are invalid
• Detected signals are shown directly on the chart as labels, tooltips, or in a compact table.
• The list of signal-generating symbols can be tracked with alerts — no need to watch the chart constantly.
How to Use
███████ Alerts ███████
🔸 Long / Short
To enable Custom Alerts, select the desired alert type (Long or Short) from the indicator's settings under the "Alerts" section, you can customize messages and enable notifications for Long and Short signals. Then, you need to activate the fx alert() function call option in TradingView’s alert creation dialog.
Alert messages include your custom message followed by a list of symbols currently giving signals, each shown on a new line. For example, if your input message is set to “🟢 Long Signal” and BTCUSD and ETHUSD are signaling, the alert will look like this:
🟢 Long Signal
BTCUSD
ETHUSD
This format helps you clearly see the type of signal and each symbol individually, making real-time monitoring easier.
🔸 Alert Delay (seconds)
This setting adds a delay before alerts are triggered. It helps ensure that signals are based on confirmed bar closures for slight timing differences between symbol data feeds (especially in multi-symbol mode). For example, setting a 30-second delay allows all symbols to finish processing before the alert fires, avoiding early or incomplete signal lists.
For best results, try different delay values to see what works best with your selected timeframe.
███████ Display / Signal ███████
🔸 Display Mode
Choose how the indicator presents signals on your chart. Focus on a single symbol (Chart mode), Scan and display multiple symbols at once (Screener mode), or hide visuals and use only tables or alerts (No mode).
• Chart Mode: Displays signals only for the current chart symbol. Useful for testing and optimizing signal conditions before scanning multiple assets.
• Screener Mode: Activates the screener functionality, showing results for all valid symbols in your list. Signals appear as labels on the chart and are also listed in the signal table for easy tracking.
• No (Table Only): Hides all on-chart visuals (labels, markers). Signals are still processed and can be viewed in tables or used with alerts. This mode is ideal when you're using multiple screeners at once and want to avoid overlapping visuals. Each screener can display its results in separate table positions (e.g., bottom right, top left, etc.), so turning off chart visuals helps keep your workspace clean while still tracking multiple symbol groups efficiently. This way, you can also track more than 40 symbols by using multiple screener instances with different symbol groups and table positions.
🔸 Long
You can independently turn ON or OFF the display of Long signals using the toggle.
🔸 Short
You can independently turn ON or OFF the display of Short signals using the toggle.
███████ Symbols ███████
🔸 Symbols
You can enter up to 40 symbols. Symbols must be written in full format. For example: BINANCE:BTCUSDT, NASDAQ:AAPL, or OANDA:EURUSD. TradingView requires this full format to correctly recognize each symbol. Due to TradingView’s limitations, only the first 40 symbols in your list will be processed
- Separator Rules: Letters (A–Z), numbers (0–9), underscore (_), dot (.), and exclamation mark (!) are allowed within symbol names (e.g., BINANCE:BTCUSDT.P). Therefore, avoid using them as separators. Instead, use comma (,), semicolon (;), space, or newline to separate multiple symbols.
- Auto Detection: The indicator automatically detects the separator used in your list. If the format is incorrect or a symbol is invalid, a warning will appear to help you fix it.
🔸 Symbol Filter
When scanning multiple symbols, it's important that they belong to the same market type (Crypto, Stocks, Forex, etc.). Different markets have different trading hours, and mixing them may cause issues.
For example, if your chart is using a stock symbol (like NASDAQ:AAPL) and your symbol list includes crypto symbols (like BINANCE:BTCUSDT), the screener may not work correctly. Since stock markets are not open 24/7, the chart time may fall outside of crypto trading hours — causing crypto signals to fail or not update properly.
To avoid this issue, the indicator includes a Symbol Filter. This lets you filter your symbol list to include only the correct asset type (e.g., only Crypto or only Stocks). By using this filter, you make sure the screener runs under the correct market conditions and avoids signal mismatches.
If you set the filter to None, no filtering will be applied. In this case, you are responsible for making sure all listed symbols match your chart’s market type.
For best results, always use symbols from the same market type as your chart symbol. This ensures that candle open/close times align across all symbols, avoiding timing mismatches. Symbols and the chart must follow the same market hours for accurate and consistent signal generation.
🔸 Show Symbols on Table
This feature helps you quickly review the symbols you've entered. When enabled, a table appears in the bottom-right corner of the chart displaying all symbols from your list along with their market types and statuses
- Green background: Symbol is valid and matches the selected Symbol Filter. It can generate signals.
- Gray background: Symbol is valid but does not match the selected filter. It will not generate signals.
- Red background: Symbol is invalid (e.g., due to incorrect names, delisting, or unsupported by broker).
You don’t need to remove invalid or mismatched symbols, but no signals will be generated for them. This visual check makes it easier to catch symbol issues before relying on the screener output.
███████ Signal Display Style ███████
🔸 Display Method
Choose how signals will be shown visually
• Label: The signal appears as a label on the candle. The label includes all triggering symbols as text.
• Tooltip: An icon (such as 🟢 or 🔴) is shown instead of full text. Hold your mouse pointer on the icon on chart for a few seconds to see a tooltip listing the triggered symbols. This method keeps your chart cleaner and less cluttered.
• None: No visual markers appear on candles. Signals are only visible in the signal table — ideal if you're using multiple indicators and want to avoid chart clutter.
🔸 Symbol Display Format
This setting affects the labels, tooltips, signal table, and alert messages, ensuring consistency across all displays. Select whether you want symbols to appear as:
• EXCHANGE:SYMBOL: BINANCE:BTCUSDT
• SYMBOL: BTCUSDT
🔸 Long Signal Icon
Used only in Tooltip mode, these icons (e.g., 🟢 for Long) appear on bars where signals are detected. Customize it freely to match your style or strategy.
🔸 Short Signal Icon
Used only in Tooltip mode, these icons (e.g., 🔴 for Short) appear on bars where signals are detected. Customize it freely to match your style or strategy.
🔸 Size
Adjust the visual size of labels or tooltips. Smaller sizes help reduce clutter when many signals trigger in close proximity.
███████ Signal Table ███████
This section controls the appearance and behavior of the signal table that displays last detected Long and Short signals for your symbols.
🔸 Show
Enable or disable the signal table display on the chart.
🔸 Highlight Signal Duration (Bars)
When a signal occurs, the corresponding cell in the table is highlighted using the selected Long or Short color for this many bars. This helps visually track recent signals over time. The bar where the signal icon appears is counted as 1.
🔸 Table Size
Choose the size of the table to fit your chart layout and readability preferences.
🔸 Table Position
Select where the table appears on your chart (e.g., top right, middle right, bottom left).
🔸 Title
Customize the table header text. The default is “Recent Signals”.
🔸 Background Color
Set the table’s background color and transparency to match your chart’s theme.
🔸 Long Signal Color
Choose the highlight color used to mark Long signals within the table.
🔸 Short Signal Color
Choose the highlight color used to mark Short signals within the table.
🔸 Text Color
Customize the text color inside the table for better contrast and readability.
🔸 Show Bars Since Signal
Optionally display how many bars have passed since each signal appeared. The bar where the signal occurs counts as 1.
███████ Signal ███████
This is the core component of the signal system. You can customize:
🔸 Moving Average Type
Choose from SMA, EMA, WMA, Hull MA, VWMA, RMA, or TEMA
🔸 Length
Adjust the length to suit your strategy.
🔸 Source
Select which price data (e.g., Close, Open, HL2) is used to calculate the MA.
🔸 Confirm Candles
Defines the number of consecutive candles that must break the selected level to confirm a signal.
– If ATR filter is enabled, this level is the ATR bands.
– If ATR is disabled, the Moving Average line is used.
This helps filter out noise and avoid premature signals.
🔸 Break Type
Specifies how the candle must break the level:
– Close: The candle must close beyond the level.
– Wick: A wick touching or exceeding the level is enough.
Both options generate signals only after the candle has closed.
🔸 Filter
This section provides optional filters to improve signal accuracy.
ATR
When the ATR filter is enabled, signals are generated only if the price breaks above the upper ATR line or below the lower ATR line—calculated by adding or subtracting the ATR multiplied threshold from the moving average—and the breakout must occur for the number of consecutive confirmation candles specified by the user input. This helps reduce false signals during low volatility periods.
• Multiplier: Adjusts the width of ATR bands by multiplying the ATR value.
• Length: Sets the period for ATR calculation.
• Smoothing: Selects the smoothing method applied to the ATR (RMA, SMA, EMA, WMA).
Breakout
When enabled, breakout confirmation requires the price to cross above the upper breakout line or below the lower breakout line by a specified percentage from the last signal price.
• Threshold (%): Defines the minimum percentage price movement required to validate a breakout.
• Show Breakout Levels: Toggle to display or hide breakout threshold area on the chart.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
All content shared by ARTech serves educational and informational purposes only. Historical results do not guarantee future outcomes.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
All content shared by ARTech serves educational and informational purposes only. Historical results do not guarantee future outcomes.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.