The reason you can not easily write a computer program to detect these signals is because there is a very low signal to noise ratio, and the reasons for that are entirely to do with physics, e.g. the distances involved, the tiny size of a planet compared with a star, etc.