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

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.

Figure 1 Trend Direction Index
Attachment download
📎 smoothalgorithms.mqh (134.03 KB)
📎tdi-2.mq5 (8.61 KB)
Source: MQL5 #1440
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •