PROTECTED SOURCE SCRIPT

Ultimate Stock Trend & Liquidity Screener

52
1. Overview & Originality

This script is a comprehensive, all-in-one screening tool designed to identify high-quality, trend-following opportunities in global stock markets. Its originality lies in combining seven distinct logical checks—spanning liquidity, trend, momentum, and volatility—into a single, cohesive framework.

tradingview.com/pine-screener/

The script's core innovation is its "Total Score" system. This feature moves beyond simple binary filtering by quantifying how well a stock meets the ideal criteria for a tradable trend. This allows you to rank entire watchlists to find the most promising candidates, not just the ones that meet a minimum threshold.

Designed for full integration with the TradingView ecosystem, the script outputs all individual conditions and the Total Score as separate columns in the Pine Screener, enabling deep and flexible market analysis.

2. Core Concepts & How It Works

Built on the classic principles of trend-following, this screener validates potential trades against a robust checklist. The default parameters are tuned for stock market analysis, using standard lookback periods like the 50 and 200-day moving averages.

The script systematically checks for:
  • Liquidity: Guarantees the stock is actively traded by filtering for minimum daily dollar volume (turnover) and a healthy 30-day average volume, which is critical for good execution.
  • Trend Confirmation: Employs the classic 50/200 Simple Moving Average "golden cross" structure to confirm a healthy, long-term uptrend.
  • Trend Quality: Includes an optional filter to verify that the long-term 200-day SMA is actively sloping upwards, ensuring the underlying trend has momentum.
  • Trend Strength: Uses the Average Directional Index (ADX) to filter out weak or sideways markets, focusing only on stocks in a strong, established trend.
  • Momentum: Confirms the trend is supported by sustained buying pressure by checking that the Relative Strength Index (RSI) is in a bullish regime (above 50).
  • Volatility: Requires a minimum level of volatility using the Average True Range (ATR) as a percentage of the price, ensuring the stock has enough movement to be tradable.
  • Strategic Entry: Offers a user-selectable "Entry Mode" to fit different trading styles:
    • Breakout Mode: Identifies stocks hitting new highs on a surge of volume.
    • Pullback Mode: Finds stocks already in a strong uptrend that are experiencing a healthy dip to a short-term moving average.


3. How to Use This Script

This indicator is designed for two primary workflows:

  1. Single-Stock Analysis: Apply the script to any stock chart to see a detailed diagnostic table in the bottom-right corner. This table provides a real-time checklist for all 7 conditions and the Total Score.
  2. Full Market Screening (Recommended):
    • Open the Stock Screener on TradingView.
    • Click "Filters" and select this script from the Pine Screener menu.
    • Click the "Columns" button and add the new columns generated by this script ("Total Score," "Liquidity OK," etc.).
    • You can now sort your entire watchlist by "Total Score" to find the best candidates or filter for stocks that meet a minimum score (e.g.,
      Pine Script®
      Total Score > 5
      ).


4. Inputs & Customization

All parameters are fully customizable in the script's "Settings" menu. You can easily adjust moving average lengths, thresholds, and lookback periods to tailor the screener to your specific strategy, timeframe, or market.

5. Disclaimer

This tool is for educational and analytical purposes only. It is not financial advice and does not guarantee any specific outcome or profit. Past performance is not indicative of future results. Always use this screener as part of a complete trading plan that includes your own analysis and risk management.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.