Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Storing price

Hey guys

Im new to this so bare with me. I am looking to do the following:

if you have on a time frame (say daily), if you have two consecutive down bars, and the third bar is an up bar, to store the open of the up bars price for future reference?

Excited to be part of the community and learn more!

1 response

Don't do it. Don't EVER store prices or volumes (or any data derived from them). These won't be split adjusted. If a split occurs (which is more often than you may think) then current prices won't be comparable to any prices you may have stored.

What you will want to do is to use pipeline and create a custom factor to make your comparison each day.