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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.