Based on your financial expertise, provide your response or viewpoint on the given financial question or topic. The response format is open.

Does the profit of a company directly affect its stock or indirectly by causing people to buy or sell?
The short answer to your question is yes.  Company performance affects stock price only through investors' views. But note that selling for higher and lower prices when the company is doing well or poorly is not an arbitrary choice.  A stock is a claim on the future cash flows of the firm, which ultimately come from its future profits.  If the company is doing well, investors will likely expect that there will large cash flows (dividends) in the future and be willing to pay more to hold it (or require more to sell it).   The price of a stock is equal what people think the future dividends are worth.  If market participants started behaving irrationally, like not reacting to changes in the expected future cash flows, then arbitrageurs would make a ton of money trading against them until the situation was rectified.