What is market structure? Higher highs, higher lows and the trend
Market structure is the sequence of swing highs and swing lows on a chart. A swing high is a peak with lower highs on both sides; a swing low is a trough with higher lows on both sides. A common rule of thumb is at least two candles on each side, and the clearer the turn, the more it counts. The same swing points anchor trend lines, channels and Fibonacci retracements.
The idea goes back to Charles Dow, co-founder of Dow Jones & Company and the first editor of The Wall Street Journal. His editorials, written before his death in 1902, became the basis of what was later called Dow Theory: price moves in waves, and where each peak and trough sits against the last one defines the trend.
A hypothetical daily chart: swing lows at $40, $43 and $46, swing highs at $45, $48 and $51. Every high clears the last one and every low holds above the last one, so this is an uptrend. Then a rally stalls at $50, below the $51 high, and price falls through $46, the last higher low. That lower high and lower low end the uptrend's structure, whatever any line says.
- Uptrend: higher highs and higher lows. Trend lines go under the lows.
- Downtrend: lower highs and lower lows. Trend lines go over the highs.
- Range: highs and lows at roughly the same prices. Horizontal support and resistance work better here than slanted lines.
How to draw a trend line, step by step
A trend line is a straight line that connects swing points in the direction of the trend. In an uptrend it acts as rising support; in a downtrend, as falling resistance. Any two points make a line, so the third touch is the real test.
Wicks or bodies? Wicks show the true extremes; bodies ignore one-off spikes and follow where price opened and closed. Both are widely used, and neither is more correct. What matters is choosing one and keeping it, because a line through wicks sits lower than one through bodies, and mixing them lets you move the line wherever you want it. Many traders start with wicks and treat the line as a thin zone, not an exact price.
A hypothetical 1-hour chart: two swing lows at $50.00 and $51.50, 10 bars apart. The line rises $0.15 per bar, so 5 bars after the second low it sits at $52.25. A candle dips to $52.30 and closes at $52.70: the third touch held, and the line is confirmed. Unlike a horizontal level, a trend line's price changes on every bar, so read it where it is now, not where you first drew it. The steps:
- Confirm the trend from structure first. No higher highs and higher lows, no uptrend line.
- In an uptrend, pick two clear swing lows; in a downtrend, two clear swing highs. Use real turning points, not any two candles.
- Connect them and extend the line to the right, into the future.
- Check that the line does not cut through candle bodies between the two points. If it does, it is the wrong line.
- Wait for a third touch. If price reaches the line and turns away, the line is confirmed, because other traders are watching it too.
How to draw a trend channel
A channel adds a second line parallel to the trend line, across the swing highs in an uptrend or the swing lows in a downtrend. The trend line is the floor, the parallel line is the ceiling, and price tends to swing between them while the trend lasts.
In the example, a swing high of $53.00 formed 5 bars after the first low, when the trend line sat at $50.75. The channel is $2.25 wide, so when the line reaches $52.25, the upper line is at $54.50.
Use the upper line as a target area for longs, not as a signal to short against the trend. Two other readings are common: a rally that stalls well short of the upper line hints that buyers are tiring, and a strong close above it can mean the trend is speeding up. Either way, the next swing high or low decides the structure, not the channel.
How steep should a trend line be?
Steep lines break first. If a stock jumps $1.20 per bar for six bars after earnings, a line under those lows rises $1.20 per bar. Price only has to drift sideways for a bar or two to close below it, even if the trend is fine. The gentler $0.15-per-bar line from the example leaves room for normal pullbacks.
When a steep line breaks, redraw it from a wider pair of swing lows. The new line is flatter and often still holds. Treat the break of a steep line as the trend slowing, not ending, until structure says otherwise.
Skip rules about a perfect angle such as 45 degrees. The angle you see depends on how far you zoom or squeeze the chart, so the same line can look flat or nearly vertical. Judge the slope in price per bar against the size of normal pullbacks instead.
How to trade a bounce off a trend line
The bounce is a pullback trade: the trend is up, price pulls back to the rising line, and buyers defend it. The line gives you the location; the trigger is a closed candle that turns away from it. The pullback trading strategy guide covers pullbacks in more depth.
Back to the hypothetical 1-hour chart. Price dips to $52.30 at the line ($52.25) and closes at $52.70. You buy near $52.70 on the next open. The stop goes below the line and the wick with a small buffer, at $52.05: $0.65 of risk per share. The target is the last swing high at $54.00, $1.30 away, or 2 to 1. The upper channel line near $54.50 is a stretch target.
Now the failed version. Two bars later sellers return, price falls through the line and trades at $52.05. The stop fills, and you lose $0.65 per share plus any slippage. If you sized the trade with a position size calculator so that $0.65 a share was 1% of your account, that is the whole damage. Trend line bounces fail often, so this loss has to be affordable every time.
- Trend: higher highs and higher lows, with a line through at least two swing lows.
- Location: price pulls back into the line, ideally on smaller candles than the push up.
- Trigger: a candle closes back up, away from the line, such as a hammer or a bullish engulfing candle from our candlestick patterns guide. A wick through the line is fine if the close is above it.
- Stop: below the line and the pullback low, with a small buffer.
- Target: the last swing high or the channel top. Skip the trade if it is less than about 1.5 times your risk away; the risk-reward ratio guide explains why.
What happens when a trend line breaks? Break, retest and the role flip
A break is a candle that closes on the other side of the line. A wick that pokes through and closes back is not a break. Even a real break only says price stopped rising at that pace. The trend has reversed only when structure agrees, with a lower high and a close below the last higher low.
After a break, price often comes back to the line from the other side. This is the retest, and it shows the role flip: old support acting as resistance, or old resistance acting as support. Many traders wait for the retest rather than act on the break candle itself, the same idea as the break-and-retest in our support and resistance strategy guide.
A hypothetical: the rising line from the example is at $53.00 when a 1-hour candle closes at $52.60. That is the break. Price then falls to $52.10, below the last higher low at $52.30, so structure has turned too. It bounces to $53.10, just under the line, now near $53.30, and a candle closes back down at $52.80. A short at $52.80 with a stop above the retest high, at $53.35, risks $0.55. The target at the second swing low, $51.50, is $1.30 away, about 2.4 to 1.
And the failed version: price climbs back above the line, the stop at $53.35 fills for a $0.55 loss per share, and price goes on to a new high above $54.00. That was a false break, and the uptrend is intact. Breaks fail often too, which is why the stop goes in before the entry.
Where a trend line meets a horizontal level
A trend line is a level that moves. Horizontal levels stay put: swing highs and lows, the prior day's high and low, round numbers. They are also less subjective, because everyone sees the same high. The strongest trend line touches happen where the two meet.
A hypothetical: the rising line reaches $52.25 just as price returns to a $52.00 to $52.30 zone, the top of a range the stock broke out of last week. Two separate reasons to buy at the same price make the touch worth more than either one alone. A touch with no level nearby is a weaker spot.
Lines wear out, too. After a trend line breaks, price often stops trending and swings between horizontal support and resistance for a while. Then the horizontal zones are the levels to trade, as in the drawing below, and the old trend line can go.
UpTickFlow, our invite-only TradingView indicator, does not draw trend lines. It waits for a closed candle at a level, draws the entry, stop and target, scores the setup from 0 to 100 and stays quiet in chop. Use UpTickFlow as a second check that a level is worth trading, not as a line drawer or a pattern scanner.
Why you should draw trend lines on the higher timeframe first
A line on the daily or 1-hour chart carries more weight than one on the 5-minute chart, because each candle holds more trading and more traders can see it. Lines on 1- and 5-minute charts break all the time and mostly measure noise.
So work from the top down. Draw the main structure and lines on the daily chart, the line you trade on the 1-hour, and look for the trigger on the 5- or 15-minute. A hypothetical: the 1-hour uptrend line sits near $52.25. On the 5-minute chart, the pullback into it forms a small downtrend line across its lower highs. A 5-minute close above that small line, right at the 1-hour line, is a sign the pullback is ending.
On TradingView, a drawing shows on every timeframe of the symbol by default, so a daily line stays visible on the 5-minute chart. The multi-timeframe analysis guide covers the top-down routine in full.
How to draw trend lines on TradingView
The drawing tools below are free on every TradingView plan, including Basic; how many alerts you can keep depends on your plan. The drawing tools sit in the left toolbar, and the line tools share one group there.
One setting first, for long charts only. On a linear scale, a straight line means the same dollar gain per bar; on a logarithmic scale, the same percentage gain. Say a stock went from $20 to $40 in a year. Extended one more year, a linear line points to $60 (another $20) and a log line to $80 (another doubling). On multi-year charts that gap matters, so right-click the price scale and choose Logarithmic, or press Alt+L. On intraday charts the two barely differ, so stay linear, as the best TradingView settings guide explains. The same two anchor points draw a different line on each scale, so note which scale a line was drawn on.
- Turn on Magnet mode with the magnet icon in the left toolbar, so your clicks snap to a candle's open, high, low or close. Weak Magnet snaps only near a candle; Strong Magnet always snaps. Hold Ctrl (Cmd on Mac) to switch it off for a moment.
- Pick Trend Line from the line tools in the left toolbar, or press Alt+T (Option+T on Mac).
- Click the first swing low, then the second. The line stops at your second click. To carry it into the future, use the Ray tool from the same menu, which runs on past the second point, or Extended Line, which runs both ways.
- For a channel, pick Parallel Channel. Click the two swing lows to set the trend line, then a third point on the swing high between them to set the width.
- Double-click a drawing to open its settings: Style for color and thickness, Coordinates for exact bars and prices, Visibility for the timeframes that show it.
- To be told when price crosses the line, right-click it and add an alert, or use the clock icon on the floating drawing toolbar. The TradingView alerts guide covers the options.
Common trend line mistakes (and why lines are subjective)
Trend lines are subjective. Two traders can connect different lows, through wicks or through bodies, and get two different lines on the same chart. That is not a reason to skip them. It is a reason to treat each line as a zone, to back it with structure and horizontal levels, and never to trade one without a stop. Triangles, wedges and flags are built from the same lines, so these mistakes carry over to chart patterns too.
- Forcing the line: cutting through candle bodies, or ignoring the swing low that does not fit.
- Moving the line after every break, so it can never be wrong.
- Drawing on 1-minute noise and ignoring the daily chart.
- Calling a reversal on a wick through the line, or on the break of a line that was too steep.
- Mixing wicks and bodies from one line to the next.
- Buying a touch with no room to the target, or with no stop at all. The stop loss and take profit guide covers both.
- Covering the chart in lines until every price is near one of them.