Short answer: A trendline joins two swing lows in an uptrend, or two swing highs in a downtrend, and is extended to the right. While price stays on the trend’s side of the line, the trend is intact. A channel is the same line plus a parallel copy on the other side of price. Two points draw the line; the third touch is the first real test. On gold, treat the line as a zone a few dollars wide, and call it broken only when a candle closes beyond it.
A ruler under the dips
Take a chart of a rising market and lay a ruler under the dips so that it touches the bottom of two of them. Slide your eye along the ruler to the right. That line is a trendline. It shows one thing: how fast the dips are rising.
In a falling market you turn the idea over. The ruler sits on top of the peaks, and it shows how fast the rallies are being sold.
- An uptrend line joins rising swing lows. Price is above it. Traders watch it as support that moves up a little every candle.
- A downtrend line joins falling swing highs. Price is below it. Traders watch it as resistance that moves down a little every candle.
Why bother, when you can already read the trend from the swings? Because a line lets you look ahead. In the market structure lesson you labelled the highs and lows that had already formed. A trendline takes two of those swings and tells you roughly where the next one should form if the trend keeps its pace. That gives you three things:
- A place to wait. If gold is in an uptrend and far above the line, there is nothing to do. When it comes back to the line, you pay attention.
- A speed. A steep line is a fast trend. A line that has to be redrawn flatter is a trend that is tiring.
- A tripwire. When a candle closes on the wrong side of a line that has held for weeks, the trend’s pace has changed.
A trendline is a drawing of structure, nothing more. The swing points do the real work, and the line is your summary of them. Keep that in mind and you will never treat a line as a wall.
Which two points to join, and which to leave alone
Most bad trendlines come from joining the wrong points. Use the same routine every time.
- Choose the chart you plan on. Draw on the timeframe where you decide direction, usually the 4-hour or daily chart. A line drawn on a 5-minute chart means nothing an hour later.
- Check there is a trend. An uptrend needs at least two rising swing lows. A downtrend needs two falling swing highs. If the swings are going sideways, there is no trendline to draw, only support and resistance.
- Join two clear swing points. A swing low is a low with higher lows on both sides of it. Use turning points that anyone would see at a glance. If you have to zoom in to find the point, leave it.
- Decide: wicks or bodies. You can join the tips of the wicks or the edges of the candle bodies. Both are used. Pick one and keep it for every line you draw, or your results can never be compared.
- Extend the line to the right. Do nothing until price returns to it. The next touch, the third, is the first one that tells you anything.
- Give the line some width. Gold does not turn on the cent. Treat the line as a band about a quarter of the average candle range wide (0.25 × ATR on that timeframe) on each side.
- Redraw only when the swings change. If you nudge the line after every candle so that it keeps fitting, it will always look right and never tell you anything.
Two warnings before you draw your first one.
A line that cuts through candles is not a line. Between your two anchor points, price should stay on one side. A few wicks poking through are normal on gold. Candle bodies sitting on the wrong side mean you forced it.
Draw it before it matters. Mark your lines when price is far away from them. A line drawn while price is touching it is drawn by hope: you will pick whichever two points make the touch look perfect.
Touches, angle and spacing
| What to look at | What it tells you |
|---|---|
| Number of touches | Two to draw, three for the first test. Many touches mean many traders are watching, and many stops sit just behind the line |
| Space between touches | Touches should be spread out. Three touches inside five candles are one event, not three |
| Angle | Very steep lines break quickly, because no trend holds that pace. Gentle slopes last longer. A flat line is simply a horizontal level |
| Clean space | The fewer candles cut by the line between touches, the better the line |
A quick test: zoom out until the whole trend fits on your screen. If the line is not obvious at that zoom, other traders are probably not watching it, and a line nobody watches does nothing.
Linear or log scale?
On a linear chart every dollar takes the same height. On a logarithmic chart every percent does. For a $30 move at $4,100 you cannot see the difference, so intraday and swing traders can ignore the setting. On a ten-year gold chart, where the price has more than doubled, the same two anchor points give a different line on each scale, and far to the right the two lines can be hundreds of dollars apart. Neither is the correct one. Know which scale your chart is on before you trust a multi-year line.
Add a second line and you have a channel
Copy your trendline and drag the copy to the other side of price, so that it touches the most obvious swing between your two anchor points. Now price is moving between two parallel lines. That is a channel.
- The two lines are the rails.
- The line halfway between them is the midline.
- A channel that slopes up is a rising channel; one that slopes down is a falling channel.
A trendline only tells you where a pullback may end. A channel also tells you where the next push may run out, and that gives you a target. In a falling channel the plan writes itself: rallies are sold near the upper rail, and profit is taken near the midline and the lower rail.
Two things happen at rails that beginners misread.
The overshoot. In a strong trend price can push through the rail in the direction of the trend. A falling channel whose lower rail gives way is a trend getting faster. Do not buy it just because price is “below the channel”.
The shortfall. When price turns back before it reaches the far rail, the trend is losing energy. In a falling channel, a drop that stops at the midline and turns up is often the first hint that the upper rail will be tested hard.
A third touch on real candles: the four-hour chart, July 2026
Enough diagrams. This first example is from the site’s own COMEX gold futures data, built into 4-hour candles on New York time. Spot XAUUSD trades a few dollars below futures, so your platform’s prices will differ slightly; the shape is the same.
Follow it step by step.
- First point. Gold made a swing low at 3,955.4 on 29 June 2026.
- Second point. On 1 July it made a higher swing low at 3,973.0. A line through the two lows rose about $2.20 every 4-hour candle. From this moment the line exists, and there is nothing to do but extend it and wait.
- Third touch. A week later, on 8 July, gold pulled back. The 4-hour candle that opened at 10:00 New York time dipped to 4,032.5. The line was at 4,034.6 at that candle, so price traded $2.10 through it, and the candle closed far back above it at 4,076.4.
Here is the plan a trader with fixed rules would have had. Notice that every number was known before the touch.
| Price | Why | |
|---|---|---|
| Buy | 4,045.4 | The top of the line’s zone (the line plus a quarter of the 4-hour ATR) |
| Stop | 4,013.1 | Half an ATR below the line. If price closes there, the line has failed |
| Risk | $32.30 an ounce | 4,045.4 − 4,013.1 |
| Target | 4,110.0 | Twice the risk (2R): 4,045.4 + 64.60 |
On 0.03 lot (3 ounces) the risk was about $97. Gold reached the target on 9 July at 02:00 New York time and went on to 4,127.4.
Before you get excited, look at two details. First, the stop was $32.30 wide on a 4-hour chart. That is what gold’s ordinary noise costs in 2026, and it is why the lot size had to be tiny. Second, the touch was not clean: price went through the line before it came back. A trader with a stop one dollar under the line was right about the trend and lost anyway.
This one worked. A later section counts all 222 touches of this kind, and most of them did not.
A falling channel, drawn day by day: September to November 2026
The second example is on daily candles and uses the same weeks you read in the market structure lesson, so you can see a line laid over swings you already know. This time the line does several different things, and not all of them are helpful.
Drawing it
Gold made a swing high at 4,439.8 on 18 September 2026 and a lower swing high at 4,242.3 on 12 October. Those are two falling highs, 16 trading days apart, so a downtrend line can be drawn:
$4,439.8 − $4,242.3 = $197.50, and $197.50 ÷ 16 days = about $12.34 a day.
That number is the speed of the downtrend. Every day, the line sits $12.34 lower than the day before.
For the channel, copy the line and place it on the lowest low between the two highs: 4,091.2, made on 7 October. The two rails are about $188 apart.
Wicks went through it. Closes did not
Two days after the line could first be drawn, gold tested it. On 16 October the high was 4,220.4, while the line stood at 4,192.9. That is $27.50 above the line. Over the next four sessions the highs stayed above the line every day.
Was the line broken? Look at where the candles closed: 4,181.1, 4,160.1, 4,142.6, 4,150.0 and 4,060.4. Every close was below the line. Five days of wicks, no close.
This is the most useful habit in the whole lesson. A wick through a line tells you that orders were triggered there. A close through it tells you that the market accepted the new price. Gold’s average daily range at the time was about $75, so a $27.50 poke was well inside ordinary noise. A trader whose stop sat $5 above the line was taken out five days in a row. A trader who waited for the close did nothing, and was right to.
The test on 28 October
By 28 October the line had fallen to 4,094.2. That evening gold spiked up, and the hourly candle that opened at 20:00 UTC reached 4,097.2, three dollars through the line. It closed at 4,081.2, back underneath.
There was a second reason to watch that price. A support level at 4,095.0 had broken six days earlier (the pattern cheat sheet shows it as the neckline of a double top). A falling trendline and a broken horizontal level met at the same few dollars. When two tools that have nothing to do with each other point at one price, that price deserves attention.
A plan for a $5,000 account risking 1% ($50):
| Price | Why | |
|---|---|---|
| Sell | 4,081.2 | The close of the hourly candle that touched the line and came back under it |
| Stop | 4,114.2 | $17 above that candle’s high: a quarter of the daily ATR ($68), so an ordinary wick cannot reach it |
| Risk | $33.00 an ounce | 4,114.2 − 4,081.2 |
| Size | 0.01 lot (1 ounce) | $50 ÷ $33 = 1.5 ounces, rounded down. Risk: $33 |
| First target | The midline | Halfway between the rails |
| Second target | The lower rail | The far side of the channel |
What happened: the highest price after the entry was 4,081.7. On 30 October gold fell through the midline (then at 3,975.4) at 07:00 UTC, $105.80 below the entry, and at 19:00 UTC it reached 3,879.3. The lower rail stood at 3,881.4. Price ran from one rail to the other and stopped $2.10 beyond it.
That is as good as a channel trade gets, so read it as the best case and not the normal one. The entry needed a line, a level and a candle that closed back under both. A line alone would not have been enough, and the count further down shows why.
The break on 4 November, and what it did not mean
On 4 November gold rallied $132 from open to close and finished at 4,073.0. The line was at 4,032.5. This was the first close above it since it was drawn, by $40.50, with a large candle body. By every rule that was a real break.
A break of what, though? Many beginners read a broken downtrend line as “the downtrend is over, buy”. Watch what followed:
- 5 November: gold closed at 4,113.5, above the last lower high (4,097.2). In structure terms, a change of character.
- 5 to 10 November: three highs at 4,155.8, 4,157.7 and 4,156.2. That was $84.70 above the breakout close at best, and exactly at a horizontal level you already had on your chart from the support and resistance lesson.
- 12 November: gold closed at 3,885.3, back under where the old line would have been.
- 20 November: the low was 3,502.9, almost $200 below where the lower rail would have been.
So the break was real and the conclusion was wrong. A trendline break tells you the old pace has ended. It does not tell you a new trend has begun. After a downtrend line breaks, the market can turn up, go sideways, or pause and then fall faster than before. In November 2026 it did the third. To call a new uptrend you need what structure asks for: a higher low, then a higher high. Gold never made the higher low.
Break or fakeout? Judge the close, then the retest
You have now seen both on real candles: wicks that meant nothing in October, and a close that meant something in November. Here is how the two usually differ.
| Clue | Points to a real break | Points to a fakeout |
|---|---|---|
| The close | The candle body closes clearly beyond the line | A wick goes through, the body closes back on the old side |
| The swings | The last swing point breaks as well | The last swing low or high is still intact |
| The retest | Price comes back to the line from the other side and is turned away | Price walks straight back through the line |
| The timing | It happens in a busy session and the next candles follow through | It happens on a news spike or in quiet hours and is reversed quickly |
| The candles after | Large bodies in the direction of the break | Small candles and an immediate rejection |
How often is a close through a line a fake? We counted it on 4-hour gold candles: 67 of 217 first closes through a trendline (31%) were back on the original side within three candles. So one close is real information, and about one time in three it is still wrong.
That is the argument for the retest. After a real break, price often returns to the line from the other side. An uptrend line that held as support gets tested from below as resistance. If that test fails, you have a break, a confirmation and a nearby place for your stop.
The price of waiting is that strong moves sometimes never come back, and you miss them. Lesson 13, the breakout and retest strategy, is about exactly this choice.
Three trades a line can give you
These are plans to test on a demo account, written the way you should write your own: what must be true, what triggers the entry, where you are wrong.
Trading the third touch with the trend
| Part | Rule |
|---|---|
| What must be true | A clear trend on the 4-hour chart, and a line through two obvious swing points |
| Trigger | Price enters the line’s zone and a 1-hour candle closes back on the trend’s side of it |
| Entry | At that close, or when the next candle passes the rejection candle’s high (low, for a sell) |
| Stop | Beyond the zone and the rejection candle, plus a buffer of about a quarter of the ATR |
| Target | The last swing high (low, for a sell) first; then the far rail if there is a channel |
| Exit early if | A candle closes beyond the line. The idea is finished |
Trading rail to rail inside a channel
| Part | Rule |
|---|---|
| What must be true | A channel with at least two touches on each rail, sloping the same way as the higher timeframe |
| Trigger | Price reaches the with-trend rail (upper rail in a falling channel) and a candle closes back inside |
| Entry | At the rejection close |
| Stop | Beyond the rail’s zone and the rejection candle |
| Target | Half at the midline, the rest at the far rail |
| Exit early if | Price stalls before the midline and turns. A shortfall is a warning |
Trades from the other rail, against the channel’s direction, are weaker. If you take them at all, use half your normal size and aim only for the midline.
Trading the break after the retest
| Part | Rule |
|---|---|
| What must be true | A long trend, a candle body closed beyond the line, and the last swing point broken too |
| Trigger | Price returns to the line from the other side and a lower-timeframe candle rejects it |
| Entry | At the rejection close |
| Stop | Beyond the retest’s high or low, plus a buffer |
| Target | The next support or resistance level |
| Exit early if | Price closes back on the old side of the line. The break has failed |
A line looks exact, and that is the trap. On gold, plan for price to trade a few dollars through any line before it reacts. Choose the stop first, wide enough to survive that, and then make the position small enough to fit your risk. Work it out with the position size calculator. Lines are also cut by US data at 8:30 am New York time, so check the economic calendar before you trust a touch.
We took every third touch for two and a half years
One good example proves nothing, so we counted. On COMEX gold futures 4-hour candles from June 2024 to November 2026, a script drew trendlines with one fixed rule and took every third touch. No judgement, no picking.
- The line: two swing lows in a row, the second one higher, 6 to 60 candles apart, with no close below the line between them. (Mirrored for falling lines across swing highs.)
- The third touch: the first later candle whose low came within a quarter of the ATR of the line, before any close below it.
- The trade: buy at the line plus 0.25 × ATR, stop at the line minus 0.5 × ATR, target twice the risk. If one candle touched both, it counted as a loss. No trading costs.
What it found:
- Most touches failed. Of 222 decided trades, 52 reached the 2R target before the stop: 23%. A plan that wins 2R and loses 1R needs to win 33% of the time just to break even.
- Direction did not rescue it. Rising lines won 24 of 115 (21%). Falling lines won 28 of 107 (26%).
- Closes through the line reversed about one time in three. 67 of 217 (31%), as you read above.
Now read that result correctly. It does not say trendlines are useless. It says a trendline alone is not a reason to trade. The script knew nothing about the higher timeframe, horizontal levels, the candle at the touch or the time of day. The July example worked inside a strong uptrend. The October example had a broken level at the same price. A line shows you where to look. Something else has to tell you to act.
Correction, 6 November 2026. The hourly data behind this count is a continuous futures series, which switches to the next delivery month about every two months. Around those switches the series jumped by the price gap between the two contracts, and in 2024 and 2025 it mixed their prices for hours or days. We re-ran the count without every switch session and the trading day after each one. The numbers above are the corrected ones. Before the fix they read 265 touches, 67 of them (25%) reaching 2R, and 84 of 264 fakeouts. The earlier real example, an April 2026 line whose first anchor sat on the first candle after a switch, was replaced by the July one. The conclusion did not change.
Where trendlines go wrong in real trading
- Joining points that are not swings. A line through two random wicks will be “respected” by nobody. Use turning points that stand out.
- Forcing the fit. If the line has to pass through candle bodies to connect your points, there is no line there. Wait for cleaner swings.
- Drawing it during the touch. You will choose the anchors that make the touch look perfect. Draw early, when price is far away.
- Putting the stop right behind the line. That is where everyone’s stop is, and gold visits it often. In October 2026 wicks ran $27.50 through a line that never broke on a close.
- Calling every wick a break. Wait for the close. Then look at the swings.
- Treating a break as a reversal. The 4 November break was followed by an $84.70 rally and then a $650 fall. A break ends the old slope. Structure decides what comes next.
- Using last year’s buffer. Gold’s daily range changes. The stop in the July example was $32.30 on a 4-hour line. Take the buffer from today’s ATR, which the gold volatility tool shows.
- Trusting a line too far to the right. The longer you extend it, the less it means. Two anchor points a week apart cannot tell you where price should be in three months.
- Taking the third touch because it is the third touch. In our count that won 23% of the time.
Fan lines, internal lines and the stops behind the line
This part is for when the basics above feel easy.
Trends bend, so lines come in sets. A gold trend rarely holds one speed. When an uptrend speeds up, draw a second, steeper line under the newer lows and keep the first one. You now have a fan. A break of the steep line usually means the trend is slowing to its earlier pace, and the older, flatter line is the next place to watch. A break of the flat line is the one that matters. The same works in reverse: in November 2026 gold fell out of the bottom of its channel, which told you the $12.34-a-day line was now too slow and a steeper one was needed.
Internal lines. Some traders draw the line through the cluster of candle bodies and let a few wicks stick out, instead of anchoring on the extremes. On a spiky market like gold this often fits the middle of the trend better. It is a legitimate method as long as you use it every time.
Every obvious line has orders behind it. If you can see the line, so can everyone else, and their stops sit just beyond it. Price is drawn to those stops. That is why the first push through a well-watched line is so often a wick that comes straight back: it is a liquidity sweep and not a change of trend. Experienced traders do not enter at the line. They wait for the poke through it, then for the candle that closes back inside, and enter with the trend after the stops have been taken.
A line plus a second, unrelated tool. A touch is worth more when something else agrees:
- a horizontal support or resistance level at the same price, as on 28 October;
- a 50% or 61.8% Fibonacci retracement of the last leg;
- a moving average running along the line, which is common in steady trends;
- a reversal candle at the touch.
Triangles, wedges and flags are all made of two trendlines, which is where the next lesson picks up.
Which chart for which job.
| Chart | What lines are good for there |
|---|---|
| Weekly and daily | The major trend. Compare linear and log scale |
| 4-hour | Swing trendlines and channels. The best chart for planning |
| 1-hour | Intraday trends, channel trades, and the rejection candle at a higher-timeframe line |
| 15-minute and lower | Timing an entry at a line drawn higher up. Lines drawn here break all day |
Most tests that hold come during the London morning and the New York morning, when the market is busiest. A poke through a line in the quiet Asian hours deserves doubt until London has confirmed it. The gold market hours tool shows the sessions in your own time zone.
Six checks before you trade a line
- Are both anchor points real swings on the chart I plan on, and does the line avoid cutting through candle bodies?
- Did I draw it before price came back, with the same wick-or-body rule I always use?
- Is this the third touch or later, and has a candle closed back on the trend’s side?
- Besides the line, what else supports this price: the higher-timeframe trend, a horizontal level, a retracement?
- Is my stop beyond the line’s zone and the rejection candle, with a buffer taken from today’s ATR?
- Is the position sized from that stop, and is there no major US data in the next hour?
If you cannot answer number 4, you are trading the line alone, and you know what the count says about that.
Next: the shapes that lines make
Put two trendlines on one chart and they start to form shapes: two lines squeezing together make a triangle, two short parallel lines after a sharp move make a flag. Those shapes have names, rules and targets. Lesson 10, chart patterns on XAUUSD, teaches how they form and how to trade them, again on real gold candles.
Before you go on, open a daily gold chart and a 4-hour gold chart. On each, find the last two swing lows or swing highs, draw one line with the rules above, and write down the date, the two prices and the slope in dollars per candle. Then leave it alone and see what price does when it gets there.
Frequently asked questions
How many touches make a valid trendline?
Two swing points are enough to draw a line, and the third touch is the first time the market tests it. Before that third touch you only have a line you drew; after it you know whether other traders care about it. More touches are not always better: every extra touch also puts more stop-loss orders just behind the line.
Should I draw trendlines on wicks or candle bodies?
Either works if you never mix them. Wicks show the true extremes. Bodies ignore spikes, which helps on gold because news and stop runs leave long wicks. Pick one method, write it down, and treat the line as a zone a few dollars wide instead of an exact price.
Should I use log scale or linear scale for gold trendlines?
On intraday and swing charts that cover a few percent of price, you will not see a difference, so stay on linear. On a multi-year gold chart where price has more than doubled, a log chart shows equal percentage moves as equal distances, and long trendlines can point to very different prices. Check both before you trust a multi-year line.
How do I know if a trendline break is real?
You cannot know at the moment it happens, but three things raise the odds: a candle body that closes well beyond the line, a break of the last swing point as well, and a retest of the line from the other side that fails. A wick through the line that closes back on the old side is usually a stop run. In our count on 4-hour gold, 67 of 217 first closes through a trendline (31%) were back on the original side within three candles.
What is the best way to trade a price channel on XAUUSD?
Trade from the rail that agrees with the channel’s direction: sell the upper rail of a falling channel, buy the lower rail of a rising one. Wait for a candle that closes back inside, put the stop beyond the rail zone and the rejection candle, take part of the profit at the midline and the rest at the far rail. A candle that closes beyond the rail ends the idea.
Why do trendlines break so often on gold?
A trendline is a straight line and a trend is not. Gold trends speed up, slow down and get hit by US data, so one slope rarely fits for long. Obvious lines also collect stop-loss orders just behind them, and price often runs those stops. Use a line as one piece of evidence about where to look, never as a wall.
Does the third touch of a trendline work on gold?
Not as a signal on its own in our test. On 4-hour COMEX gold futures from June 2024 to November 2026, we drew lines by one fixed rule and took every third touch: 52 of 222 decided trades (23%) reached a target twice the size of the stop before the stop was hit. Break-even at that reward is 33%. A line gives you a place to look; the reason to trade has to come from structure, a horizontal level or the higher timeframe.
What is the difference between a trendline and a channel?
A trendline is one sloping line across the swing lows of an uptrend or the swing highs of a downtrend. A channel adds a second line, parallel to the first, on the other side of price. The two lines are called rails. A trendline tells you where pullbacks may end; a channel also tells you where each push may run out.
Sources and further reading
- CME Group — Gold futures overview — Contract specifications and trading hours for COMEX gold
- CFTC — Commitments of Traders — Weekly futures positioning, including gold
- Investor.gov — Stop order — How stop orders work, and their limits in fast markets
External sites are independent of XAUUSD Global. Check dates and data yourself.
