TradingAlgorithm passes all tests