Am I correct in assuming you didn't get your profit, it reversed just short and took out your stop?
Sorry to disagree with vicorka but there are many ways to avoid it. Risk:reward is not static. When it is approaching this resistance, and nearly there, what is your risk:reward? If below that support line, then your risk:reward at that point is awful. And when you have awful risk:reward ratios, then you usually win, but when you lose, you've given up a large chunk of change.