Trend Detection Index
The Trend Detection Index (TDI) attempts to identify starting and ending trends.
Positive/negative TDI values signal a trend/consolidation. Buy if the TDI and the direction indicator are positive, and sell if the TDI is positive while the direction indicator is negative.