OPEN-SOURCE SCRIPT
Apex Trend & Liquidity Master v2.1

CONCEPT & OVERVIEW The Apex Trend & Liquidity Master v2.1 is a comprehensive trading suite designed to unify Trend Following, Smart Money Concepts (SMC), and Momentum detection into a single, clutter-free interface.
While the original version provided a foundational trend cloud and pivot points, this v2.1 Edition represents a complete architectural overhaul. It moves beyond simple signal generation by incorporating institutional-grade filters (ADX & Volume), advanced oscillator logic (WaveTrend), and dynamic risk management tools (Chandelier Exits).
KEY IMPROVEMENTS VS. ORIGINAL
From Static to Dynamic Momentum: Replaced the rigid RSI filter with a Multi-Engine Oscillator (WaveTrend, MFI, or RSI), allowing for smoother cycle detection.
From "Pivots" to "Smart Structure": The liquidity engine now detects Swing Failure Patterns (SFP)—identifying when price "pokes" a level to trap traders before reversing—and automatically cleans up mitigated zones.
Choppy Market Protection: Added an ADX (Average Directional Index) integration to strictly filter out signals during flat/sideways markets.
Risk Management Layer: Introduced a Smart Trailing Stop (ATR-based Chandelier Exit) to help traders manage active positions objectively.
Visual Overhaul: Features a modern gradient trend cloud and a fully adaptive "Heads-Up Display" (HUD) that provides real-time market stats.
MAIN FEATURES
1. The Gradient Trend Cloud Uses a volatility-adjusted Moving Average (HMA/EMA/SMA) to define the baseline bias. The cloud expands and contracts based on market volatility (ATR).
Green Gradient: Bullish Bias (Look for Longs).
Red Gradient: Bearish Bias (Look for Shorts).
2. Smart Liquidity & SFPs Automatically plots Supply (Resistance) and Demand (Support) zones.
Mitigation Logic: Zones are automatically removed when price validates and breaks through them, keeping the chart clean.
SFP Detection: Detects "Fake-outs" where price sweeps a high/low but closes back within the range—a high-probability reversal signal.
3. The Momentum Engine You can now select the engine that drives your signals:
WaveTrend (Default): An institutional oscillator that is smoother than RSI and excellent for spotting cycles.
MFI: Volume-weighted RSI that ignores price moves unsupported by volume.
RSI: Classic price velocity.
Includes hidden divergence detection for all three engines.
4. Signal Filters
Volume Filter: Ensures signals are backed by above-average volume.
ADX Filter: Prevents signals when the trend strength is weak (ADX < 20).
HOW TO USE
For a Long Setup:
Trend: The Cloud must be Green.
Signal: Wait for a BUY label (confirmed by Volume + ADX).
Confluence: Ideally, price is bouncing off a Green Demand Zone or forming a Bullish Divergence.
Exit: Trail your stop loss along the Smart Trailing Stop line until price closes below it.
For a Short Setup:
Trend: The Cloud must be Red.
Signal: Wait for a SELL label (confirmed by Volume + ADX).
Confluence: Ideally, price is rejecting a Red Supply Zone or forming a Bearish Divergence.
Exit: Trail your stop loss along the Smart Trailing Stop line until price closes above it.
SETTINGS & TOOLTIPS Every single setting in this script includes a detailed tooltip. Simply hover over the "i" icon in the settings menu to understand exactly what each input controls and how to adjust it for your specific asset (Crypto, Forex, or Stocks).
3. Disclaimer
DISCLAIMER This script is for educational and informational purposes only and does not constitute financial advice. Trading financial markets involves a high level of risk and may not be suitable for all investors. Past performance of any indicator or strategy is not indicative of future results. The author accepts no liability for any losses incurred while using this script. Always practice proper risk management.
While the original version provided a foundational trend cloud and pivot points, this v2.1 Edition represents a complete architectural overhaul. It moves beyond simple signal generation by incorporating institutional-grade filters (ADX & Volume), advanced oscillator logic (WaveTrend), and dynamic risk management tools (Chandelier Exits).
KEY IMPROVEMENTS VS. ORIGINAL
From Static to Dynamic Momentum: Replaced the rigid RSI filter with a Multi-Engine Oscillator (WaveTrend, MFI, or RSI), allowing for smoother cycle detection.
From "Pivots" to "Smart Structure": The liquidity engine now detects Swing Failure Patterns (SFP)—identifying when price "pokes" a level to trap traders before reversing—and automatically cleans up mitigated zones.
Choppy Market Protection: Added an ADX (Average Directional Index) integration to strictly filter out signals during flat/sideways markets.
Risk Management Layer: Introduced a Smart Trailing Stop (ATR-based Chandelier Exit) to help traders manage active positions objectively.
Visual Overhaul: Features a modern gradient trend cloud and a fully adaptive "Heads-Up Display" (HUD) that provides real-time market stats.
MAIN FEATURES
1. The Gradient Trend Cloud Uses a volatility-adjusted Moving Average (HMA/EMA/SMA) to define the baseline bias. The cloud expands and contracts based on market volatility (ATR).
Green Gradient: Bullish Bias (Look for Longs).
Red Gradient: Bearish Bias (Look for Shorts).
2. Smart Liquidity & SFPs Automatically plots Supply (Resistance) and Demand (Support) zones.
Mitigation Logic: Zones are automatically removed when price validates and breaks through them, keeping the chart clean.
SFP Detection: Detects "Fake-outs" where price sweeps a high/low but closes back within the range—a high-probability reversal signal.
3. The Momentum Engine You can now select the engine that drives your signals:
WaveTrend (Default): An institutional oscillator that is smoother than RSI and excellent for spotting cycles.
MFI: Volume-weighted RSI that ignores price moves unsupported by volume.
RSI: Classic price velocity.
Includes hidden divergence detection for all three engines.
4. Signal Filters
Volume Filter: Ensures signals are backed by above-average volume.
ADX Filter: Prevents signals when the trend strength is weak (ADX < 20).
HOW TO USE
For a Long Setup:
Trend: The Cloud must be Green.
Signal: Wait for a BUY label (confirmed by Volume + ADX).
Confluence: Ideally, price is bouncing off a Green Demand Zone or forming a Bullish Divergence.
Exit: Trail your stop loss along the Smart Trailing Stop line until price closes below it.
For a Short Setup:
Trend: The Cloud must be Red.
Signal: Wait for a SELL label (confirmed by Volume + ADX).
Confluence: Ideally, price is rejecting a Red Supply Zone or forming a Bearish Divergence.
Exit: Trail your stop loss along the Smart Trailing Stop line until price closes above it.
SETTINGS & TOOLTIPS Every single setting in this script includes a detailed tooltip. Simply hover over the "i" icon in the settings menu to understand exactly what each input controls and how to adjust it for your specific asset (Crypto, Forex, or Stocks).
3. Disclaimer
DISCLAIMER This script is for educational and informational purposes only and does not constitute financial advice. Trading financial markets involves a high level of risk and may not be suitable for all investors. Past performance of any indicator or strategy is not indicative of future results. The author accepts no liability for any losses incurred while using this script. Always practice proper risk management.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.