Saturday, May 26, 2018

Live trading strategies developed on daily data



This is a very simple perhaps naive question. Let's say I have a stock price prediction model trained on daily closing prices of that stock. So when I use this model for live trading, I'll have trading signals only at market close. How'd I put in an order and trade?


I see a lot of strategy research articles on the internet, and quite a few of them backtested their strategy on daily data, but I never understood how such strategies are implemented live.



Answer



If your signals only become available at market close, you obviously can't execute them in that day's trading session. You have a few options -



  1. Try to execute your trades out of market hours with a willing broker (probably a bad idea, you almost certainly won't get good prices)

  2. Trade in the opening auction the next day.

  3. Trade in the next day's continuous trading session.

  4. Trade in the closing auction the next day.



Options 2. and 4. are the easiest to simulate using daily stock price data, since you typically have both opening and closing prices. However, you should remember that the fact that you are trading in the opening/closing auction will move the auction price, so you should simulate market impact.


Option 3 can be simulated if you have access to intraday stock price data, or if you can find a source of VWAP or TWAP prices. You should still simulate market impact though.


No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...