How to Draw Trend Lines: The Rules, the Breaks, and What Auto Trendline Indicators Miss (2026 Guide)

How to Draw Trend Lines: The Rules, the Breaks, and What Auto Trendline Indicators Miss (2026 Guide)

The anchor, angle and scale rules for trend lines, a worked trade with entry, stop and size, how to read a break, and what TradingView's auto trendline tools redraw.

Quick answer

To draw a trend line, connect two swing lows in an uptrend (each higher than the last) or two swing highs in a downtrend, and wait for a third touch before trusting it. Anchor every line the same way, all wicks or all bodies. Steep lines break sooner than shallow ones, and on charts covering a large percentage move a log scale lines points up better than a linear one. A break of the line is a warning that the trend has lost its angle, not proof that it is over; the horizontal swing low is the level that decides that. TradingView's Auto Chart Patterns tool scans the most recent 600 bars, and community auto trendline scripts build their lines from pivots, which are only confirmed several bars after they form, so lines can appear in places that were not visible in real time.

To draw a trend line, connect two swing lows in an uptrend, each higher than the one before, or two swing highs in a downtrend, then wait for price to touch the line a third time before you trust it. That is most of the method. The rest of trendline trading is about the choices that let two traders draw different lines on the same chart: wicks or bodies, linear or log scale, how steep is too steep, and what to do when the line breaks. This guide covers each one, works a trade from the line with an entry, a stop and a position size, and then looks at what the automatic trendline indicators on TradingView actually draw.

What a trend line measures

A trend line is a straight line under the rising lows of an uptrend or over the falling highs of a downtrend. It turns a sequence of swing points into a rate: in an uptrend, how fast buyers are willing to pay more on each pullback. A line that rises $0.30 per session says the pullbacks have been ending about $0.30 higher each day, on average, between the anchor points.

That framing explains what a trend line can and cannot tell you. It describes the angle of the trend so far, and it gives you a rough area where the next pullback might stop if that angle holds. It says nothing about whether the angle will hold. When the line breaks, the one thing you know for sure is that the trend stopped rising at that rate. It may carry on more slowly, go sideways, or reverse, and the line alone does not tell you which.

StockCharts' ChartSchool, one of the longer-running free technical analysis references, puts the same limit plainly in its article on trend lines: breaks "should not be the final arbiter, but should serve merely as a warning." Keep that sentence in mind through the rest of this guide, because most trendline mistakes come from treating the line as a verdict.

If you have not marked swing highs and lows before, start with how to identify a trend from structure. A trend line is drawn on top of that structure, and it cannot fix a chart where the swings were never marked.

How to draw trend lines, step by step

These steps assume an uptrend. For a downtrend, flip every one: connect highs, each lower than the last, and draw the line above price.

  1. Pick the timeframe you trade from. A trend line on the daily chart describes the daily trend. It does not describe the 5-minute trend, and a line that works on one is often invisible on the other.
  2. Find the first clear swing low at the start of the move. Clear means price made a low, rallied away from it, and the low was not taken out soon after.
  3. Find the next swing low that is higher than the first. ChartSchool states the requirement directly: "The second low must be higher than the first." If the second low is lower, there is no uptrend line to draw.
  4. Connect the two lows and extend the line to the right edge of the chart. On TradingView this is the Trend Line drawing tool, with the line set to extend right.
  5. Treat the line as provisional. Two points define any line, so two touches prove nothing. ChartSchool's rule is "It takes two points to draw a trend line, and the third one confirms the validity."
  6. Wait for the third touch. Price pulls back, reaches the line or comes close, and turns up again. Now the line has done something it was never forced to do.
  7. Check the spacing. ChartSchool describes the ideal line as one with "relatively evenly spaced lows." Three touches crammed into a week on a chart covering a year tell you less than three touches spread across it.
  8. If the lows do not line up, stop. In ChartSchool's words, "it is best not to force the issue." A forced line is the one you will later redraw to fit what you want to see.

Each extra touch after the third adds a little more weight to the line, with a catch covered later: a line that has been tested many times can also be a line that buyers have been leaning on, and when it goes, it can go fast.

Wicks or bodies: pick one anchor and keep it

The most common reason two traders draw different lines on the same chart is that one anchored on wicks and the other on candle bodies. A wick records the most extreme price traded in the period. The body records where the period opened and closed. On a chart with long lower wicks, a line through the wick tips can sit well below a line through the bodies, and the gap is wide enough to change where you put a stop.

A rising price chart with two diagonal lines under it, one touching the tips of the long lower wicks and one touching the bottoms of the candle bodies, with a visible gap between them.
Two honest lines can sit on the same chart: the wick line lower, the body line higher, so the anchor you pick moves your stop.

Neither choice is wrong. What breaks the line is mixing them: a wick at one end and a body at the other. Mixed anchors let you pick whichever combination produces the line you hoped to see, and that line will not mean anything on the next pullback.

A workable rule for choosing:

  • Start with wicks. They capture the full range of what traded.
  • If one wick sticks out far beyond the rest (a panic print, an opening gap that filled in minutes), try the line through the bodies instead and see which version has more clean reactions.
  • Pick one and keep it for that chart, on that timeframe, for as long as the line is live.

ChartSchool describes a related tool, the internal trend line, which is drawn through clusters of price and skips over isolated spikes "to a reasonable degree." It is useful on thin or volatile charts where one bad print would otherwise set the angle for everything. The risk is the same as with mixed anchors: "to a reasonable degree" is a judgment call, and the further you go with it, the more the line becomes your opinion of the chart.

Whatever you choose, write it down in your trade notes. Three months from now you will want to know whether your wick lines or your body lines held up better, and you can only find out if you were consistent.

The angle: why steep trend lines break first

A steep trend line comes from a sharp move over a short time, and it describes a pace the market rarely keeps. ChartSchool says it directly: "As the steepness of a trend line increases, the validity of the support or resistance level decreases." Even a steep line with three good touches is hard to trade, because the next pullback only has to slow the rally down a little to cross it.

You can see this in the arithmetic. Take a stock at $50 with a line rising $1.00 per session. Every day the line climbs another 2%. A perfectly healthy pullback that holds flat for three sessions puts price $3 under the line, a break, even though nothing about the trend structure changed. A line rising $0.25 per session would still sit under price after the same pause.

The angle you see on screen also depends on how the chart is squeezed. ChartSchool points out that "short and wide charts are less likely to have steep trend lines than long and narrow charts." Zoom the time axis and a line that looked like 60 degrees looks like 30. Judge steepness by the rate: work out how much the line rises per bar, as a dollar amount and as a percentage of price, and compare it with the stock's average daily range.

A practical sequence many chartists use is to keep the steep line and the shallow line on the chart together. The steep one is the first warning. When it breaks, they watch the shallower line drawn from earlier lows, and the horizontal swing low below both, to see whether the trend is slowing or ending.

Linear or log scale

On a chart covering a big percentage move, switch the price axis to log scale before you draw. ChartSchool notes that "High and low points appear to line up better for trend lines when prices are displayed using a semi-log scale," and that the difference matters most on long-term lines or large price changes.

The reason is how each scale spaces prices. On a linear scale, the gap from $10 to $20 is the same height as the gap from $90 to $100. On a log scale, $10 to $20 is the same height as $50 to $100, because both are a doubling. A stock that rises at a steady percentage rate draws a straight line on a log chart and an upward curve on a linear one.

The stock below shows what that does to a trend line. Its prices are made up to illustrate the effect.

Steady 8% monthly growth curves away from a straight line on a linear axis. On a log axis the same prices would draw a straight line.

On the linear chart, price pulls further above the line every month. By month 12 it is at $25.18 against a line at $20.40, so the line has stopped describing the trend at all. A trader on that chart tends to redraw a steeper line from the recent lows, and that steeper line is the one a normal 10% pullback will break. On a log chart the 8% monthly pace is a straight line from start to finish, and the original anchors keep working.

ChartSchool shows the same effect on real charts. In its Amazon example from 2000 and 2001, the arithmetic chart shows two false breaks of the downtrend line, while on the semi-log chart "the downtrend line was never broken." In its EMC example, one line on semi-log fits the whole advance, while the arithmetic chart needs three.

Rules of thumb that follow from this:

  • If the chart covers a move of more than about 50% from low to high, try both scales and see which one lines the swing points up.
  • Most crypto charts over a year qualify, and so does any stock that doubled.
  • On an intraday chart of a large-cap stock that moved 2%, the two scales draw almost the same line and the choice does not matter.
  • Draw on the scale you will watch. A line drawn on log and then viewed on linear is no longer straight.

A worked example: trading an uptrend line

The numbers below are an illustration built to show the mechanics, not a record of a real trade.

A stock on the daily chart sets a swing low at $40.00 on day 1, rallies, and sets a higher swing low at $42.40 on day 9. The line through those two points rises $0.30 per session. On day 17, price pulls back and closes at $45.10 with an intraday low right at the line's $44.80. That is the third touch, and the line is now worth watching.

The stock rallies to an intraday high of $50.20 on day 21, then pulls back again. On day 25 the line sits at $47.20. Price trades down to a low of $47.35, just above it, and closes at $47.90, near the top of the day's range. That close is the reason to act: buyers showed up at the line for the fourth time.

Three touches confirm the line, the fourth gives the entry, and the close under it on day 33 is the warning, not yet the end of the trend.

The plan, written before the order goes in:

  • Entry: a buy stop at $48.00 for day 26, just above the day 25 high. If price does not trade through it, there is no trade, which filters out the touch that turns into a break.
  • Stop: $46.90. On day 26 the line sits at $47.50. The stock's average daily range is about $1.10, so the stop goes roughly half a range under the line, and also under the day 25 low of $47.35. A stop exactly on the line gets hit by ordinary noise; for more on that, see where to place a stop loss.
  • Risk per share: $48.00 minus $46.90 is $1.10.
  • Size: on a $25,000 account risking 1%, the most you can lose is $250. $250 divided by $1.10 is 227 shares, a position worth about $10,900.
  • Target: the prior swing high at $50.20. That is $2.20 above entry, twice the risk.

Price trades through $48.00 on day 26 and reaches $50.20 on day 29. The 227 shares close for 227 times $2.20, about $499 before commissions, or 2R. The other branch matters as much: had price fallen through the line and hit $46.90, the loss would have been about $250. With a 2R target, the trade only needs to work a little more than one time in three to break even before costs, and nothing in a trend line tells you in advance which branch you are on.

Two things a real chart adds that this example does not. A gap open below the stop fills at the open, not at $46.90, so the loss can be larger than planned. And a target at a prior high is where sellers from that high may be waiting, so the first test of $50.20 can stall short of it.

Bounce entries and break entries

There are two ways to trade from a trend line, and they want opposite things from it.

A bounce entry buys a pullback to a rising line, as in the example above. It needs the line to hold. Its strength is a tight stop: the line and the last swing low are close, so the risk per share is small. Its weakness is that you are buying while price is falling, and the touch that looks like a bounce is sometimes the first bar of the break. Waiting for a close back up, or a trigger above the touch bar's high, costs a little price and filters out some of those.

A break entry trades the move after the line gives way. A close below a rising line can be a short signal for traders who already see weakness in the structure, and a close above a falling line is the classic early long on a downtrend that is running out of sellers. It needs follow-through, and it fails often, because many breaks are just the trend slowing down. Our breakout trading strategy guide covers the volume and retest filters that apply to diagonal lines as much as horizontal ones.

Most traders who use trend lines well pick one of the two and get good at it. Trying to play both on the same line usually means buying the touch, getting stopped on the break, and then shorting just as the trend resumes.

When a trend line breaks

A break of an uptrend line means, in ChartSchool's description, that "net demand has weakened, and a change in trend could be imminent." The word that matters is could. Three things to check before treating it as more than a warning:

A rising diagonal line on a chart with price falling through it, then rallying back up to touch the underside of the line and turning down again.
After a break, a rally back to the underside of the old line is the retest: if it turns down there, the line has switched from support to resistance.

Did price close through it? An intraday poke that closes back above the line is a test, not a break. On the daily chart, wait for the close. On fast charts, many traders want two closes beyond the line, or one close and a failed retest, before they call it.

What does the horizontal structure say? ChartSchool suggests confirming a break with horizontal support and resistance or peak-and-trough analysis. In the worked example, price closed at $48.70 on day 33 with the line at $49.60, a clear break. The last swing low was $47.35 on day 25. Until price closes under $47.35, the sequence of higher lows is intact, and the uptrend is slower rather than over. If you want the horizontal levels drawn properly, how to read support and resistance covers it.

What happened on the retest? After a break, price often rallies back to the line from below. In the example, day 35 closed at $49.80 with the line at $50.20, so price came back to the underside and stopped. When that happens, the old support line is acting as resistance, which is the same role reversal you see on horizontal levels. A retest that closes back above the line and holds is the opposite signal: the break was a false one, and the line, or a slightly shallower version of it, is back in play.

What you do with a break depends on your position. If you hold a long from the line, a close through it is a reason to tighten the stop or take part of the trade off, and the swing low is where the trade idea is wrong. If you are flat, a break is a reason to stop buying touches of that line, and it is not yet a reason to short, unless the horizontal structure breaks too.

One trap worth naming: after a break, the temptation is to redraw the line from a new, lower anchor so that it is not broken anymore. Sometimes a shallower line is the honest description of the new pace. More often it is a way of not admitting the read changed. A rule that helps is to keep the broken line on the chart in a different color, and draw the new one only when it has its own third touch.

Trend channels

A trend channel adds a second line parallel to the trend line, on the other side of price. In an uptrend, the main line runs under the swing lows and the parallel line runs through the swing highs. Price that respects both lines is moving at a steady pace inside a band.

To draw one, draw the trend line first, the normal way. Then copy it and move the copy so it touches the most important swing high between the anchors. On TradingView, the Parallel Channel tool does both steps in one drawing.

Channels are useful for two decisions. The upper line is a natural place to take profit on a long bought near the lower line, as long as the channel holds. And a failure to reach the upper line, when price turns down halfway through the channel, is often the first sign the trend is slowing, before the lower line is even tested.

They carry the same weaknesses as a single line, doubled. Two lines need four good touches between them, and price that overshoots the upper line in a strong rally can make the channel look broken in the direction of the trend, which usually means the pace picked up and the channel is too narrow.

Auto trendline indicators on TradingView

TradingView has a built-in automatic pattern tool and a large library of community scripts that draw trend lines for you. They are worth knowing about, and worth knowing the limits of, before you trade a line a script drew.

A chart with several diagonal lines drawn by a program fanning across price, some ending abruptly where new bars arrived and a fresh line appearing near the right edge.
Script-drawn trend lines change as new bars confirm new pivots, so the line on screen today may not be the line that was there in real time.

The built-in tool. TradingView's help article on auto chart patterns says the automatic tools sit in the Indicators menu: click "Technicals" and open the "Patterns" tab. The tool draws classic patterns, including triangles and wedges whose edges are trend lines, and the article states that it "searches for patterns within the most recent 600 bars/candles/price points displayed." On a daily chart that is a little over two years of trading; on a 5-minute chart it is under eight regular US sessions of 78 bars each. To look further back, the article points to Bar Replay. It is a pattern detector, and a trend line you draw yourself on a clean uptrend is not something it is built to reproduce.

The same article makes the case for drawing your own lines. It says "You might spot something an indicator misses due to its limitations," that you "can apply any drawing, even trendlines for a triangle's edges, however you interpret the pattern's emergence," and it warns that automatic indicators "can also be misleading by adding unnecessary barriers and making you overly reliant on automation." Its advice is to study the chart and find some patterns yourself first, then add the automatic tools.

Community auto trendline scripts. Search TradingView's indicator library for "auto trendline" and you will find dozens. Most work the same way. One open-source example, Simple Auto Trend Lines, finds pivot highs and lows "using customizable lookback parameters, then connecting these pivots to form valid trendlines," and counts a line as valid "when no price action penetrates it between the connected pivot points." It can hide lines once price has crossed them for a set number of candles, and the author suggests "tighter pivot settings for short-term trading and wider settings for longer-term analysis."

That pivot step is where the limits come from. A pivot low with a lookback of 5 bars is only confirmed once 5 bars have closed after it without trading lower. Until then, the script does not know it is a pivot, so the line through it does not exist yet. Then, when it is confirmed, the line is drawn starting from a bar in the past. TradingView's own Pine Script documentation on repainting defines repainting as "script behavior causing historical vs realtime calculations or plots to behave differently," and lists "most scripts based on pivots" among the cases that can mislead for exactly this reason: a pivot confirmed bars later is plotted back on the bar where it formed. The same page notes that the methods that avoid repainting "will also trigger signals later."

What that means in practice:

  • Lines on historical bars look cleaner than they were in real time. When you scroll back and see a script's line catch every bounce, some of those lines appeared on the chart several bars after the bounce happened.
  • Lines appear, extend, and disappear as new bars arrive. The line you trade today may be replaced tomorrow by one from a different pair of pivots.
  • The lookback setting decides what counts as a swing. A short lookback draws many lines from small wiggles; a long one draws few lines and confirms them late. Neither is the right setting; it depends on which swings you trade.
  • Alerts on script-drawn lines need testing. The author of the script above notes that "alerts might not work as expected and need some testing."

None of this makes the scripts useless. They are a fast way to see which pivots a rule would pick, and a second opinion on a line you drew by hand. Use them to check your own drawing, and judge a script only by how it behaved in real time on bars you watched. If you build scans around scripts, our TradingView stock scanner guide covers where the screener's limits land.

Trend lines across timeframes

A trend line belongs to the timeframe it was drawn on. A rising daily line can sit far below price on the 15-minute chart, irrelevant to anything a day trader does this morning. A falling 15-minute line can break ten times inside one daily candle.

The useful habit is to draw the slower line first and trade the faster chart with it in view. If the daily uptrend line sits $0.40 below this morning's price, a 15-minute pullback toward that area means more than one in the middle of nowhere, and a 15-minute break of a small down line near the daily line is a cleaner long trigger than the same break anywhere else. This is the same top-down reading described in our guide to multi-timeframe analysis, with the daily line as one of the levels you carry down.

The reverse also holds. A break on the 5-minute chart says nothing about the daily trend line. Traders who move their swing stop because of a 5-minute break are mixing timeframes, and that usually costs more than it saves.

Common mistakes

  • Drawing with two points and trading it as confirmed. Two points make any line. Wait for the third touch, or size down on a two-point line and say so in your notes.
  • Mixing wicks and bodies. Pick one anchor per chart and keep it. Mixed anchors let you draw the line you hoped for.
  • Forcing a line through lows that do not line up. If you have to ignore half the chart to make it fit, there is no trend line there.
  • Trading a very steep line. Work out the line's rise per bar as a share of the average daily range. If a two- or three-session pause would put price under it, it will break on the first pause. Use it as an early warning and trade from a shallower line or the horizontal level.
  • Staying on linear scale over a big move. On a chart that doubled, draw on log and watch on log.
  • Putting the stop exactly on the line. Noise crosses lines all day. Put the stop a fraction of the average range beyond the line and beyond the last swing.
  • Treating the break as the end of the trend. It is a warning. The horizontal swing low decides whether the trend ended.
  • Redrawing after a break so the line fits again. Keep the broken line visible, and require a new third touch before trusting a new one.
  • Trusting a script's history. Pivot-based lines are drawn back in time once a pivot confirms, so a backward look flatters them.

FAQ

Is there an auto trend line indicator on TradingView? Yes, in two forms. TradingView's built-in Auto Chart Patterns tools, under Indicators, Technicals, Patterns, draw classic patterns such as triangles and wedges whose edges are trend lines, within the most recent 600 bars. The community script library also has many auto trendline indicators that connect pivot highs and lows. Both are useful second opinions. Pivot-based scripts can show lines on past bars that were not visible in real time, so test one on live bars before trading its lines.

Should trend lines be drawn on wicks or bodies? Either works if you are consistent. Wicks capture the full range traded; bodies ignore one-off spikes. Start with wicks, and switch to bodies on a chart where one or two extreme wicks set the angle for everything. Never connect a wick at one end to a body at the other.

How many touches does a trend line need? Two points to draw it, a third to confirm it. ChartSchool treats the third touch as the confirmation. More touches add weight, but a line tested many times can also break hard when it finally goes, because an obvious line is an obvious place to park a stop.

What timeframe works best for trend lines? The one you trade from, with the next slower timeframe in view. Daily and 4-hour lines tend to be cleaner than 1-minute lines, because each swing represents more trading. On very fast charts, a horizontal level or a moving average is often a steadier reference than a diagonal line.

Do trend lines work on crypto charts? The method is the same. Two differences matter: crypto trades around the clock, so there is no session close to wait for unless you pick one (most use the UTC daily close), and many crypto charts cover moves large enough that a log scale is the better default.

What usually happens after a trend line breaks? There is no reliable usual. The trend may slow down and carry on at a shallower angle, go sideways, or reverse. A close through the line followed by a failed retest from the other side is a stronger signal than the break alone, and a break of the last horizontal swing point is stronger still.

Can I draw a trend line on a downtrend the same way? Yes. Connect two swing highs, each lower than the one before, draw the line above price, and wait for the third touch. A close above a falling line is the early warning that sellers are losing pace.

Where Quant AI fits

Everything above can be done by hand: mark the swings, choose an anchor and a scale, draw the line, wait for the third touch, and plan the stop beyond it. Quant AI reads a screenshot of your chart and marks the trend and the levels it finds, which gives you a second read to compare with your own line. It does not know which anchor you chose or how much you are willing to lose, so whether a touch is worth trading, and how big, stays your call.