Fixed https://github.com/gbeced/pyalgotrade/issues/10.