Trend indicatorsTechnical analysis
Trendlines: What They Are, How to Draw Them and How to Trade a Break
A trendline joins two or more swing lows in an uptrend, or swing highs in a downtrend, and extends them forward. Here is how to draw one with a fixed rule, why the linear and log scales give different breaks, and what followed 6,555 breaks of trendlines drawn by rule on 61 indices and ETFs since 1970.

On this page
A trendline is a straight line drawn on a price chart through two or more swing points and extended to the right. In an uptrend it joins rising swing lows and runs under price; in a downtrend it joins falling swing highs and runs above price. As long as price stays on its side of the line, the trend is intact; a close through the line is the first sign that it may be over. Trendlines are a tool of support and resistance: an up trendline is a rising support, a down trendline a falling resistance.
Bitcoin down trendline through two swing highs, linear scale

- Price, daily candles (hollow up, filled down)
- Trendline through October 6, 2025 and January 14, 2026, first close above on April 13, 2026 (solid line, second color)
The examples below show how the tool reads on real prices. Further down, we answer the question every trader asks with numbers: we drew trendlines by a fixed rule on 15 stock indices and 46 ETFs, measured what came after 6,555 of their breaks, and compared what came next with random days.
How to draw a trendline
- Find the swing points. In a downtrend, the highs; in an uptrend, the lows. To avoid choosing them by eye, use a rule: here, a swing high is a bar whose high is above the highs of the 10 bars before it and the 10 bars after it. That rule has a delay: a swing point is only known 10 bars after it forms, so the line through it can only be drawn from that day on.
- Join two of them. Two points always make a line; that alone proves nothing.
- Wait for a third touch. A line that price comes back to and respects a third time has held once more after being drawn; two points alone have not been tested. ChartSchool states the rule this way: “It takes two points to draw a trend line, and the third one confirms the validity.”
- Choose wicks or bodies, and keep to it. Lines through the highs and lows of the candles and lines through the bodies give different breaks. Neither is right; mixing them on the same chart is wrong.
- Check the scale. On a linear chart, the line falls by the same amount of dollars every day; on a logarithmic chart, by the same percentage. Over months, the two lines drift far apart. ChartSchool notes that highs and lows “appear to line up better for trend lines when prices are displayed using a semi-log scale,” especially for long-term lines or after a large change in price.
Drawing an up trendline, and what counts as a break

A real example: the Bitcoin down trendline of 2025 to 2026
On daily Bitcoin, two swing highs by the 10-bar rule stand out at the start of the decline: 126,199.63 on October 6, 2025 and 97,924.49 on January 14, 2026. Here is the line drawn through those two highs, on both scales. The rule that picks them: the highest swing high of the window, then the later swing high that gives the flattest line, so that no later swing high is above it. The January 14 high was confirmed by the rule on January 24, 2026, so this line could be drawn long before price reached it.
- Linear scale: the line falls by 282.75 dollars a day. On April 10, 2026, the high of 73,434 came within 1% of the line, at 73,607.87. On April 11 and 12, the highs went above the line but the closes stayed below. The first close above came on April 13, at 74,417.99 against a line at 72,759.62.
- Logarithmic scale: the line falls by 0.2533% a day. On April 17, 18 and 21, the highs went above the line but the closes stayed below. The first close above came on April 22, at 78,178.23 against a line at 76,370.90.
On the log chart, the line falls by a smaller amount at low prices, so it sat higher, and the break came nine days after the linear one, at a price about 5% higher. The same two points, read on two scales, gave two different signals; our guide to linear and log price scales explains why. Note also that this line was never touched a third time before it broke: by the rule of step 3, it was never confirmed.
The same two swing highs, line drawn on a log scale

- Price, daily candles (hollow up, filled down)
- Trendline through October 6, 2025 and January 14, 2026 (log scale, curved on this linear axis), first close above on April 22, 2026 (solid line, second color)
S&P 500 ETF up trendline through two swing lows

- Price, daily candles (hollow up, filled down)
- Trendline through November 21, 2025 and January 20, 2026, first close below on February 5, 2026 (solid line, second color)
In these examples, wicks crossed the line before a close did. A rule based on closes gives fewer and later signals than one based on any touch, and even a close can be reversed the next day.
Does a trendline break work? We tested every line drawn by rule
Two examples cannot say whether a break means anything. So we let a rule draw the lines, with no hand on the chart, on 15 stock indices and 46 ETFs, in daily data from January 2, 1970 to October 28, 2026. Each market starts on its first day in our data, so the early years hold only a few indices. The rule, set before we looked at any result:
- Swing points. A swing high is a high above the highs of the 10 bars before it and the 10 bars after it, known 10 bars later; a swing low is the reverse.
- Two points. A down line joins the latest swing high to the most recent earlier swing high that stands above it, at most 250 sessions before, with no high between the two above the line. An up line does the same with the lows. Lines are drawn on a log scale.
- Third touch. Price must first close more than 1 ATR away from the line (ATR: the 14-day average true range, Wilder's method). The third touch is the first later day whose high comes within 0.25 ATR of a down line, or whose low comes within 0.25 ATR of an up line, with the close still on the right side, once the second point is confirmed.
- Clean lines only. A line closed through before a third touch is a two-point line, kept apart. A line pierced by a wick by more than 0.25 ATR before a third touch is dropped, because an observer could fairly say it was drawn wrong.
- Break. The first close through the line, within 250 sessions of the third touch. When two lines broke on the same day in the same market and direction, the break is counted once.
- Comparison. For every break, a day drawn at random in the same market, 200 times with a fixed seed. If a break means something, the days after it should differ from the days after a random day.
The rule drew 13,909 lines that a trader could have seen in time. 7,134 of them, 51.3%, were touched a third time; 4,654 were closed through before a third touch, and 2,121 were pierced by a wick and set aside.
How long a trendline holds
Once price came back to a confirmed line, the line rarely lasted. The median line broke 3 sessions after its third touch; 64.8% broke within 5 sessions and 83.9% within 20. Only 2.6% were still unbroken 250 sessions after the third touch. Part of this is mechanical: a touch puts price within a fraction of a day's range of the line, so a close through it takes little. But it is also the honest reading of the textbook rule: the third touch that confirms a line is, more often than not, the start of its break.
How long a confirmed trendline held after its third touch

What follows a break
In the textbook, a close above a down line is a buy signal and a close below an up line a sell signal. Here is the average move after 6,555 breaks, from the close of the break, next to the move after random days in the same markets:
After a trendline break: average move, against random dates

- After the break
- Random dates
- Down lines broken upward (3,020 breaks). Prices rose 0.74% on average in the next 20 sessions, against 0.70% after random days. 62 of the 200 random draws did at least as well: the buy signal added nothing we can tell apart from chance. 59.6% of breaks were followed by a rise, against 58.4% of random days.
- Up lines broken downward (3,535 breaks). The supposed sell signal was followed by a rise of 1.04% on average in 20 sessions, more than the 0.72% after random days (0 of 200 random draws did as well). The share of rises was about the same, 58.9% against 58.8%: a close under a rising line was not followed by a fall, on average, in these markets that mostly rose over the decades.
About half the breaks did not last: after 51.9% of them, price closed back on the other side of the line within 5 sessions. That is no surprise once you see how small a break is: the median break close was 0.33 ATR beyond a down line and 0.43 ATR beyond an up line, less than half a normal day's range.
Does the third touch matter?
ChartSchool says two points draw a line and a third confirms it. We compared the breaks of confirmed lines with the breaks of two-point lines, closed through after they could be drawn but before any third touch (4,123 breaks):
Does the third touch matter? Move 20 sessions after the break

- After the break
- Random dates
For down lines, the third touch changed little: 0.74% after a confirmed line, 0.85% after a two-point line, both close to random days. For up lines, breaks of two-point lines were followed by 0.42%, below the 0.72% of random days, while breaks of confirmed lines were followed by 1.04%, above it. The third touch did not make the break of a down line more useful. For up lines it changed the side of the gap, but in neither case was the break of an up line followed by a fall on average.
Trading a trendline
- The bounce. Buy near an up trendline, or sell near a down trendline, with a stop on the other side. The line gives a clear point where the idea is wrong.
- The break. Act on a close through the line, or after a retest of the broken line from the other side. On our data, a bare close through a line did no better than a random day, so a break needs a stop, an exit and a test of its own. The trendline breakout strategy covers entries, stops and targets, and our page on the breakout covers false breaks.
- The trend filter. Take only trades in the direction of the line, and stand aside once it breaks.
Patterns built from trendlines
Two trendlines on the same chart make a pattern: converging lines make a triangle or a wedge, parallel lines a channel. Like the single lines tested above, these patterns are detected by rule and measured on our bench (see our methodology).
Trendline or regression line?
A trading trendline goes through chosen swing points and leaves price on one side. A regression line, like the linear trendline of a spreadsheet chart, is fitted through all the points, with price on both sides. Microsoft describes Excel's linear trendline as the least squares fit of a line, y = mx + b, where m is the slope and b the intercept. It answers a different question: the average direction of the data, not the level where a trend would break.
Moving averages give a curved version of the same idea: the moving average indicator and the Gann HiLo Activator both follow the trend under or above price without drawing anything by hand. More tools are listed with the trend indicators, and the Trend Intensity Index measures how strong a trend is.
Data from our test bench
Tested on our bench
We coded the 2 strategies taught on this page, buy and sell side, and ran them on stocks, ETFs, indices, forex, crypto and commodities. With all markets pooled (daily bars): 1 showed no edge, 1 was inconclusive or not measured.
Close breaks a falling trendlineNo edge found
Entry: Line through the last two confirmed swing highs (5 bars each side), the second lower; signal on the first close above the extended line, within 120 bars of the second swing. Exit: Fixed horizon: 20 bars.
In detail, all markets pooled
On daily bars, the rule fired 147,076 times on 2,350 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 58 bars on each asset.
The average trade returned +1.17% before costs and the median trade +1.01%; 55% of trades made money, and the gains added up to 1.32 times the losses.
A trade lasted 20 bars at the median, half of them between 20 and 20 bars. 100% of trades never met the exit rule and were closed at the maximum holding time.
Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.14% per trade after costs (95% interval −0.22% to −0.06%).
- Signals
- 147,0762,350 assets, 1970 to 2026
- Average trade
- +1.17%before costs; median +1.01%
- Winning trades
- 55%profit factor 1.32
- Median hold
- 20 barshalf between 20 and 20
- Vs the market, after costs
- −0.14%95% interval −0.22% to −0.06%
After the signal, bar by bar
Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).
| Bars after | 1 | 3 | 5 | 10 | 20 |
|---|---|---|---|---|---|
| After the signal | 50.3% | 52.3% | 52.6% | 54.2% | 55.0% |
| Random dates | 50.5% | 51.8% | 52.4% | 53.3% | 54.3% |
Over time
The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.
| Period | Signals | Vs market, before costs |
|---|---|---|
| 1970 to 2012 | 49,026 | +0.001% |
| 2012 to 2021 | 49,073 | +0.01% |
| 2021 to 2026 | 48,977 | −0.12% |
With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 39% of 146,316 trades hit the target first, for +0.18 R per trade on average against +0.14 R for the same trade at random dates of the same assets: no measurable difference from random dates.
Worst single trade of the whole test: −97.6% on SUNE, signal of 2025-03-24.
Real trades from the test
Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.




Market by market
| Market | Bars | Signals | Avg trade | Winners | Vs market, after costs | Result |
|---|---|---|---|---|---|---|
| Stocks | daily | 126,474 | +1.30% | 56% | −0.12% | No edge found |
| ETFs | daily | 4,124 | +0.93% | 60% | +0.02% | No edge found |
| Indices | daily | 2,156 | +0.92% | 62% | n/a | Not measured |
| Forex | daily | 1,623 | −0.03% | 51% | −0.13% | No edge found |
| Crypto | daily | 11,368 | +0.11% | 41% | −0.40% | No edge found |
| Commodities | daily | 1,331 | +0.74% | 52% | −0.07% | No edge found |
| All markets | 4-hour | 82,541 | +0.01% | 46% | −0.29% | Lagged the market |
| Forex | 4-hour | 9,696 | +0.003% | 50% | −0.03% | No edge found |
| Crypto | 4-hour | 72,845 | +0.01% | 46% | −0.33% | Lagged the market |
| All markets | weekly | 23,658 | +4.36% | 57% | −0.73% | Inconclusive |
| Stocks | weekly | 20,735 | +4.43% | 58% | −0.81% | Lagged the market |
| ETFs | weekly | 703 | +2.78% | 60% | −0.35% | No edge found |
| Indices | weekly | 378 | +3.77% | 65% | −0.40% | No edge found |
| Forex | weekly | 351 | −0.50% | 46% | −0.50% | No edge found |
| Crypto | weekly | 1,217 | +5.85% | 33% | n/a | Not measured |
| Commodities | weekly | 274 | +4.42% | 56% | +1.44% | No edge found |
Close breaks a rising trendlineInconclusive
Entry: Line through the last two confirmed swing lows (5 bars each side), the second higher; signal on the first close below the extended line, within 120 bars of the second swing. Exit: Fixed horizon: 20 bars.
In detail, all markets pooled
On daily bars, the rule fired 170,802 times on 2,351 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 50 bars on each asset.
The average trade returned −0.89% before costs and the median trade −0.82%; 46% of trades made money, and the gains added up to only 0.80 times the losses. For this sell signal, a trade gains when the price falls (a short sale).
A trade lasted 20 bars at the median, half of them between 20 and 20 bars. 100% of trades never met the exit rule and were closed at the maximum holding time.
Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.03% per trade after costs (95% interval −0.09% to +0.04%). For a sell signal, a positive number means the asset did worse than the others, as the signal announced.
- Signals
- 170,8022,351 assets, 1970 to 2026
- Average trade
- −0.89%before costs; median −0.82%
- Winning trades
- 46%profit factor 0.80
- Median hold
- 20 barshalf between 20 and 20
- Vs the market, after costs
- −0.03%95% interval −0.09% to +0.04%
After the signal, bar by bar
Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).
| Bars after | 1 | 3 | 5 | 10 | 20 |
|---|---|---|---|---|---|
| After the signal | 48.0% | 47.7% | 46.7% | 46.5% | 45.6% |
| Random dates | 48.2% | 47.4% | 47.0% | 46.1% | 45.2% |
Over time
The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.
| Period | Signals | Vs market, before costs |
|---|---|---|
| 1970 to 2012 | 56,961 | +0.11% |
| 2012 to 2020 | 56,944 | +0.01% |
| 2020 to 2026 | 56,897 | +0.12% |
With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 28% of 169,856 trades hit the target first, for −0.15 R per trade on average against −0.15 R for the same trade at random dates of the same assets: no measurable difference from random dates.
Worst single trade of the whole test: −668.0% on LUNA/USDT, signal of 2021-01-21.
Real trades from the test
Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.




Market by market
| Market | Bars | Signals | Avg trade | Winners | Vs market, after costs | Result |
|---|---|---|---|---|---|---|
| Stocks | daily | 147,043 | −1.12% | 45% | −0.07% | No edge found |
| ETFs | daily | 5,469 | −0.89% | 41% | −0.06% | No edge found |
| Indices | daily | 2,891 | −0.71% | 42% | n/a | Not measured |
| Forex | daily | 1,689 | −0.01% | 50% | +0.04% | No edge found |
| Crypto | daily | 12,237 | +1.75% | 61% | +0.45% | Inconclusive |
| Commodities | daily | 1,473 | −0.54% | 49% | +0.09% | No edge found |
| All markets | 4-hour | 84,303 | +0.07% | 53% | −0.11% | No edge found |
| Forex | 4-hour | 10,165 | +0.001% | 49% | −0.02% | No edge found |
| Crypto | 4-hour | 74,138 | +0.08% | 54% | −0.12% | No edge found |
| All markets | weekly | 31,853 | −5.25% | 39% | −0.25% | No edge found |
| Stocks | weekly | 28,319 | −5.99% | 38% | −0.21% | No edge found |
| ETFs | weekly | 1,073 | −3.51% | 34% | −0.38% | No edge found |
| Indices | weekly | 582 | −4.41% | 30% | −0.08% | No edge found |
| Forex | weekly | 331 | −0.93% | 47% | −0.79% | Lagged the market |
| Crypto | weekly | 1,253 | +7.85% | 74% | n/a | Not measured |
| Commodities | weekly | 295 | −2.03% | 46% | +0.17% | No edge found |
Each strategy enters at the close of the signal bar and exits at the exit it teaches, without a stop. The test compares the asset with an equal-weight basket of the other assets of its market over exactly the same bars, net of trading costs; for a sell signal, beating the market means the asset did worse than the others. A result is shown as beating or lagging the market only when it survives a correction for the number of tests and holds in both halves of the history; it is marked fragile when entering at the next open, doubling costs or trimming extreme trades removes it. Daily index bars are not compared with other indices, because their closes fall at different hours; “Not measured” also covers samples too small to test. Rules were fixed before any result was seen. How we test
Frequently asked questions
What do trend lines do?
They show the direction of a trend and the level where it would be broken: under rising lows in an uptrend, above falling highs in a downtrend. Traders use them as support or resistance, and a close through the line as a warning that the trend may be over.
Do trendline breaks work?
Not on their own, on our data. Over 6,555 breaks of trendlines drawn by rule on 61 indices and ETFs since 1970, prices 20 sessions after a break of a down line were up 0.74% on average, against 0.70% after random days; after a break of an up line they were up 1.04%, not down. About half the breaks closed back across the line within 5 sessions.
How long does a trendline last?
Not long once price comes back to it. On our data, a line confirmed by a third touch broke a median of 3 sessions after that touch, and only 2.6% were still unbroken 250 sessions later.
How do you draw a trendline correctly?
Join two swing lows in an uptrend, or two swing highs in a downtrend, chosen by a fixed rule, then wait for a third touch. Keep to wicks or to bodies, and check whether your chart is on a linear or log scale.
What is the slope of a trendline?
The change in price per bar along the line. On a linear chart it is a fixed amount, for example −282.75 dollars per day on the Bitcoin line above; on a log chart it is a fixed percentage, −0.2533% per day for the same two points.
How do you make a trendline in Excel?
Excel adds a trendline to a chart series, linear or of other types such as exponential, logarithmic, polynomial, power or moving average. Its linear trendline is a least squares fit through all the points: a regression line, not a trading trendline through swing points.
What is the difference between a trendline and a regression line?
A trendline is drawn through selected swing points and leaves price on one side; a regression line is fitted through every point and splits price on both sides. The first marks a break level, the second an average direction.
