How you can take advantage of two stock-market trends