Hello, I was going through the strategy library and came across the interesting Beta Factor in Stocks Algo, but get an error when running the code from the post. I tried changing the decimal to float in the rolling window but it didn't help, not sure how to fix it.

It won't let me attach a backtest which is why I linked to it above.

thanks,

Author