This chapter will cover CRON jobs for UNIX machines and task scheduling for Windows machines to automate routine execution of trading scripts. We will discuss which jobs should be run when, frequently referencing Appendix A for production-ready code examples.
Organizing Scripts into Jobs
There are four possible jobs we may want to automate on a schedule. We will call these jobs UPDATE, PLAN, TRADE, and MODEL.
The UPDATE job will need to be run once per day after Yahoo! Finance has updated trade data. This can be around 5 to 6 p.m. EST. This script will update the data in our stock data ...