What your pub buddy was referring to is a popular cult in modern finance, called quantitative trading. Read the wiki article for a full blown glorified account from an academic perspective. Simply put though, they apply statistical methods to recognize patterns in market history that can be...