What makes stocks valuable in the long run isn't the market. It's the profitability of the shares in the companies you own. As corporate profits increase, corporations become more valuable and sooner or later, their shares will sell for a higher price.
My interest in philosophy began as early as eight years old - I started thinking about those kinds of heavy questions about life and humanity.