backtrader
backtrader copied to clipboard
Fixed a bug where OLS returns only 1 results
In rare cases, the OLS returns only slope without intercept. This PR is to detect the number of results returns for an extra layer of protection.