All indicators

Reflex/Trendflex

By LuxAlgoJul 11, 2026

Reflex/Trendflex is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Static chart image

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 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

Free to use

Run it on Vela. Go further with a paid plan.

  • Up to 500 Custom Alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.