On tradingview I saw a modified Traders Dynamic Index indicator, modified and named as «Trend Detector Indicator» that is developed to identify the active phases of the trend cycle and helps to avoid trading at the end of the trend. I have not tried it yet, though.