TDV Indicator

Overview:
The TDR Risk Engine is a powerful market risk and momentum visualization tool. It provides two advanced risk models—TDV Extreme and PPO—to help traders identify high and low risk zones, potential market extremes, and optimal trade timing. The indicator is designed for use on any asset or timeframe and is highly customizable.
Key Features
Dual Risk Engines:
TDV Extreme:
Measures price distance from a Donchian channel baseline (default 50-period).
Tracks rolling averages and extreme breaches to dynamically identify high and low risk zones.
Visualizes “extreme” and “above average” conditions with color-coded plots.
Adaptive rolling windows based on timeframe or user input.
PPO (Percentage Price Oscillator):
Uses Laguerre-smoothed PPO percent ranks to gauge momentum extremes.
Combines top and bottom PPO percent ranks for a composite risk score.
Highlights overbought/oversold conditions and momentum shifts.
Visual Risk Zones:
Color-coded scatter plots for easy identification of average, above average, near extreme, and extreme risk conditions.
Optional plot lines for high/low limits and above-average thresholds.
Alerts:
Get notified when price or PPO enters high or low extreme zones.
Customizable Settings:
Switch between TDV Extreme and PPO engines.
Adjust rolling window and extreme lookback periods.
Toggle display of high/low limits and above-average thresholds.
How It Works
TDV Extreme Mode:
Calculates the percentage distance of price from the Donchian baseline.
Tracks rolling averages for both positive and negative distances.
Identifies and records “extreme” breaches, dynamically updating high/low limits.
Color codes each bar based on its risk state (average, above average, near extreme, extreme).
PPO Mode:
Applies Laguerre smoothing to the average price (hl2) with short (0.4) and long (0.8) factors.
Calculates PPO top and bottom percent ranks over a configurable window.
Sums the ranks for a composite risk score, highlighting extremes at ±85 and above-average at ±65.
Visuals
Scatter Plot:
White: Average risk
Orange: Above average
Green: Near extreme
Blue: Extreme
Red: Sustained extreme (hit count exceeds average)
Limit Lines:
Blue: High/Low extreme limits
Orange: Above average thresholds
White: PPO high/low limits (in PPO mode)
Alerts
TDV Extreme:
Alerts when price breaches high or low extreme limits.
PPO:
Alerts when PPO sum exceeds ±85.
Best Practices
Use as a risk filter for entries/exits in your trading system.
Combine with trend or momentum indicators for confirmation.
Adjust rolling window and lookback for your asset and timeframe.
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 Cryptodontrading.
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.
Check out the TDR & TDV Indicators for long term trades - cryptodontrading.com/cd-indicators
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 Cryptodontrading.
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.
Check out the TDR & TDV Indicators for long term trades - cryptodontrading.com/cd-indicators