However, there is no precise definition of 'trend' or any 'correct' algorithm for extracting it.
Identification of trend in a time series is subjective because a trend cannot be unequivocally distinguished from low frequency fluctuations.