OPEN-SOURCE SCRIPT
Apex Trend & Liquidity Master (SMC)v7.2

The Apex Trend & Liquidity Master (SMC)v7.2 is a comprehensive trading system designed to solve a specific problem: how to integrate Trend Following, Classic Supply & Demand, and Smart Money Concepts (SMC) onto a single chart without creating visual chaos.
Most indicators force traders to choose between high-lag trend filters or noisy price action concepts. This script combines both into a unified workflow. It uses a sophisticated "Ghost Mode" transparency engine to keep internal market structures subtle, ensuring the trader's focus remains on price action and the dominant trend.
Core Philosophy
This tool operates on the principle of "External Trend, Internal Liquidity." It forces the trader to respect the macro direction (Trend Cloud) while using micro-structure (FVGs, Order Blocks) for precision entries.
Key Features
Trend Architecture (The Context) The foundation of the script is a dynamic Hull Moving Average (HMA) combined with ATR volatility bands. This creates a "Trend Cloud" that visualizes the dominant market state.
Teal Cloud: Bullish Context (Look for Longs).
Maroon Cloud: Bearish Context (Look for Shorts).
Classic Liquidity (The Targets) The script identifies major Swing Highs and Swing Lows based on pivot sensitivity. These are rendered as solid blocks and represent "External Liquidity." These are your primary Take Profit targets or major reversal zones.
Smart Money Concepts (The Entry) The script automatically detects internal market structure, including:
BOS (Break of Structure): Signals trend continuation.
CHoCH (Change of Character): Signals potential trend reversal.
Order Blocks & FVGs: Institutional footprints that act as magnets for price. These feature "Ghost Mode" styling (high transparency, no borders) and "Auto-Mitigation" (they are deleted immediately when price closes through them) to keep the chart clean.
Signal & Risk Engine
Entry Signals: Momentum-based Buy/Sell labels that filter out chop using ADX.
Trailing Stop: A Chandelier-style ATR trailing stop line to assist in trade management and locking in profits.
Visual Legend & Color Hierarchy
To allow for instant chart processing, the colors follow a strict hierarchy:
Context (Dark/Deep Colors): The Trend Cloud and Bar Colors use Deep Teal and Maroon. These indicate the background environment.
Action (Neon Colors): Signals, BOS/CHoCH lines, and the Trailing Stop use Neon Green and Neon Red. These require immediate attention.
Major Levels (Solid Colors): Classic Supply & Demand zones use Standard Forest Green and Brick Red. These are hard targets.
Internal Zones (Pale/Ghost Colors): Order Blocks and FVGs use Pale Mint and Pale Rose with high transparency. These are background areas of interest for entries.
How to Use This Indicator
For the highest probability setups, use a "Confluence Approach" rather than trading signals in isolation:
Identify Direction: Look at the Trend Cloud. Do not trade against the color of the cloud.
Wait for Pullback: Wait for price to retrace into a "Ghost Zone" (Fair Value Gap or Order Block) nested inside the trend.
Wait for Trigger: Look for a Neon "Buy" or "Sell" signal, or a BOS line break in the direction of the trend.
Manage Risk: Use the Trailing Stop line to manage your position.
Target Liquidity: Aim for the solid Classic Supply/Demand zones as exit points.
Settings & Customization
Trend Length: Default is 55 (Swing). Lower this to 20-30 for Scalping.
Signal Toggles: Signals and Trailing Stops are enabled by default but can be toggled off for a pure price-action view.
Sensitivity: The Pivot Lookback (Default 10) controls how many Supply/Demand zones appear.
Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice. Trading in financial markets involves a high degree of risk, and you should not trade with money you cannot afford to lose. Past performance of any trading system or methodology is not necessarily indicative of future results. Always perform your own due diligence and use proper risk management.
Most indicators force traders to choose between high-lag trend filters or noisy price action concepts. This script combines both into a unified workflow. It uses a sophisticated "Ghost Mode" transparency engine to keep internal market structures subtle, ensuring the trader's focus remains on price action and the dominant trend.
Core Philosophy
This tool operates on the principle of "External Trend, Internal Liquidity." It forces the trader to respect the macro direction (Trend Cloud) while using micro-structure (FVGs, Order Blocks) for precision entries.
Key Features
Trend Architecture (The Context) The foundation of the script is a dynamic Hull Moving Average (HMA) combined with ATR volatility bands. This creates a "Trend Cloud" that visualizes the dominant market state.
Teal Cloud: Bullish Context (Look for Longs).
Maroon Cloud: Bearish Context (Look for Shorts).
Classic Liquidity (The Targets) The script identifies major Swing Highs and Swing Lows based on pivot sensitivity. These are rendered as solid blocks and represent "External Liquidity." These are your primary Take Profit targets or major reversal zones.
Smart Money Concepts (The Entry) The script automatically detects internal market structure, including:
BOS (Break of Structure): Signals trend continuation.
CHoCH (Change of Character): Signals potential trend reversal.
Order Blocks & FVGs: Institutional footprints that act as magnets for price. These feature "Ghost Mode" styling (high transparency, no borders) and "Auto-Mitigation" (they are deleted immediately when price closes through them) to keep the chart clean.
Signal & Risk Engine
Entry Signals: Momentum-based Buy/Sell labels that filter out chop using ADX.
Trailing Stop: A Chandelier-style ATR trailing stop line to assist in trade management and locking in profits.
Visual Legend & Color Hierarchy
To allow for instant chart processing, the colors follow a strict hierarchy:
Context (Dark/Deep Colors): The Trend Cloud and Bar Colors use Deep Teal and Maroon. These indicate the background environment.
Action (Neon Colors): Signals, BOS/CHoCH lines, and the Trailing Stop use Neon Green and Neon Red. These require immediate attention.
Major Levels (Solid Colors): Classic Supply & Demand zones use Standard Forest Green and Brick Red. These are hard targets.
Internal Zones (Pale/Ghost Colors): Order Blocks and FVGs use Pale Mint and Pale Rose with high transparency. These are background areas of interest for entries.
How to Use This Indicator
For the highest probability setups, use a "Confluence Approach" rather than trading signals in isolation:
Identify Direction: Look at the Trend Cloud. Do not trade against the color of the cloud.
Wait for Pullback: Wait for price to retrace into a "Ghost Zone" (Fair Value Gap or Order Block) nested inside the trend.
Wait for Trigger: Look for a Neon "Buy" or "Sell" signal, or a BOS line break in the direction of the trend.
Manage Risk: Use the Trailing Stop line to manage your position.
Target Liquidity: Aim for the solid Classic Supply/Demand zones as exit points.
Settings & Customization
Trend Length: Default is 55 (Swing). Lower this to 20-30 for Scalping.
Signal Toggles: Signals and Trailing Stops are enabled by default but can be toggled off for a pure price-action view.
Sensitivity: The Pivot Lookback (Default 10) controls how many Supply/Demand zones appear.
Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice. Trading in financial markets involves a high degree of risk, and you should not trade with money you cannot afford to lose. Past performance of any trading system or methodology is not necessarily indicative of future results. Always perform your own due diligence and use proper risk management.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.