Hi Dan & others,
It'd be helpful to understand how best to backtest a daily strategy using the full Quantopian backtester (which runs a minutely loop). The goal of the backtesting is to emulate a realistic live trading scenario. In practice, on a daily basis, what is the preferred approach? For the algorithm I am working on, I can imagine it being run after the market closes on Day 0 and using the Day 0 closing prices (along with a moving average over multiple days). The order would be submitted (with the market closed), to be fulfilled the next trading day, Day 1. In a real-world scenario, how does the order get fulfilled on Day 1? Would the entire transaction (involving multiple securities) go through in the first minute of trading on Day 1, or would it go through at some random time later in the day? Or would the individual securities get transacted at separate random times throughout the day? What is the likelihood of part or all of the order not getting fulfilled at all during Day 1 (even though all of the securities are highly liquid and the orders are small compared to their respective trading volumes)?
Also, more generally, I'd be interested in comments regarding managing the risk of price-impacting events that occur after the market closes and over the sometimes multiple days between a market closing and its re-opening (e.g. a weekend). For practicing individual quantitative/algorithmic traders, how is this risk managed?