Skip to content
All library documents

Using Fourier Components to Adjust Trading Stop Losses

Article MQL5 articles

Summary

The article explains how a Fourier transform represents a time series as component frequencies, each carrying amplitude and phase. It outlines possible uses in price-cycle analysis and in studying longer economic or market cycles, including comparisons between macroeconomic series, credit risk measures, and asset prices. These examples are suggestions for analysis rather than validated trading signals.

For its MQL5 demonstration, the author transforms recent high-low ranges, reconstructs component values, and uses a selected frequency component to adjust trailing stops. The proposed stop calculation can use either the largest or smallest component amplitude. The article says that sample strategy reports changed when the trailing-stop method changed, while keeping entry signals the same, but supplies no figures or rigorous evaluation in the provided text. It cautions that the examples are exploratory and that the code should not be treated as ready for live accounts. Cycle relationships and correlations would need ongoing checking before they could inform trading decisions.

Key ideas

  • A Fourier transform decomposes a time series into frequency components with amplitude and phase information.
  • Frequency analysis may help identify recurring patterns, but observed cycles need continued monitoring.
  • The MQL5 example transforms recent high-low ranges and uses a chosen component to adjust trailing stops.
  • Changing which component guides the stop can change strategy test results even when entry signals are held constant.
  • The article presents exploratory code and does not establish a live-ready trading strategy.

Tags

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