I’ve been getting very erratic pipeline generation while paper trading a live Zipline strategy. The pipeline definition uses both standard price inputs (from USEquityPricing), as well as custom factors. The pipeline produces empty values for USEquityPricing.high and USEquityPricing.low, and 0.0 values for USEquityPricing.volume.
I’ve been running this strategy for a couple weeks, and I’ve seen the pipeline generation work properly on certain days before. But I can’t predict whether it will or won’t each day.
Things I’ve already tried:
I’ve recollected both the local minute and daily price databases. I usually collect updates for both on a daily basis before starting the strategy (all via countdown).
I’ve deleted the context joblib to start the strategy from scratch.
I’ve recreated the zipline container.
The pipeline generates as expected when I run it in a notebook in a zipline environment (via run_pipeline), using the same pipeline definition and specifying a date range that includes the last trading day before the current one.
Any ideas how to test why the live pipeline would not be passed last day prices during live trading?
Related - when a live strategy is started manually in the middle of a trading day (via zipline.trade), am I right in assuming that it will try to pull pipeline prices for the previous trading day (since there are no current day prices in the database)?