Stock market flashes rare pattern seen only twice in 155 years