All indicators

Adaptive Harmonic Forecast

By LuxAlgoFeb 11, 2026

Static chart image

Adaptive Harmonic Forecast models price as rhythm plus drift. It detrends the lookback window, scans candidate periods with spectral analysis to find the cycles carrying meaningful power, then fits sines, cosines, and a first-order trend to the data with ordinary least squares. The composite plots as a solid line over history (showing how well the model explains what already happened) and extends forward as a dotted projection, green while the projected path rises, red while it falls.

How to Trade the Adaptive Harmonic Forecast?

  • Alignment: when live price agrees with the projected direction, treat it as confirmation for trend-continuation entries.
  • Reversal dots: optional markers at forecast peaks and troughs give timing windows for pullbacks, or larger turns when they land on structural levels.
  • Trend line: the linear-regression component separates the structural slope from the cycles riding on it, keeping directional bias visible.
  • Cycle table: the Detected Cycles dashboard lists the dominant cycle periods in bars. Short periods flag a noisy, mean-reverting state; long ones a smoother structural regime.

Read the projection as directional rhythm and timing, not tick-level targets. It reflects the structure currently in the data.

Adaptive Harmonic Forecast Settings

  • Fit Lookback (N): bars used for cycle detection and fitting. Larger captures broader structure, smaller reacts faster.
  • Extrapolation Bars: how far forward the dotted forecast extends.
  • Number of Sinusoids (1-10): model complexity; more waves capture more structure at the cost of sensitivity.
  • Min Period: floor on detected cycle length, filtering the shortest noise cycles.
  • Show Reversal Dots / Show Trend Line / Show Detected Periods: toggle the markers, bias line, and cycle dashboard.

Frequently Asked Questions

Free on Vela

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

  • Up to 500 strategy alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • Up to 100,000 monthly credits for Quant to customize it
  • Futures data alongside crypto, stocks, forex and commodities
See plans

Also works on

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