Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2015.10.12 17:02

i-SpectrAnalysis_Momentum - indicator for MetaTrader 5

| English 日本語 Русский 中文 Español Deutsch Português

votes: 13
dt_fft.mqh (28.84 KB)view

Real author:



This indicator is an example of smoothing the Momentum indicator timeseries by filtering high-order harmonics.

You can use this approach for smoothing the output of any indicator. The major advantage of this method is that it has practically zero latency.

Indicator input parameters:

input int   MomentumPeriod=14;
input uint N = 7;   // Series length
input uint SS = 20; // Smoothing coefficient
input int Shift=0;  // Horizontal indicator shift in bars


  • N — sets the series length (power of two);
  • SS — smoothing coefficient in the resulting spectrum zeroes out frequencies exceeding the set value. SS cannot be greater than 2^N. If SS = 2^N, the Momentum series is repeated.

This indicator requires the following library:


Fig.1. The i-SpectrAnalysis_Momentum indicator

Fig.1. The i-SpectrAnalysis_Momentum indicator

Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.