That comes down to what you think drives the stock market. There are many factors, not all are observable. That's why no one really knows where AAPL stock will be at the close tomorrow. Will it be up or down? No one really knows. Take the most informed market participants on Wall Street, ask them where the market will close tomorrow, up or down? Their average prediction accuracy will be a little higher than 50% if they just say "higher" every day (market goes up more often than down). Few can predict much better than that over a long period of time. I don't see how an AI can improve on that, at least with long-term predictions. Short-term trading, maybe. Btw, there's already AI robo-funds, most I have seen such as this:
https://www.qraftaietf.com/
Underperform the market.