Algorithmic trading system in Java using PostgreSQL and Yahoo! stock api