Open-source

Smooth Price Oscillator

The Smooth Price Oscillator by BigBeluga leverages John Ehlers' SuperSmoother filter to produce a clear and smooth oscillator for identifying market trends and mean re...

Smooth Price Oscillator preview
Published Nov 12, 2024
2,20948,067

What this TradingView script does

The Smooth Price Oscillator by BigBeluga leverages John Ehlers' SuperSmoother filter to produce a clear and smooth oscillator for identifying market trends and mean reversion points. By filtering price data over two distinct periods, this indicator effectively removes noise, allowing traders to focus on significant signals without the clutter of market fluctuations.

🔵 KEY FEATURES & USAGE

● SuperSmoother-Based Oscillator: This oscillator uses Ehlers' SuperSmoother filter, applied to two different periods, to create a smooth output that highlights price momentum and reduces market noise. The dual-period application enables a comparison of long-term and short-term price movements, making it suitable for both trend-following and reversion strategies.

// @function SuperSmoother filter based on Ehlers Filter // @param price (float) The price series to be smoothed // @param period (int) The smoothing period // @returns Smoothed price method smoother_F(float price, int period) => float step = 2.0 * math.pi / period float a1 = math.exp(-math.sqrt(2) * math.pi / period) float b1 = 2 * a1 * math.cos(math.sqrt(2) * step / period) float c2 = b1 float c3 = -a1 * a1 float c1 = 1 - c2 - c3 float smoothed = 0.0 smoothed := bar_index >= 4 ? c1 * (price + price) / 2 + c2 * smoothed + c3 * smoothed : price smoothed

● Mean Reversion Signals: The indicator identifies two types of mean reversion signals:

- Simple Mean Reversion Signals: Triggered when the oscillator moves between thresholds of 1 and Overbought or between thresholds -1 and Ovesold, providing additional reversion opportunities. These signals are useful for capturing shorter-term corrections in trending markets.

- Strong Mean Reversion Signals: Triggered when the oscillator above the overbought (upper band) or below oversold (lower band) thresholds, indicating a strong reversal point. These signals are marked with a "+" symbol on the chart for clear visibility.

Both types of signals are plotted on the oscillator and the main chart, helping traders to quickly identify potential trade entries or exits.

● Dynamic Bands and Thresholds: The oscillator includes overbought and oversold bands based on a dynamically calculated standard deviation and EMA. These bands provide visual boundaries for identifying extreme price conditions, helping traders anticipate potential reversals at these levels.

● Real-Time Labels: Labels are displayed at key thresholds and bands to indicate the oscillator’s status: "Overbought," "Oversold," and "Neutral". Mean reversion signals are also displayed on the main chart, providing an at-a-glance summary of current indicator conditions.

How traders can use it

Use Smooth Price Oscillator as a chart context layer inside TradingView: read the structure it highlights, compare it with your market bias, and let the script narrow which moves deserve attention.

The strongest workflow is to combine the script with higher timeframe structure, volume context, and a repeatable execution plan instead of treating any single label as a standalone trade.

Ready to level up your trading?

Get advanced indicators, backtesting and the BigBeluga community in one plan.

Get Access