Markets are only ever doing one of two things: trending (going somewhere) or ranging (going nowhere). Knowing which you're in decides how you should trade.
Uptrend — a staircase of higher highs and higher lows. You want to buy the pullbacks, not short the strength.
Downtrend — lower highs and lower lows. You want to sell the rallies.
Range — price bouncing between a floor and a ceiling, no higher highs or lower lows. You fade the edges (buy support, sell resistance) — or you wait for the breakout.