Similar to the "moving average" pipeline agg, it could be useful to be able to calculate moving max, moving min, moving variance, etc. Possibly allowing the user to configure which metric agg contributed to the moving value (min, max, avg, etc).
(This arose in the context of a moving median pipeline, although calculating median in the first place can be difficult).