A trendline is a line drawn over pivot highs or under pivot lows to show the prevailing direction of price. Trendlines are…