How to Automate a Trading Strategy