Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Unable to Run Backtests on Almost All Algorithms

I've just starting learning about Quantopian through their introductory YouTube series, but I've been completely unable to conduct backtests on anything remotely complex. It took about 10 minutes to backtest an algorithm that was 100% long in Apple for the year of 2002, which was essentially the most basic program I could have created. Anything even slightly more complex does not progress beyond the "Initializing Backtest" message. Note that I've tried to run the following program on two different computers to no avail:

def initialize(context):
context.aapl = sid(24)
schedule_function(check, date_rules.every_day(), time_rules.market_close(minutes = 30))

def check(context,data):
print get_datetime('US/Eastern')
print data.history(context.aapl,'price',10,'1m').mean()

Thanks for reading and I appreciate any help.