Yes, the script compiles correctly, but when I run it the error appears. The problem if I declare the series outside the for(), is that, as I understand, the rRealUpperBand is not going to belong to each one of the Assets[i]. Actually if I declare it outside the for(), probably Zorro won't be able to determine which is the asset that it should calculate.