It's caused by strong emotions, " fear & greed " at play. And cure for that is boldly taking a small position when it appears like a bottom/top and then holding it and enlarging it as trend develops reminding to buy the dips / sell the spikes depending on the trend.