0

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
lalalal
  • 3
  • 2

1 Answers1

0

Try getAdjCloseDataSeries()[-1]

Gabriel
  • 492
  • 3
  • 4