OPEN-SOURCE SCRIPT
Range Filter Oscillator - MACD Style [DW]

----------------------------------------------------------------------------
The **Range Filter Oscillator - MACD Style [DW]** is a technical indicator that helps traders identify trends and potential buy or sell signals. It works by smoothing price movements to filter out noise and focuses on significant price changes.
Here's how it works in simple terms:
1. **Range Filter**: It calculates a dynamic range around the price, based on user settings (like ATR, price percentage, or ticks). Prices moving outside this range are considered significant.
2. **Oscillator**: It measures how far the current price is from the filtered price, creating a value that swings above or below zero, like an oscillator.
3. **MACD-Style**: It compares the oscillator (fast line) to its smoothed version (slow line, using a simple moving average). The difference between them forms a **histogram**, which shows momentum:
- **Positive histogram** (green): Upward momentum, suggesting a buy signal.
- **Negative histogram** (red): Downward momentum, suggesting a sell signal.
4. **Crossovers**: When the fast line crosses above the slow line, it indicates a potential buy. When it crosses below, it suggests a sell.
5. **Bar Colors**: The chart bars turn green for bullish signals, red for bearish, and gray for neutral, making it easy to spot trend changes.
This indicator is great for spotting trends while ignoring minor price fluctuations, and its MACD-style visuals make it intuitive for traders familiar with momentum indicators.https://www.tradingview.com/x/ezgFlpcH/
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.