Some defense against this sort of attack needs building into Bitcoin. It cost me money waiting for my transaction to go through. I wanted to sell some of my Bitcoins at the top, and by the time my transaction got through the price had gone down, and I had to sell for less.