Technical analysis · Trend and structure
Trends and trendlines: how to identify a trend and draw it correctly
How to tell an uptrend from a downtrend with swing highs and lows, draw a trendline that means something, and judge when a break matters, on real SPY data.
On this page
A trend is the direction prices have been moving, measured not by a single day but by the pattern of the swings. In an uptrend each rally peaks higher than the last and each pullback stops higher than the last. In a downtrend the reverse is true. Almost everything else in chart reading, from support and resistance to chart patterns and moving averages, is a way of describing that structure or the moment it changes.
A trendline is the simplest tool for making the structure visible: a straight line drawn under the lows of an uptrend or over the highs of a downtrend. It is also the tool most often drawn badly. This guide shows how to recognize a trend from its swing points, how to draw a trendline by a consistent rule, what a break of the line does and does not tell you, and how both looked on the S&P 500 ETF (SPY) from April 2025 to April 2026.
What a trend is
Prices never move in straight lines. They advance in waves: a push, a pause or pullback, another push. Each wave leaves a swing high (a peak with lower highs on both sides) and a swing low (a trough with higher lows on both sides). A trend is defined by comparing those swing points with the ones before them.
| Structure | Swing highs | Swing lows | Name |
|---|---|---|---|
| Higher highs, higher lows | Each above the last | Each above the last | Uptrend |
| Lower highs, lower lows | Each below the last | Each below the last | Downtrend |
| Highs and lows roughly level | Flat | Flat | Range (sideways market) |
| Lower highs, higher lows | Falling | Rising | Contracting range |
The definition is about swings, not about closes on two arbitrary dates. A stock can be up 20% on the year and in a downtrend since June. It also depends on scale: the daily chart can show a downtrend inside a weekly uptrend. Traders usually name the timeframe (Multi-timeframe analysis: weekly to daily to intraday, top down covers reading several at once) ("the daily trend is down") to avoid arguing past each other.
Analysts also describe trends by their duration. Charles Dow's framework, covered in Dow theory: the six tenets and confirmation by the transports, separates a primary trend lasting a year or more, secondary corrections of weeks to months, and minor day-to-day moves. A trendline drawn on a daily chart usually describes a trend of a few months.
How big must a swing be?
This is the first judgment call, and the one most beginners skip. If every one-day dip counts as a swing low, the chart is full of "lower lows" that mean nothing. Most analysts apply a filter: a swing must reverse by some minimum percentage, a minimum number of bars, or a multiple of the Average True Range (ATR): volatility, stops and position size. The ZigZag indicator: filtering swings, and why the last leg repaints indicator does exactly this, and it is a good way to train your eye. A 3% to 5% threshold suits a broad index ETF on daily bars; a volatile single stock needs more.
How to draw a trendline
A trendline is drawn through the extremes of the swings: under the swing lows in an uptrend, over the swing highs in a downtrend. The rules below are the ones most textbooks agree on.
- Start from two confirmed swing points. For an uptrend line, pick two swing lows, the second higher than the first, with a clear rally between them. One point is not a line.
- Nothing in between may cross it. Between the two anchors, no bar should trade below the line. If one does, you picked the wrong anchors. Move the line to the lower one.
- Use wicks or bodies consistently. Most technicians draw through the lows (wicks). Some use closes or candle bodies to ignore spikes. Either is defensible; switching between them on the same chart to make a line fit is not.
- Extend it to the right. A trendline is useful only as a projection. The value of the line on any future day is where the trend's support would be if it continued.
- A third touch makes it a real line. Any two points define a line. A third test that holds shows other traders are watching the same slope.
- Mind the angle. Very steep lines describe bursts, not trends, and are broken quickly. Lines that are very shallow are barely trends at all. There is no correct angle, but a steep line deserves less weight.
A downtrend line is the mirror image: two falling swing highs, nothing above the line in between, extended to the right. It acts as resistance until price closes above it.
Real example: SPY, April 2025 to April 2026
The chart below shows a full trend cycle on daily SPY bars: a recovery from the April 2025 low, a long advance, a slowdown, and a break of structure in early 2026.
The uptrend. From the April 7, 2025 low of $481.80, SPY made a string of higher swing highs: $595.54 on May 19, $639.85 on July 31, $689.70 on October 29 and $697.84 on January 28, 2026. The pullback lows rose as well, from $508.46 (April 21) to $575.60 (May 23) to $619.29 (August 1). From the April low to the January high the ETF gained about 45%.
The first trendline breaks, and nothing much happens. The line through the April 21 and August 1 lows was steep, rising $1.56 a session. SPY closed under it on August 20, 2025. Anyone who read that as the end of the uptrend was early by five months: SPY went on to its October high, about 8% above the August 20 close. What broke was the pace of the advance, not its direction. Analysts redraw from the most recent swing low when this happens, which gives a shallower line. A sequence of ever-flatter lines is sometimes called a fan, and the classic reading is that the third line in a fan is the one whose break matters.
The second line is flatter and lasts longer. The line through the August 1 and November 21 lows rose only $0.40 a session. Price came back to it in late November, again in mid-February and repeatedly in the first week of March 2026. On March 3 the intraday low pierced the line by about 1%, yet the day closed above it, which is why most analysts judge breaks on closes. The first close below came on March 6, at $672.38 against a line value of about $678.81.
The structure confirms the change. A broken line is a warning; the swing points are the evidence. The January 28 high of $697.84 was followed by a February 11 high of $697.14, a lower high by 70 cents. On March 9 the low ($662.39) undercut the February 5 low ($675.79), and on March 30 SPY fell to $629.28, below the November low of $650.85. Lower highs and lower lows: by the definition at the top of this page, the daily trend had turned down, about 6% below the March 6 close.
And then it turned again. SPY made its first close above $700 on April 16, 2026 and set a high of $781.62 on October 6. A trend is a description of the past swings, not a forecast, and the March 2026 downtrend lasted a few weeks. The Support and resistance: why price levels form and how to use them guide follows what happened at $700.
A detail worth noticing
In the chart, the November 21 low ($650.85) sat about $2 under the October 10 low ($652.84). By a strict reading that is a lower low inside the uptrend. With a 3% swing filter it hardly registers, and SPY made a higher high two months later. This is why the swing threshold matters: without one, the "trend" flips with every bit of noise.
Reading a trendline break
A close beyond a trendline has three common interpretations, and the chart above shows two of them in a single year.
- The trend is slowing. The most frequent outcome. Price moves sideways or rises along a flatter line. SPY in August 2025 is the example.
- The trend is reversing. Confirmed only when the swing structure changes: in an uptrend, a lower high and then a lower low. SPY in March 2026.
- The break was noise. Price closes under the line for a day or two and returns above it. Requiring a minimum distance (say 1% or a fraction of the Average True Range (ATR): volatility, stops and position size) or two consecutive closes filters some of these, at the cost of reacting later.
After a break, the old line often acts as resistance on the first rally back to it, the same role reversal that happens with horizontal levels. A retest that fails under the line is more convincing than the break itself.
Pitfalls and limitations
- Scale changes the line. On a long chart a straight line on a linear price scale curves on a logarithmic one, and the two can break on different days. Use log scale (Linear vs logarithmic price scale: which chart to use and why) for multi-year trends, where percentage moves matter more than dollar moves.
- Gaps and spikes distort anchors. A single bad print or a news gap can create a "swing low" that the market never really traded at. Check volume, and consider closes.
- Breaks are common and mostly small. A trendline only describes the past slope. In a market that rises at varying speeds, every line eventually breaks.
- A trendline is not a stop-loss rule by itself. If you trade around trendlines, size the position for the distance to your exit (Position sizing: how many shares to buy for a set risk) and decide where that exit is using more than one line (Stop-loss placement: volatility, structure and time stops).
- Not every market trends. Ranges are common. Indicators such as the Average Directional Index (ADX): measuring trend strength help judge whether a trend exists before you draw one.
Trendlines compared with other trend tools
| Tool | What it shows | Strength | Weakness |
|---|---|---|---|
| Swing highs and lows | The structure itself | Objective once a filter is set | Confirms late (needs a completed swing) |
| Trendline | Slope of the swing lows or highs | Early warning when it breaks | Subjective anchors; breaks often |
| Trend channel | Slope plus the typical swing width | Shows overextension too | Needs a fourth anchor to be useful |
| Moving average | Average price over a fixed window | Fully mechanical | Lags by about half its period |
| ZigZag | Swings above a set percentage | Trains the eye; filters noise | Its last leg repaints until confirmed |
How Finabase helps you draw and test trendlines
Every symbol's chart in Finabase has drawing tools: trend line, horizontal line, Fibonacci, rectangle and text. A trend line is anchored to two bar dates and prices, so it stays in place when you zoom or switch range. It is drawn only between its two anchors, so to project it, place the second anchor further along the same slope. If you are signed in, your drawings are saved per symbol and come back on your next visit. Try it on the one-year SPY chart: anchor the line on two swing lows, then switch to the two-year view to see it in a longer context.
To pick anchors with a rule rather than by eye, add the ZigZag study, which marks every swing larger than the deviation you set. The 3% ZigZag on SPY draws the same swing structure discussed above. For a mechanical trend filter across many stocks, the Scanner lists the symbols whose close has just crossed one of its standard moving averages, with the date the signal fired.
Frequently asked questions
How many points do you need to draw a valid trendline?
Two points define the line, and three make it meaningful. The third touch shows the slope is being respected by the market rather than chosen by you. Lines with four or more touches are watched by more traders and their breaks get more attention.
Should a trendline go through the wicks or the bodies?
Through the wicks (the highs and lows) is the most common convention. Drawing through candle bodies or closing prices filters out spikes, which some traders prefer. Pick one method and use it consistently; mixing them to make a line fit is the most common way to fool yourself.
Does a trendline break mean the trend is over?
No. More often it means the trend has slowed. A reversal is confirmed when the swing structure changes, for example a lower high followed by a lower low in an uptrend. SPY broke a steep trendline in August 2025 and still rose about 8% over the next two months.
What is a good angle for a trendline?
There is no correct angle. Steep lines describe short bursts and break soon; shallow lines describe slower, more durable trends. Many technicians treat a line around 45 degrees on a reasonably scaled chart as sustainable, but the angle depends entirely on the chart's scale.
Do trendlines work on all timeframes?
The geometry works on any timeframe, from 5-minute bars to monthly bars. Lines on longer timeframes carry more weight because more traders and more money stand behind them. Always check the higher timeframe's trend before acting on a line drawn on a short one.
Summary
A trend is a pattern of swings: higher highs and higher lows, or lower highs and lower lows. A trendline makes that pattern visible by joining the swing lows of an uptrend or the swing highs of a downtrend, and its value is in the projection and in the warning a break gives. The warning is often about pace rather than direction, as SPY showed when it broke a steep line in August 2025 and kept climbing, then broke a flatter one in March 2026 just before its swing structure turned down. Draw by a fixed rule, judge breaks on closes, and let the swing points, not the line, have the last word.
Sources and further reading
- Robert D. Edwards and John Magee, Technical Analysis of Stock Trends (1948; later editions revised by W.H.C. Bassetti) — trendline construction and validity
- John J. Murphy, Technical Analysis of the Financial Markets (New York Institute of Finance, 1999) — trend definitions, trendline rules and fan lines
- Andrew W. Lo, Harry Mamaysky and Jiang Wang, “Foundations of Technical Analysis,” Journal of Finance 55(4), 2000 — defining chart features algorithmically
- Finabase chart data — SPY daily bars, 2025-04-01 to 2026-04-30; swing points and trendline breaks computed by Finabase