I remember years ago on another GD forum, those people who knew about shares always used to post "BTFD". Which stood for Buy The ****in Dip. And that is the total extent of my knowledge when it comes to this sort of thing!
That can work, but then if the dip carries on...... oops.
By AFTER the dip.
Buy a rising trend not AT the top. Sometimes there's no dip, all you get is a hesitation or a tiny swing back.
"You could probably ask an AI to assess the buy and sell of a stock based on rolling averages"
They started that decades ago. It works.
There are a few platforms you can use to do the trading for you.
You can add a whole load of other "indicators" You can use AI to optimise it.
There are many platforms where you can "back test" using previous prices.
Even "buy when the last couple of days were good" works on something like the S&P500.
Even buy all-time-high, works, surprisingly.
A Brit I know of, writes his own codes. He's operating on stocks , now getting high 30's % return. I've predicted before that we;ll all have AI on our phones trading for us, so everyone will have loads of money, but nobody will cut the grass, or fill the shelves.