Trading Algorithm Design