Filtered ATR with EMA Overlay is an advanced volatility indicator designed to provide a more accurate representation of market conditions by smoothing the standard Average True Range (ATR). This is achieved by filtering out extreme price movements and abnormal bars that can distort traditional ATR calculations.
The indicator applies an Exponential Moving Average (EMA) to the filtered ATR, creating a dual-layered system that highlights periods of increased or decreased volatility.
Key Features: Filtered ATR: Filters out extreme bars, reducing noise and making the ATR line more reliable. EMA Overlay: An EMA (default period of 10) is applied to the filtered ATR, allowing traders to track average volatility trends. Volatility Signals: Filtered ATR > EMA(10): Indicates higher-than-average volatility. This often correlates with trend breakouts or strong price movements. Filtered ATR < EMA(10): Suggests reduced volatility, signaling potential consolidation or sideways price action. Parameters: atrLength (Default: 5): The number of bars used to calculate the ATR. A shorter period (e.g., 3-5) responds faster to price changes, while a longer period (e.g., 10-14) provides smoother results. multiplier (Default: 1.8): Controls the sensitivity of the filter. A lower multiplier (e.g., 1.5) filters out more bars, resulting in smoother ATR. Higher values (e.g., 2.0) allow more bars to pass through, retaining more price volatility. maxIterations (Default: 20): The maximum number of bars processed to detect abnormal values. Increasing this may improve accuracy at the cost of performance. ema10Period (Default: 10): The period for the Exponential Moving Average applied to the filtered ATR. Shorter periods provide faster signals, while longer periods give smoother, lagging signals. Trading Strategies: 1. Breakout Strategy:
When filtered ATR crosses above EMA(10): Enter long positions when price breaks above a key resistance level. Higher volatility suggests strong price action and momentum. When filtered ATR drops below EMA(10): Exit positions or tighten stop-loss orders as volatility decreases. Lower volatility may indicate consolidation or trend exhaustion. 2. Trend Following Strategy:
Use the filtered ATR line to track overall volatility. If filtered ATR consistently stays above EMA: Hold positions or add to trades. If filtered ATR remains below EMA: Reduce position size or stay out of trades. 3. Mean Reversion Strategy:
When filtered ATR spikes significantly above EMA, it may indicate market overreaction. Look for price to revert to the mean once ATR returns below the EMA. 4. Stop-Loss Adjustment:
As volatility increases (ATR above EMA), widen stop-loss levels to avoid being stopped out by random fluctuations. In low volatility (ATR below EMA), tighten stop-losses to minimize losses during low activity periods. Benefits: Reduced Noise: By filtering abnormal bars, the indicator provides cleaner signals. Better Trend Detection: EMA smoothing highlights volatility trends. Adaptable: The indicator can be customized for scalping, day trading, or swing trading. Intuitive Visualization: Traders can visually see volatility shifts and adjust strategies in real-time. Best Practices: Timeframes: Works effectively on all timeframes, but higher timeframes (e.g., 1H, 4H, Daily) yield more reliable signals. Markets: Suitable for forex, crypto, stocks, and commodities. Combining Indicators: Use in combination with RSI, Moving Averages, Bollinger Bands, or price action analysis for stronger signals. How It Works (Under the Hood): The script calculates the Daily Range (High - Low) for each bar. The largest and smallest bars are filtered out if their difference exceeds the multiplier (default 1.8). The remaining bars are averaged to generate the filtered ATR. An EMA(10) is then applied to the filtered ATR for smoother visualization.
Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.