The problem is defining when a trend is a trend. When is it confirmed? IMHO you could begin with a simple approach and then add more complexity layers later. I would begin with an exponential MA, for example.