Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Momentary Trend Lines - MetaTrader 5 Script - MQL5 #20104 - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

Instantaneous Trend Line - indicator for MetaTrader 5

One of a series of indicators created by John Ehlres. According to Ehlers:

Instantaneous trend line:

It works because it completely removes the dominant period in the smoothed average.

For the math geeks out there, the Fourier transform of a rectangular window (formed by a simple average) is the Sin(X)/X distribution. The goal is to place the first zero value of the distribution exactly at the main period. For the intuitively inclined, what we are doing is taking a simple average over the duration of the dominant cycle. In such an average, there are as many sample points above the midpoint as there are below the midpoint, with the result that the sum of all these sample points is zero.

Instantaneous Trend Line - indicator for MetaTrader 5


Attachment download

📎 instantaneous_trend_line.mq5 (7.44 KB)

Source: MQL5 #20104

Verification code Refresh