# Even-better Sinewave

Even-better Sinewave is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Implements Ehlers' even-better sinewave: price high-pass filtered at a 40-bar duration, smoothed by a 10-bar SuperSmoother and normalized by its own recent power so the wave holds between -1 and +1. Pinning beyond 0.9 for 5 bars confirms an established trend and tints the pane; six alerts cover zero crosses, saturation and saturation ending.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Jun 18, 2026.
- Access: free.
- Concepts: [Even-better Sinewave](https://www.luxalgo.com/library/concept/even-better-sinewave/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=jawf181g2ym7dkvop23lduhf
- Page: https://www.luxalgo.com/library/indicator/even-better-sinewave/

**Even-better Sinewave** reproduces the published [even-better sinewave](https://www.luxalgo.com/library/concept/even-better-sinewave/) and adds an explicit regime layer on top of its most useful quirk. Price is high-pass filtered so components slower than the duration drop out, a SuperSmoother strips the fast noise, and a three-bar average of the wave is divided by the square root of its average power, confining the output near -1 to +1. While a market cycles, the wave undulates between the bounds; when trend dominates, it pins near an extreme, and that saturation is what the regime layer reads.

## How to Trade the Even-better Sinewave?

- **Zero crosses**: the swing-timing events while the market is cycling, alerted in both directions, with optional circle markers.
- **Saturation**: the wave holding at or beyond the Saturation Level for the required bars confirms an established trend; the pane tints until the wave leaves the extreme.
- **Regime filter**: saturated stretches argue for trend tactics and against fading the wave's extremes; clean undulation argues the reverse. Saturation ending has its own alert pair.

## Even-better Sinewave Settings

- **Source** (default close): series the wave is computed on, the close in the published listing.
- **Duration** (default 40): wavelength separating trend from cycle content. Longer classifies more movement as cycle, shorter pushes more into the saturated trend reading.
- **Smoothing Period** (default 10): SuperSmoother critical period, matching the published setting.
- **Show Zero Cross Markers** (default off): the alerts fire either way.
- **Saturation Level** (default 0.9): absolute reading at which the wave counts as pinned, drawn as dashed levels.
- **Saturation Bars** (default 5): consecutive pinned bars before a trend is confirmed.
- **Highlight Trend Regime** (default on): the background shading while saturation holds.

## Frequently Asked Questions

### How does this differ from the Cyber Cycle?

The [Cyber Cycle](https://www.luxalgo.com/library/indicator/cyber-cycle/) extracts the cyclic component and lets its amplitude float with the market. The even-better sinewave normalizes by its own recent power, so the scale is fixed and amplitude becomes the message: pinned near a bound means trend, undulation means cycle.

### Why does the wave flatten near +1 or -1?

When directional movement dominates the filtered band, the wave's average approaches the square root of its average power and the ratio saturates. It is the construction's built-in trend detector, not a malfunction.

### Which timeframes does it suit?

The math is timeframe-agnostic; what matters is that Duration matches the swings being traded. Shrinking it hunts shorter cycles but reclassifies more movement as trend.

## Related indicators

- [Adaptive Momentum Oscillator](https://www.luxalgo.com/library/indicator/adaptive-momentum-oscillator/) (Adaptive-parameter Technique): markdown at https://www.luxalgo.com/library/indicator/adaptive-momentum-oscillator.md
- [Adaptive Harmonic Forecast](https://www.luxalgo.com/library/indicator/adaptive-harmonic-forecast/) (Dominant Cycle Measurement): markdown at https://www.luxalgo.com/library/indicator/adaptive-harmonic-forecast.md
- [Correlated Sine Oscillator](https://www.luxalgo.com/library/indicator/correlated-sine-oscillator/) (Sinewave Indicator): markdown at https://www.luxalgo.com/library/indicator/correlated-sine-oscillator.md
- [Swiss Army Knife Filter](https://www.luxalgo.com/library/indicator/swiss-army-knife-filter/) (Ehlers Bandpass Filter): markdown at https://www.luxalgo.com/library/indicator/swiss-army-knife-filter.md
- [Variable Sine Wave Fit](https://www.luxalgo.com/library/indicator/variable-sine-wave-fit/) (Dominant Cycle Measurement): markdown at https://www.luxalgo.com/library/indicator/variable-sine-wave-fit.md
- [Normalized Resonator](https://www.luxalgo.com/library/indicator/normalized-resonator/) (Dominant Cycle Measurement): markdown at https://www.luxalgo.com/library/indicator/normalized-resonator.md
- [Roofing Filter](https://www.luxalgo.com/library/indicator/roofing-filter/) (Statistics): markdown at https://www.luxalgo.com/library/indicator/roofing-filter.md
- [Decycler](https://www.luxalgo.com/library/indicator/decycler/) (Statistics): markdown at https://www.luxalgo.com/library/indicator/decycler.md

---

Source: https://www.luxalgo.com/library/indicator/even-better-sinewave/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
