"buy a stock that's being bought , sell a stock that's being sold" this is a quote I heard from a trader that's been around the block
Historical price quotes, formulas derived from those historical quotes, and outputs from customized machine learning algorithms. Mistakes are sought and destroyed via extensively auditing/re-testing the computer code and also via back-testing.