Concept

FFT/spectral Analysis

FFT/spectral Analysis, also known as Goertzel, are Statistics concepts. The Library holds 3 implementations, each one a working definition you can pull into Quant.

Top FFT/spectral Analysis indicators

3 total

What is FFT/spectral Analysis?

Spectral analysis asks how much of a series' variance lives at each frequency. The discrete Fourier transform rewrites a window of data as a sum of sinusoids; the FFT (fast Fourier transform) is the efficient algorithm that computes it, and the resulting power spectrum shows which cycle periods carry the most energy. The Goertzel algorithm, a common alternative in trading tools, evaluates single frequency bins instead, which is cheaper when scanning a short list of candidate periods rather than the whole spectrum.

Raw price breaks the transform's assumptions: it is nonstationary and trend-dominated, so energy floods the lowest frequencies and spectral leakage smears the peaks. Practical use means detrending first (typically a high-pass or roofing filter), analyzing short windows, and reading the spectrum as an estimate for that window only. Ehlers-school practitioners often prefer the autocorrelation periodogram for exactly this reason, but Fourier analysis remains the reference frame for dominant cycle measurement.

How traders use it

  • To estimate the dominant cycle period in a lookback window, which then sets adaptive lengths for oscillators and moving averages instead of one fixed setting.
  • As a regime read: a sharp, stable spectral peak suggests a tradable cyclic rhythm, while a flat or constantly shifting spectrum argues the market is trending or too noisy for cycle tools.
  • As a bandpass building block: once the dominant period is measured, filters can isolate that component and oscillators can be tuned to swing at its rate.

Related concepts · Regression & filtering

Concept family

Statistics

45 concepts mapped · 37 in the Library

FFT/spectral Analysis FAQ

Can you run an FFT directly on price?

You can, but the output is mostly misleading. Price is nonstationary, so trend energy floods the low frequencies and leakage smears the peaks. Useful results require detrending or high-pass filtering first, windowing a recent segment, and accepting that the spectrum describes that window only. Even then the dominant period is an estimate that shifts as new bars arrive.

What is the Goertzel algorithm and why do traders use it?

It evaluates the discrete Fourier transform at one chosen frequency instead of computing the whole spectrum. Cycle scanners use it to test a list of candidate periods, say 8 to 60 bars, cheaply and rank them by spectral power. At any given frequency its output matches the full transform's; it saves computation, not statistical difficulty, so detrending is still required.

Build FFT/spectral Analysis your way.

Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.