Technical Analysis

What is Trendline?

Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy

DefinitionA trendline is a straight line drawn through two or more swing lows in an uptrend, or swing highs in a downtrend, used as a sloping support or resistance. If Nifty made lows at 24,200 and, 20 sessions later, 24,500, the line rises 15 points a day and sits at 24,680 twelve sessions after the second low; a buy near it with a 100-point stop risks ₹6,500 per futures lot of 65.
Formula
Line value at bar n = P1 + (P2 − P1) × (n − n1) ÷ (n2 − n1), where (n1, P1) and (n2, P2) are the two anchor points
Example
Illustrative: 24,200 + (24,500 − 24,200) × (32 − 0) ÷ (20 − 0) = 24,200 + 15 × 32 = 24,680

A trendline turns a trend into something you can trade against: a rising line under the lows of an uptrend gives a place to buy pullbacks and a place where the trend idea is wrong. Two points define a line; a third touch is what most traders want before trusting it.

How to draw a trendline

  1. Identify the trend from swing structure: higher highs and higher lows for an uptrend.
  2. Anchor the line at a clear swing low and a later, higher swing low. In a downtrend, use swing highs.
  3. Choose wicks or candle bodies for the anchors and keep that choice for every chart.
  4. Extend the line to the right. A third touch that holds turns it into a tradeable level.
  5. On charts spanning years or large moves, check the line on a log scale too, because a linear line can drift away from the lows.

Worked example on Nifty (illustrative)

Nifty makes a swing low of 24,200 on day 0 and 24,500 on day 20. The line rises (24,500 − 24,200) ÷ 20 = 15 points a session. On day 32 it is at 24,680, and Nifty dips to 24,690 and closes at 24,720 with a bullish candle. A trader buys one lot of Nifty futures at 24,720 with a stop at 24,620, below the line and the day’s low.

Slope
15 pts a day
Line on day 32
24,680
Risk
100 pts · ₹6,500
Target (prior high)
25,020 · 3R

The prior high at 25,020 is 300 points above entry: 300 × 65 = ₹19,500 before charges. The line keeps rising each day, so a stop left at 24,620 gets further from it. Some traders trail the stop under the line, which on day 45 sits at 24,200 + 15 × 45 = 24,875. A daily close below that level breaks the line.

How traders use it and log it

  • Pullback entries at the third or later touch, with the stop just beyond the line.
  • Exits or warnings on a close through the line. A break often means the trend slows or moves sideways, not that it reverses.
  • Breakout entries on downtrend lines, ideally with a retest from the other side.
  • Journal fields: anchor dates and prices, slope per day, touch number at entry, wicks or bodies, and the timeframe.
  • Review: compare entries on the third touch with entries on later touches after 30 or more trades.
Common mistake
Adjusting the anchors after a break so the line fits again. Save a screenshot of the line as it was drawn at entry; that version is the one your trade should be judged against.

Trendline vs moving average

Trendline

Straight, set by chosen swing points. Its slope stays fixed, so it separates from price when a trend speeds up or slows down.
Drawn by hand; rule it in writing

Moving average

Curved, calculated from closes. It adapts to changes in speed but lags, and every trader gets the same value.
Calculated; no drawing choices
For Indian traders
Nifty futures charts jump at each monthly rollover, because the next contract trades at a different premium. Draw multi-month trendlines on the spot index or a continuous adjusted series, then translate the level to the futures contract you trade. Lot size 65 is used above; check the current NSE circular.

Reference guide

ContextValueReading
Line through clear swing lows, third touch used for entryObjective useDecide wicks or closes once and use the same rule every time
Redrawing the line each time price breaks itHindsight drawingThe line then can never be wrong, so it cannot guide a stop
Very steep line after a sharp rallyFragileSteep lines break easily; a break may just mean a slower trend

Questions

How do you draw a trendline correctly?

Connect two clear swing lows in an uptrend, or swing highs in a downtrend, using the same wick or body rule every time, and extend it to the right.

How many touches make a valid trendline?

Two points draw a line; most traders want a third touch that holds before treating it as a level to trade.

What does a trendline break mean?

A close through the line shows the trend has lost its pace. It may reverse, but it often turns sideways first, so many traders wait for a retest.

Should trendlines use wicks or closes?

Either works if used consistently. Wicks catch every extreme; closes ignore spikes. Record your choice in the trading plan.

Related terms