A trendline connects swing highs or lows to visually map a trend’s trajectory and act as dynamic support or resistance.