Skip to content
All library documents

Plotting a Function Spectrum with the Fast Fourier Transform

Article MQL5 code base

Summary

This brief description presents an example of plotting a function’s spectrum using a Fast Fourier Transform library. The input can be either a test signal formed by summing three sinusoids with differing parameters or market closing prices. This outlines a basic signal-processing workflow: transform a time series into frequency components and display the resulting spectrum.

For quantitative researchers, the example points to a way to inspect periodic structure in synthetic signals or price data. However, the description provides no implementation details, plotted output, interpretation procedure, or trading rule. It also gives no evidence that frequency components in closing prices are stable or useful for forecasting. The material is therefore an introductory plotting example, and any application to trading would require additional analysis and validation.

Key ideas

  • The example uses an FFT library to plot a function’s frequency spectrum.
  • Its test input is a sum of three sinusoids with different parameters.
  • Market closing prices are presented as an alternative input series.
  • The description gives no spectrum interpretation, forecasting method, or trading performance evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.