quantopian / alphalens

Performance analysis of predictive (alpha) stock factors
http://quantopian.github.io/alphalens
Apache License 2.0
3.2k stars 1.12k forks source link

BUG: utils.compute_forward_returns can raise out of bounds exception #334

Closed luca-s closed 5 years ago

luca-s commented 5 years ago

A straightforward bug fix: just added a check on boundaries when accessing the index

This closes #331

twiecki commented 5 years ago

@luca-s looks great - can you write a test?

luca-s commented 5 years ago

Done!

twiecki commented 5 years ago

Thanks!