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

Instantaneous Trend Line (Generalized) - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

Instantaneous Trend Line (generalized) - 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.

This version differs from the original in one important way: instead of using a fractional alpha parameter for calculations, this version uses periods, which puts it in the same category as the average and makes usage more intuitive than the original version.

Instantaneous Trend Line (generalized) - indicator for MetaTrader 5


Attachment download

📎 instantaneous_trend_line_pgeneralv.mq5 (7.45 KB)

Source: MQL5 #20136

Verification code Refresh