For the past several weeks, I have been building strategies using the Pipeline method of pulling in VIX and VXV data. Just recently, I was going through trades and verifying data and came across an alarming issue. I also came across a secondary issue, but that may be cleared up by correcting the first.
Primary Issue: VIX and VXV Pipeline data is frequently wrong. http://screencast.com/t/unp8uM9lMj1
- The attached code shows this via output from log.info(). Basically, I am building a Pipeline and attaching VXV data. I then simply output the VXV Close price via log.info() to review. A manual comparison to actual closing prices of VXV via another service finds that there are many cases of closing price duplication (ie. same closing price for 2 days) and loss of the real closing price for one of those days.
- Additionally, to help prove the point, I import VXV data via the
fetch_csv()
function. I then output this data via log.info() along side the Pipeline'd VXV data. Thefetch_csv
data is spot on when comparing to other services.
Secondary Issue: Pipeline data is offset by an extra day. http://screencast.com/t/unp8uM9lMj1
- Using [-1] to pull the previous closing price, the results for VXV are actually from 2 days before. For example, if the closing price for 12/1/10 is 23.99, then that means that it should only appear as available to the strategy on 12/2/10. In actuality, 23.99 is showing up in the output as available on 12/3/10, a full day later.