PROTECTED SOURCE SCRIPT
Smart Trend Cloud + Dynamic Gate (V 2.3)

Smart Trend Cloud + Dynamic Gate
[Verson: 2.3]
The Smart Trend Cloud + Dynamic Gate is a comprehensive trend-following system designed to filter out market noise and identify high-probability trend entries. Unlike simple Moving Average crossovers which often fail in ranging markets, this indicator employs a multi-stage validation system (The "Gate") combining Volume, Momentum, and Volatility filters to ensure you only trade when the market has conviction.
Key Features:
> Multi-Type Trend Cloud: Choose between HMA (Hull Moving Average), EMA, or ZeroLag EMA to define the trend baseline.
> The "Dynamic Gate" Filter: A crossover alone does not trigger a signal. The move must be validated by Relative Volume or MACD Histogram momentum within a specific window.
> Choppiness Suppression: Integrated ADX filter turns the candles gray during low-volatility consolidation zones to prevent over-trading.
> Stretch Bands: Optional ATR-based bands to highlight when price is over-extended from the mean.
> Live Dashboard: A table on the chart displaying current Trend State, Relative Volume strength, and ADX values.
How logic Works
1. Trend Definition & The Cloud The core trend is defined by the relationship between a Fast and Slow Moving Average.
Visuals: The space between these MA's forms the "Cloud". The cloud color transparency adjusts dynamically based on the strength of the trend (the spread between the MAs).
MA Options:
HMA: Best for scalping (1m/5m) due to low lag.
ZeroLag EMA: Custom calculation to reduce latency while retaining smoothness.
EMA: Standard trend following.
2. The Entry Gate (Validation) To avoid false signals during "whipsaw" price action, this script uses a logic gate. When a MA crossover occurs, it enters a "Pending" state. It only confirms a BULL or BEAR state if one of the following conditions is met within Gate Window bars:
Volume Spike: Relative Volume (Current Vol / Avg Vol) is greater than the defined threshold (default 1.2x).
Momentum Shift: The MACD Histogram confirms the direction of the trend.
3. Consolidation Filter The script calculates the ADX (Average Directional Index). If the ADX is below the Min ADX Strength threshold (default 20), the market is considered "Choppy."
Visual: Bars turn Gray.
Logic: Trend signals are suppressed until volatility expands.
4. Visual Dashboard A panel is located in the top-right corner providing real-time data:
Trend: Current State (Bull, Bear, or Chop).
Vol: Current Relative Volume (Green if > 1.0).
ADX: Current Trend Strength value.
Settings:
Trend Settings:
Adjust MA types and lengths to fit your timeframe.
Entry Gate: Toggle the Volume/Price gate on/off and adjust the Relative Volume requirement.
Consolidation: Enable/Disable the ADX filter to see all signals or only high-strength ones.
Visuals: Toggle the Cloud, Dashboard, or "Stretch Bands" (ATR bands) to declutter your chart.
Recommended Settings by Timeframe
Since different timeframes require different sensitivities to noise, here are the optimized settings for the Smart Trend Cloud:
⚡ 5 Minute Chart (Scalping)
Best for: Catching quick intraday momentum bursts while filtering chop.
MA Type: HMA (Hull Moving Average for speed)
Fast Length: 9
Slow Length: 21
Min Relative Volume: 1.3 (Requires higher volume to confirm entry)
Min ADX: 25 (Stricter chop filter)
⏱️ 15 Minute Chart (Intraday Swing)
Best for: Day trading with a balance of speed and stability.
MA Type: ZeroLag EMA (Reduces noise better than HMA)
Fast Length: 10
Slow Length: 30
Min Relative Volume: 1.2
Min ADX: 20
hrs 1 Hour Chart (Short-Term Swing)
Best for: Capturing the trend of the week.
MA Type: EMA or ZeroLag EMA
Fast Length: 12
Slow Length: 26 (Classic MACD correlation)
Min Relative Volume: 1.1
Min ADX: 20
📅 1 Day Chart (Position Trading)
Best for: Long-term trends and "Golden Cross" style entries.
MA Type: EMA (Standard Institutional Moving Average)
Fast Length: 20
Slow Length: 50
Min Relative Volume: 1.2
Min ADX: 15 (Allows for earlier entries on major trend shifts)
Alerts:
The script includes built-in alertcondition events for:
Trend Start: Bull (Valid trend detected after filtering).
Trend Start: Bear (Valid trend detected after filtering).
Access & Authorization
This is an Invite-Only script.
[Verson: 2.3]
The Smart Trend Cloud + Dynamic Gate is a comprehensive trend-following system designed to filter out market noise and identify high-probability trend entries. Unlike simple Moving Average crossovers which often fail in ranging markets, this indicator employs a multi-stage validation system (The "Gate") combining Volume, Momentum, and Volatility filters to ensure you only trade when the market has conviction.
Key Features:
> Multi-Type Trend Cloud: Choose between HMA (Hull Moving Average), EMA, or ZeroLag EMA to define the trend baseline.
> The "Dynamic Gate" Filter: A crossover alone does not trigger a signal. The move must be validated by Relative Volume or MACD Histogram momentum within a specific window.
> Choppiness Suppression: Integrated ADX filter turns the candles gray during low-volatility consolidation zones to prevent over-trading.
> Stretch Bands: Optional ATR-based bands to highlight when price is over-extended from the mean.
> Live Dashboard: A table on the chart displaying current Trend State, Relative Volume strength, and ADX values.
How logic Works
1. Trend Definition & The Cloud The core trend is defined by the relationship between a Fast and Slow Moving Average.
Visuals: The space between these MA's forms the "Cloud". The cloud color transparency adjusts dynamically based on the strength of the trend (the spread between the MAs).
MA Options:
HMA: Best for scalping (1m/5m) due to low lag.
ZeroLag EMA: Custom calculation to reduce latency while retaining smoothness.
EMA: Standard trend following.
2. The Entry Gate (Validation) To avoid false signals during "whipsaw" price action, this script uses a logic gate. When a MA crossover occurs, it enters a "Pending" state. It only confirms a BULL or BEAR state if one of the following conditions is met within Gate Window bars:
Volume Spike: Relative Volume (Current Vol / Avg Vol) is greater than the defined threshold (default 1.2x).
Momentum Shift: The MACD Histogram confirms the direction of the trend.
3. Consolidation Filter The script calculates the ADX (Average Directional Index). If the ADX is below the Min ADX Strength threshold (default 20), the market is considered "Choppy."
Visual: Bars turn Gray.
Logic: Trend signals are suppressed until volatility expands.
4. Visual Dashboard A panel is located in the top-right corner providing real-time data:
Trend: Current State (Bull, Bear, or Chop).
Vol: Current Relative Volume (Green if > 1.0).
ADX: Current Trend Strength value.
Settings:
Trend Settings:
Adjust MA types and lengths to fit your timeframe.
Entry Gate: Toggle the Volume/Price gate on/off and adjust the Relative Volume requirement.
Consolidation: Enable/Disable the ADX filter to see all signals or only high-strength ones.
Visuals: Toggle the Cloud, Dashboard, or "Stretch Bands" (ATR bands) to declutter your chart.
Recommended Settings by Timeframe
Since different timeframes require different sensitivities to noise, here are the optimized settings for the Smart Trend Cloud:
⚡ 5 Minute Chart (Scalping)
Best for: Catching quick intraday momentum bursts while filtering chop.
MA Type: HMA (Hull Moving Average for speed)
Fast Length: 9
Slow Length: 21
Min Relative Volume: 1.3 (Requires higher volume to confirm entry)
Min ADX: 25 (Stricter chop filter)
⏱️ 15 Minute Chart (Intraday Swing)
Best for: Day trading with a balance of speed and stability.
MA Type: ZeroLag EMA (Reduces noise better than HMA)
Fast Length: 10
Slow Length: 30
Min Relative Volume: 1.2
Min ADX: 20
hrs 1 Hour Chart (Short-Term Swing)
Best for: Capturing the trend of the week.
MA Type: EMA or ZeroLag EMA
Fast Length: 12
Slow Length: 26 (Classic MACD correlation)
Min Relative Volume: 1.1
Min ADX: 20
📅 1 Day Chart (Position Trading)
Best for: Long-term trends and "Golden Cross" style entries.
MA Type: EMA (Standard Institutional Moving Average)
Fast Length: 20
Slow Length: 50
Min Relative Volume: 1.2
Min ADX: 15 (Allows for earlier entries on major trend shifts)
Alerts:
The script includes built-in alertcondition events for:
Trend Start: Bull (Valid trend detected after filtering).
Trend Start: Bear (Valid trend detected after filtering).
Access & Authorization
This is an Invite-Only script.
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.