Even a great company is a bad investment if you pay too much. You must determine the "Sticker Price" (Intrinsic Value) and wait for a sale.
Look for CEOs who admit mistakes in shareholder letters. My 4 Rules of Using the stock Market Invests in...
How do they use profits? (Dividends, buybacks, or smart acquisitions). Even a great company is a bad investment if you pay too much