Mastering the stock market