Capture highest value

Hi
Is it possible to capture the highest value of a certain sensor? So for instance i’ve got a sensor which tracks my stock portfolio value. When this hits an all time high I will know the date and value of it.

Thanks

Not quite what I’m looking for. The max sensor shows the maximum value of that moment. Not the all time high value so of all times