basic - predicting stock market trend

Does anyone know any basic algorithm that can be used to predict a company's share? I think there must be some formula or algorithm.I know one cannot predict stock martket trend but I'm sure someone must have made some attempts.
[244 byte] By [jigza] at [2007-10-3 10:34:15]
# 1

Here's a simple one:

public int getStockPrice(String company, Date date) {

return company.hashCode() ^ date.hashCode();

}

If you want something more fancy, I suggest you try Google first:

http://www.google.com/search?q=stock+market+prediction+algorithm

prometheuzza at 2007-7-15 5:57:31 > top of Java-index,Other Topics,Algorithms...