Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Historic value lookup and quantification [WIP]

Stub function (part4_past_spikes) for generating a spikability score. Also generates and prints additional historical information that is not returned but could be if you wanted to use that information. I was planning on using the historical bias to adjust position sizing and I'm posting this work-in-progress to share a bit. The historical lookup is not optimized very much and will easily blow the memory limits and/or timeout limits if you try throwing too many securities (multiple calls_ at it in a single time slice.

If you want to use it for manual lookup, clone the algo and adjust the context.sec assignment to the security you're interested in. More info on the usage of the output can be found on my blog post on profit.ly. It's intended to be used in a more day-trading style algorithm instead of a swing algo.