Martin trend meter script. Distance for trend is set by the user.