add averageUpDownSweep. To test: does this really work for multiple traces