So I've tried to run a backtest on my algorithm with a starting hypothetical capital of 10K from early 2007 until April 2018
and about 2013, I get the message that "Can't order more than 100000000000 shares"
This was the full backtest prior to crashing
Just so you know, though, I make sure the sum of all absolute value of weights add up to 1 or less, for which, say, weights[i] = percentage of the capital that should be allocated in the i'th securities with negative percentage being shorting