Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to get the "lows" of a stock on a 15 minute bar graph timeline?

Hi, complete beginner here. I've been struggling to specifically print out each of the "lows" of a stock using a 15-minute sized candlesticks. It will give me data which is off by a few cents/dollars. Any help would be appreciated!

def initialize(context):
context.security = sid(8554)

def handle_data(context, data):

prices_15m = data.history(context.security, 'low', 1, '1m').resample('15T').first()  
#print (get_datetime('US/Central'))  
print(prices_15m)  
1 response

You just need more bars than the resample period. This one gives you 5 15-minute-lows.