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.
Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.