I have been playing around with this cloned copy of a pairs trading and trying to implement it into a Crypto version.  When I backtest it says "list index out of range ".  I was wondering if someone could help me and show me how to find out when each pair gets weeded out.  

 

thanks,