RANGE FILTER Guia de trading
The Volatility Range Filter is an institutional-grade overlay trend indicator designed to filter out minor volatility fluctuations and sideways market noise. By calculating a dynamic range based on smoothed price volatility and updating only when price clears a definitive breakout threshold, it maintains a highly stable trend line during consolidations.
How it works
The indicator measures volatility using an EMA of absolute close-to-close differences:
Range = EMA(abs(Close - Close_prev), Period) * Multiplier
It then tracks a Filter Price line that updates dynamically using the following logic:
- If the current close rises above the previous filter price, the filter line adjusts to:
Close - Range(holding it as support). - If the current close falls below the previous filter price, the filter line adjusts to:
Close + Range(holding it as resistance). - If the price stays within the range, the filter line remains completely flat, preventing trend whipsaws during sideways consolidation.
The trend state switches to bullish (1) when the price closes above the filter line, and bearish (-1) when it closes below.
What does the indicator show?
- Filter Price Line: A continuous line plotted directly on the main chart:
- Green Line: Bullish Trend. The price is trading above the filter line.
- Red Line: Bearish Trend. The price is trading below the filter line.
- Trend State: Binary output (1 for Bull, -1 for Bear) ideal for strategy rules.
- Signal: Generates a trigger signal (1 or -1) on the exact candle the trend flips.
Trading Strategies
- Trend Breakouts: Enter Long when the filter line turns Green and enter Short when it turns Red.
- Trailing Stop Loss: Use the flat segments of the Range Filter price line as a trailing stop loss or take profit level. During strong trends, the line trails the price, but flattens out during consolidations, giving the trade breathing room without risking premature exits.
- Trend Filter: Combine with oscillators (e.g. RSI or MACD) to only take buy setups when the Range Filter is Green and sell setups when it is Red.