Hey, could someone help me please?¿

I am trying to get the highest and lowest value of a certain number of bars starting from the bar which is already closed. (for this example, lets say 6 bars). And obviously I'm doing something wrong. Can anyone correct me?

to get the highest I write this:

for the lowest:

but I don't seem to get the right values. What is wrong?

I am trying to get the highest and lowest value of a certain number of bars starting from the bar which is already closed. (for this example, lets say 6 bars). And obviously I'm doing something wrong. Can anyone correct me?

to get the highest I write this:

**double Highest = iHighest (Symbol(), Period (), MODE_HIGH, 6, 1);**for the lowest:

**double Lowest = iLowest (Symbol(), Period(), MODE_LOW,6, 1);**but I don't seem to get the right values. What is wrong?