Simple Custom Screener in PineScript
Sep 12, 2019

The Simple Custom Screener indicator allows users to monitor multiple assets simultaneously by displaying a list of symbols that meet a specific user-defined condition directly on the chart.
Usage
The tool is designed to provide a visual summary of assets that currently satisfy a logical condition defined within the code. By default, the script checks if the current closing price is higher than the opening price across a predefined list of symbols.
To use this script effectively:
- Define Conditions: Users can modify the
customFunc()function to implement their own technical logic (e.g., RSI crossovers, moving average filters). - Manage Symbols: The script uses
request.securityto fetch data for specific tickers. To add or remove tickers, users must manually adjust the symbol list and the corresponding label update logic within the script. - Visual Feedback: The results are displayed in a floating label on the chart, listing every ticker that currently returns a true value for the defined condition.
Details
This script acts as a template for building personalized screeners within TradingView using Pine Script. It bypasses the limitations of the standard platform screener by allowing highly specific, code-based conditions.
The implementation relies on two main components:
- Requesting Data: It utilizes
request.securityto pull data from different symbols and timeframes into the current chart context. - String Concatenation: It builds a string variable (
scrLabelText) by checking the results of each security call. If a condition is met for a specific symbol, that symbol's name is appended to the string, which is then rendered as a label.
Settings
The provided script is a template meant for manual code adjustment rather than UI-based inputs. Key structural components include:
- customFunc: The core logic area where the user defines what technical condition to screen for.
- Symbol Variables: A block of
request.securitycalls where the specific assets and timeframes are defined. - Label Logic: A sequence of conditional updates that determine which symbols appear in the final visual output.
FAQ
How can I add more symbols to the screener?
To add more symbols, you need to create a new request.security variable for the desired ticker and then add a corresponding line to the logic section to update the scrLabelText variable if the condition is met.
Can I change the timeframe for the screening?
Yes, the timeframe is defined within each request.security call. You can change the '1' (representing 1 minute) to any other valid TradingView timeframe like '60', 'D', or 'W'.
How do I get access to the Simple Custom 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.

