Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Does the data set USEquityPricing.open include open prices from the previous day?

In the USEquityPricing data set are the open values reset daily or do values in the USEquityPricing.open data set include the previous day's values?

Thanks, Vaughn

2 responses

The USEquityPricing dataset includes data from 01 Jan 2002 - Ongoing. (See https://www.quantopian.com/data/quantopian/us_equity_pricing for the specifics). You have access to any data in that range.

One can use the built in "latest" method to easily retrieve the previous days data (eg the open price). This will create a factor which can then be added to a pipeline. Create a custom factor to get data further back. Attached is a notebook showing examples of this. The same custom factor can be used in an algorithm.

Good luck

Thanks Dan!
Is there a way I can exclude the previous day's open values and only look at the current day, because my algo looks at the last 120 open values and performs calculations. If it is on minute one of the trading day then that means my algo is going to be assuming that yesterdays last 119 values just happened