Hi, 

I get this error in live mode. "Runtime Error: Algorithm took longer than 10 minutes on a single time loop"

 It gets stuck in fine filter where I call history for each of the securities (lines 24-30). However, in backtest, this only takes about a ~ 20 seconds to run. 

Anyone knows what the issue is?