How to get Current day high low by using for loop?

How to get Current day high low  by using for
thanks in advance
DayChange = Day() != Ref(Day(), -1);
DayChange[0] = True;
HSDayChange = HighestSince(DayChange, H);

for(i=1; i<BarCount; i++)
{
	//inside the loop refer to the highest using HSDayChange[i]
}

i want to current day constant value

@awilson can u give me the code to calculate previous day high low in a loop?

DayChange = Day() != Ref(Day(), -1);
DayChange[0] = True;
HSDayChange = HighestSince(DayChange, H);
HSDayChangePrev = ValueWhen(DayChange, Ref(HSDayChange, -1));

for(i=1; i<BarCount; i++)
{
	//inside the loop refer to the highest using HSDayChangePrev[i]
}