=IF(AND(C3<C2,C2>=C1),MIN(B3:B7),0)
column c = highs, column b = lows. assuming you place this in row 2, it means: if the next high is lower than this high, and this high is higher than or equal to the previous high, then find the minimum low of the next five lows, otherwise output is zero...