The trick is to pay attention to what's happening around you and to keep writing.
I always try to buy stocks that are undervalued and sell them when they become overvalued.