Just as index-fund investing defeats this purpose, so too does trading based on anything other than an evaluation of a company's underlying prospects for the future.
It's a good idea to invest in a company based on their past performance.