Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Can't get the min and max of 15 minutes

In previous versions of quantopian I believe I was able to get the min or max values as follows:

HighRange = max(history(15, '1m', 'high'))
LowRange = min(history(15, '1m', 'low'))

Now it seems that is not working. Can someone shed some light? Much appreciated.

EG

1 response

OK Fellas,

After debugging I found the issue:

HighRange = history(15, '1m', 'high')[context.spy].max()
LowRange = history(15, '1m', 'low')[context.spy].min()

EG