Indicators: Institutional Fourier Transform (DFT) Dominant Cycle Language: MQL5

 

Institutional Fourier Transform (DFT) Dominant Cycle Language: MQL5:

A digital signal processing (DSP) engine that applies the Discrete Fourier Transform (DFT) to market data, isolating the dominant cyclical frequency to project turning points and eliminate phase-lag.

Institutional Fourier Transform (DFT) Dominant Cycle  Language: MQL5

Author: Amanda Vitoria De Paula Pereira

 
The problem with using this trader is why it doesn't work?
 
Excellent work — this indicator is awesome!
 
uzil zill #:
The problem with using this trader is why it doesn't work?

It works, but it loads slowly due to intense calculations─especially if you have: (a) a slow computer or (b) other intense utilities running simultaneously. I actually had the latter when I attached it to a chart, and the indicator loaded in about 2 seconds. At over 3 seconds, the stop flag is triggered in MT5 and an error prints to the Experts tab. I can only guess that that might be what happened to you.

At the end of the day, we can't expect a quant-level indicator to be "lite."

 

Thanks for the feedback, Livio, and an excellent technical observation by Ryan, you diagnosed the mechanical reality perfectly, the Discrete Fourier Transform engine executes intense digital signal processing directly on the terminal's historical chart array to decompose the underlying price data into its raw spectral components and isolate the true dominant cyclical frequency. Because MQL5 indicators run strictly on the main chart interface thread, any computation that handles deep matrix operations can hit the platform's internal three-second execution stop-flag during high volatility or on unoptimized computer hardware, causing MetaTrader to terminate the loading cycle and throw an initialization error. This is exactly why a true quantitative digital signal processing engine cannot be engineered as a lightweight retail tool. For manual structural analysis, letting the indicator take a second to calculate the spectral components provides a clean representation of the market cycle without phase-lag

However, if you are looking to integrate this dominant frequency matrix into a live algorithmic trading setup where tick-by-tick calculation latency is a critical risk factor, the logic must be ported into a headless Expert Advisor class structure where the mathematical arrays run on an entirely isolated execution loop. If you want this specific DSP engine compiled into a fully automated, low-latency execution chassis tailored to your trading setup, you can open a personal order under my profile in the Freelance section

 
Alain Verleyen #:

enrique can keep crying about ai, alain, my dft loops are just raw math running on the main thread, like ryan noted, i compile code for live accounts in freelance, not for forum points