Copy Of AlgoTrade from code.google.com/p/algo-trader