Trend Catcher with HTF Filter

Overview
“Trend Catcher with HTF Filter” is a dynamic trend detection tool designed to identify clear directional bias and help traders stay aligned with the prevailing momentum. It uses a dual-timeframe approach that combines ATR-based volatility analysis and trend confirmation logic to avoid noise and false flips.
This script is particularly useful for trend-following, swing trading, or tactical scalping, depending on the timeframe used. It's not a strategy script, but a visual tool that enhances your decision-making.
🧠 How It Works (Simplified Logic)
This indicator identifies trends by comparing price to a dynamic stop level derived from ATR (Average True Range). When price breaks above/below that level and remains there for a configurable number of bars (flip sensitivity), the trend is considered to have shifted.
🔹 Core Logic (Lower Timeframe)
ATR stop: Calculated using ATR Length and Multiplier.
Trend detection: When price remains above/below the ATR stop for X bars, the trend "flips."
Labels: When the trend flips, labels (🔼 or 🔽) are shown on the chart.
🔹 Higher Timeframe (HTF) Filter (Optional)
When enabled, this adds a higher timeframe ATR-based filter.
You can choose to:
Only visualize HTF background (green/red).
Or restrict flips on the lower timeframe based on HTF trend direction.
This lets you avoid entering against the broader trend and filters out noise in lower timeframes.
🧾 Flip Sensitivity
Set how many bars must confirm the trend direction before a flip is declared.
Helps avoid whipsaws in volatile conditions.
📋 Real-Time Info Table
A small table at the top-right of your chart shows key values like:
Current ATR value
Trend direction
HTF trend direction
Price level of trend stop
Flip sensitivity
🛡️ Why This Script Is Unique
While many scripts use ATR-based logic or multi-timeframe filters, this script stands out for:
✅ Combining real-time LTF and HTF ATR trend zones
✅ A labeling system that clearly marks confirmed flips (based on multiple bar confirmation)
✅ A user-friendly real-time dashboard with essential metrics
✅ Optional trend-based access control, only allowing flips in HTF-aligned directions (when enabled)
This design is intended to help traders visually stay on the right side of the trend while giving them flexibility in configuration.
⚠️ No Unrealistic Claims
This script does not promise profits, signals, or backtested results. It’s a visual tool to assist discretionary traders in identifying trend shifts. There are no buy/sell signals, and it does not predict the future.
Script su invito
Solo gli utenti approvati dall'autore possono accedere a questo script. È necessario richiedere e ottenere l'autorizzazione per utilizzarlo. Tale autorizzazione viene solitamente concessa dopo il pagamento. Per ulteriori dettagli, seguire le istruzioni dell'autore riportate di seguito o contattare direttamente vineeth059.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.
Declinazione di responsabilità
Script su invito
Solo gli utenti approvati dall'autore possono accedere a questo script. È necessario richiedere e ottenere l'autorizzazione per utilizzarlo. Tale autorizzazione viene solitamente concessa dopo il pagamento. Per ulteriori dettagli, seguire le istruzioni dell'autore riportate di seguito o contattare direttamente vineeth059.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.