Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Institutional Fourier Transform (DFT) Dominant Cycle Language: MQL5 - indicator for MetaTrader 5

Published by:
Amanda Vitoria De Paula Pereira
Amanda Vitoria De Paula Pereira
5 (7)
I am a Software Engineer focused on quantitative architecture and high-frequency trade execution, I do not build generic retail scripts, I write clean code designed to survive live broker environments, toxic order flow, and server latency, my infrastructure handles complex math without freezing the
Views:
3733
Rating:
(5)
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The Systemic Flaw in Static Indicators

Retail algorithmic developers universally rely on static lookback periods (e.g., a 14-period RSI or a 20-period Moving Average), this architecture contains a fatal mathematical flaw: Market cycles are dynamic, not static. When macroeconomic liquidity shifts, the natural frequency of the asset expands or contracts. Using a static 14-period oscillator when the true market cycle has shifted to an 8-period frequency guarantees severe phase-lag, forcing your Expert Advisor to buy exactly when the institutional distribution cycle is beginning.



The Institutional Edge: Spectral Analysis (Fourier)

To solve the phase-lag problem, proprietary trading firms discard static periods and utilize Digital Signal Processing (DSP).

The Institutional Fourier Transform (DFT) Cycle Extractor applies the mathematical principles of wave physics to the financial markets. It continuously decomposes complex, noisy price action into its constituent sine and cosine waves, mathematically isolating the single Dominant Cycle driving the current market regime.


Core Quantitative Architecture

  • Discrete Fourier Transform (DFT): The engine executes a rolling algorithmic window, scanning frequencies to identify the highest amplitude wave buried within the erratic price noise.

  • Phase-Aligned Wave Projection: Once the dominant frequency is isolated, the indicator projects the isolated sine wave directly over the price action. This allows you to visually track the true institutional pendulum.

  • Zero-Lag Cycle Detection: Unlike moving averages that trail behind price, a Fourier-extracted wave aligns dynamically with the current phase, identifying peaks and troughs mathematically before lagging indicators even cross.

  • CPU-Optimized Loop: Raw DFT calculations are historically notorious for CPU throttling. This MQL5 engine has been rigorously optimized with array-level memory management to execute complex trigonometry in milliseconds without disrupting your trading terminal.


Algorithmic Execution Protocol

  1. Deploy the Engine: Attach the indicator to your active chart, the engine will calculate the rolling DFT window and plot the dominant wave.

  2. Identify Exhaustion: When the Fourier wave reaches its upper or lower structural limits, it signifies that the current market cycle has completed its mathematical rotation.

  3. Synchronize your EA: Use this dominant frequency to dynamically adjust the lookback periods of your other indicators, forcing your systems to breathe in perfect synchronization with the live market pulse.

Super Trend Super Trend

The Supertrend indicator plots an ATR-based dynamic trend line on the MetaTrader 5 chart, switching between a green uptrend and red downtrend line with optional buy/sell arrow signals at every trend reversal.

ASQ Order Executor ASQ Order Executor

ASQ Order Executor — Institutional order execution wrapper for MQL5 EAs ASQ Order Executor provides institutional-grade order execution with automatic retry logic, slippage monitoring, partial fill handling, requote management, and comprehensive execution statistics. Drop it into any EA for production-ready trade execution.

Prime Quantum AI —  TRADE WITH AI (Anthropic Claude, OpenAI GPT, Google Gemini, DeepSeek, xAI Grok). Prime Quantum AI — TRADE WITH AI (Anthropic Claude, OpenAI GPT, Google Gemini, DeepSeek, xAI Grok).

Prime Quantum AI is an MT5 Expert Advisor combining a classical pre-filter (ADX + Alligator) with AI vision-based chart confirmation from major AI providers (Anthropic Claude, OpenAI GPT, Google Gemini, DeepSeek, xAI Grok). When the pre-filter detects a trend setup, the EA captures three adaptive- timeframe chart screenshots and sends them to the configured AI provider, which returns direction, confidence, stop-loss and take-profit. A trade is opened only when the AI confirms the pre-filter signal with sufficient confidence. Features: dual Standard Broker / Prop Firm risk modes, configurable lot sizing, optional martingale, multiple SL/TP modes, trailing stop, partial close, news/time/day/spread filters, draggable on-chart info panel, and fully exposed indicator parameters. Requires MetaTrader 5, WebRequest enabled for your provider's URL, and a valid API key. Provider auto-detected from key format.

Correlation Matrix Heatmap with Interactive Dashboard Correlation Matrix Heatmap with Interactive Dashboard

Interactive Correlation Heatmap using high-performance MQL5 matrix functions. > Features a draggable, minimizable dashboard with instant multi-timeframe switching and a vivid 5-band color scale for real-time currency relationship analysis.