Question: what economic factors affect the stock market?
Answer: Interest rates.
Inflation (and deflation)
GDP.
Unemployment.
Trade wars.