automated trading workflow