I want to compare today's closing price to yesterday's closing price, however I could not find a method to get yesterday's price. I also looked for shifting the closingPrice dataseries(which I received by getAdjCloseDataSeries()
) but could not solve my problem. How can I get yesterday's price?
Documentation:
http://gbeced.github.io/pyalgotrade/docs/v0.20/html/dataseries.html
Try getAdjCloseDataSeries()[-1]