Java based automated stock trading system