How to mathematically identify the exhaustion of a trend?

Does anybody has some specific knowledge to share about this topics?

Thanks! 

philippe:

Does anybody has some specific knowledge to share about this topics?

Thanks! 

Google elliot wave and or harmonic pattern

Look for MACD slope,ADX below-above certain threshold ,Choppiness Index .