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

TDI-2 - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 2 reads | 0 comments |

TDI-2 - indicator for MetaTrader 5

Real author:

The Trend Detection Index indicator is a modified TDI indicator. With a stable and clear growth trend, the purple line is always above the red line. In a strong downtrend, everything works the other way around.

The indicator was first implemented in MQL4 and released in the code base on October 22, 2007.

The indicator uses the SmoothAlgorithms.mqh library class (must be copied to terminal_data_folder\MQL5\Include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.

TDI-2 - indicator for MetaTrader 5

Figure 1 Trend Direction Index


Attachment download

📎 smoothalgorithms.mqh (134.03 KB)

📎tdi-2.mq5 (8.61 KB)

Source: MQL5 #1440

Verification code Refresh