Hi,

I'm new to Quant Connect and new to coding as well. I've been trying to essentially create a “gap” scanner for which I can then run code on securities that meet the criteria. however I'm finding my algorithm to take about 5 minutes to backtest on just one month of data, this is making it hard to repeatedly run iterations as I debug and build, and also makes me worried how long the backtest will take once it is applied to a much longer time frame and actually buys and sells.

One month backtest gave 22Million data point so I'm guessing the slowness is primarily due to the amount of data, But thought there may be a way to make the filtering more efficient? or maybe I'm doing something silly with my code that's slowing it down, I've also heard c# is much faster, is it worth switching?

 

Author