public void stop() { log.print("{0}: Stop", DateTime.Now); trader.MarketDepthChanged -= Trader_MarketDepthChanged; trader.OrderChanged -= Trader_OrderChanged; timer.Elapsed -= Timer_Elapsed; trader.CancelOrders(); timer.Stop(); }