How do I use the concept of swing highs and lows in trading?

How can identifying swing highs and lows improve trading entries and exits?,