Disliked{quote} I applied it on the same chart GBPCHF. This is plotting this week high and low. It should be plotting the previous week if the criteria is meet. {image}Ignored
double hi=iHigh(NULL,10080,0),lo=iLow(NULL,10080,0);
This part just checks for HH or LL
if(upper[0]!=hi)fillArray(upper,hi);
if(lower[0]!=lo)fillArray(lower,lo);
Also SetIndexEmptyValue is usually called in init, it sets the empty value to be used for the whole array.