Hi ZorroTradeAA,

Thanks for your reply. My LookBack period was at 250 and I used it indeed in a loop. The problem was the absense of a index in my array as Grat indicated.