Using technical analysis to time entry and exit points