Trend reversal analysis