I need to check if the current value is higher than the next two and the previous three values. Otherwise, it passes the previous number.
Ex:
| date