how can this be automated? say with bitstamp?
I'd throw a lot more money into bitcoin if I could be rest assured I could go to bed and not wake up in the morning having lost all my money because China has caused a massive crash....
Bitstamp does not provide stoplosses. Its amateur in that respect. You need to look at something like coinsetters