oscillating
Oscillating means moving back and forth between two extremes. It can be something as simple as the temperature in a room oscillating between cold and hot, or it can be more complex, like the stock market oscillating between high and low.
The market oscillated between high and low throughout the day.
The temperature in the room oscillated between cold and hot throughout the day.