Is this correct?
dow = DayOfWeek();
lastDayofWeek = dow > Ref( dow, 1 );
startpoint = lastDayofWeek AND Cum( lastDayofWeek ) % 2 == 0;
// Two week(bi-weekly)closing price
twoWeekClosingPricecomp = SparseCompress( startpoint, Close );
twoWeekClosingPriceEx = SparseExpand( startpoint, comp );
//Two week(bi-weekly) Highest Price
twoWeekHighestHigh = HighestSince( startpoint, High );
twoWeekHighestHighPricecomp = SparseCompress( startpoint, twoWeekHighestHigh );
twoWeekHighestHighPriceEx = SparseExpand( startpoint, twoWeekHighestHighPricecomp );