# Reflex/Trendflex

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

Plots Ehlers' Reflex and Trendflex from a SuperSmoother-filtered source over a 20-bar window: Reflex averages deviations from a straight-line ramp to isolate cycle swings, Trendflex from the current filter level to keep the trend read. Both self-normalize so 2 marks a typical extreme, with optional divergence drawings and eight alerts covering zero crosses, trend-aligned signals and divergences.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Jul 11, 2026.
- Access: free.
- Concepts: [Reflex/Trendflex](https://www.luxalgo.com/library/concept/reflex-trendflex/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=hw17i9q4cqn4jcc2q79n4m2p
- Page: https://www.luxalgo.com/library/indicator/reflex-trendflex/

**Reflex/Trendflex** puts John Ehlers' 2020 oscillator pair on one pane, splitting the cycle read from the trend read. The source first runs through a SuperSmoother at half the chosen period; the [Reflex and Trendflex](https://www.luxalgo.com/library/concept/reflex-trendflex/) calculations then average the filtered series' deviations from two references: a straight line across the window for Reflex, which strips trend and isolates cycle swings, and the current filter value for Trendflex, which keeps trend in. Each sum is self-normalized, so both read in comparable units around zero with dotted bands at +2 and -2 marking typical extremes.

## How to Trade the Reflex/Trendflex?

- **Reflex zero cross**: the cycle inflection. Reflex turns quickly and suits timing; crossings are alerted in both directions.
- **Trendflex sign**: the regime. Positive argues sustained upward pressure, negative the reverse, with its own zero-cross alerts.
- **Trend-aligned combination**: Reflex crossing above zero while Trendflex is positive (and the bearish mirror) carries dedicated alerts (timing from the cycle, permission from the trend).
- **Divergences**: optional regular divergences on the chosen oscillator draw dashed lines with Bull and Bear tags, warnings rather than signals.

## Reflex/Trendflex Settings

- **Length** (default 20): the lookback window; the straight-line reference and both deviation averages span it, and the SuperSmoother runs at half this period. Shorter windows respond faster but raise the false-cross count.
- **Source** (default close): the series fed to the filter.
- **Show Divergences** (default off) with **Divergence Oscillator** (default Reflex) and **Pivot Lookback** (default 5): detection lags by the pivot length.
- Style: visibility and colors per oscillator, plus **Gradient Fill** (default Reflex; also Trendflex, Both or None).

## Frequently Asked Questions

### Which of the two should I follow?

The pair puts two questions to one filtered series. Reflex removes the window's trend, so it swings with the cycle and inflects early; Trendflex keeps it, holding its sign through a sustained move: bias from Trendflex, timing from Reflex.

### How does the pair compare with the Even Better Sinewave?

The [Even Better Sinewave](https://www.luxalgo.com/library/indicator/even-better-sinewave/) compresses a filtered wave toward its rails, a cycle-phase switch that saturates near extremes. Reflex and Trendflex keep proportional magnitudes, plus the trend view a pure cycle tool strips out.

### What do the +2 and -2 bands mean?

The self-normalization divides each raw average by the square root of its own smoothed mean square, so readings come out in units of typical magnitude; the bands mark roughly two-sigma excursions: uncommon territory, not mechanical overbought/oversold triggers.

## Related indicators

- [Internal Candle Strength](https://www.luxalgo.com/library/indicator/internal-candle-strength/) (Balance of Power): markdown at https://www.luxalgo.com/library/indicator/internal-candle-strength.md
- [Pretty Good Oscillator](https://www.luxalgo.com/library/indicator/pretty-good-oscillator/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/pretty-good-oscillator.md
- [Gator Oscillator](https://www.luxalgo.com/library/indicator/gator-oscillator/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/gator-oscillator.md
- [Wave Trend Oscillator](https://www.luxalgo.com/library/indicator/wave-trend-oscillator/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/wave-trend-oscillator.md
- [Traders Dynamic Index](https://www.luxalgo.com/library/indicator/traders-dynamic-index/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/traders-dynamic-index.md
- [Center of Gravity](https://www.luxalgo.com/library/indicator/center-of-gravity/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/center-of-gravity.md
- [QQE Weighted Oscillator](https://www.luxalgo.com/library/indicator/qqe-weighted-oscillator/) (QQE): markdown at https://www.luxalgo.com/library/indicator/qqe-weighted-oscillator.md
- [5/35 Oscillator](https://www.luxalgo.com/library/indicator/5-35-oscillator/) (Momentum & Oscillators): markdown at https://www.luxalgo.com/library/indicator/5-35-oscillator.md

---

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