GIXODIA Try it free for 72 hours
Technical analysis

Trendlines Done Right: How to Draw Valid Structural Lines and Trade the Retest

Written and reviewed by the Gixodia team · Published November 18, 2026 · 9 min read

In shortA trendline is a dynamic boundary connecting major market swing points to reveal the underlying direction and speed of price action. To use it correctly, connect two prominent swing pivots and treat the line as provisional until a third distinct touch confirms that buyers or sellers respect it. A valid breakout requires a full candle body close beyond the line followed by a controlled retest of the broken level before taking an entry.
The lesson in a one minute video
Key takeaways
  • Two swing points establish a provisional trendline slope, while a third distinct test confirms its validity.
  • A valid line must never slice through intermediate candle bodies between its primary anchor points.
  • Intra-candle wicks poking through a trendline represent liquidity sweeps, not structural breakouts.
  • A confirmed breakout demands a completed candle body close outside the line followed by a retest.
  • Disciplined trading means defining your stop loss beyond the retest swing high or swing low to protect capital.

What is a trendline and how does it work?

A trendline is a straight bounding line plotted on a price chart that connects two or more significant price pivot points to visualize the trajectory, speed, and dynamic support or resistance boundaries of market movement.

Unlike horizontal support and resistance, which remain static at fixed price quotes, trendlines reflect dynamic equilibrium levels that move over time. In an ascending trend, the line connects progressively higher swing lows, showing where eager buyers step in at successively higher prices. In a descending trend, the line connects progressively lower swing highs, charting where sellers repeatedly overwhelm buyers.

According to MetaTrader 5 analytical specifications, an authentic trendline connects two major extremes without cutting through price action between those anchor points [3]. When drawn accurately on liquid instruments like EUR/USD, the line shows genuine structural balance. If you force a line across arbitrary bars, you are simply mapping your own hopes onto the chart instead of measuring what the market is doing.

How do you spot a valid trendline on a chart?

To spot a valid trendline, locate two prominent, undeniable swing points that establish the market slope, then wait for price to produce a third distinct touch and bounce without closing through the boundary.

Many beginners make the mistake of drawing lines across every pair of candles they see. Two points create only a working hypothesis, known as a provisional trendline [4]. Anyone can connect two random dots on a chart. The line becomes structurally relevant only when a third distinct test touches the line and pulls away cleanly.

Consider gold (XAU/USD) moving upward on a four-hour chart. Price forms an initial swing low at one price floor, rallies, pulls back to form a higher low, and rallies again. You connect these two pivot points using your charting tool. When gold pulls back a few days later, taps that projected slope, and prints a bullish rejection candle, the third touch confirms the trendline is structurally valid [1, 2]. You now have a confirmed framework for managing risk.

What is the difference between a wick trap and a real break?

A wick trap occurs when price momentarily pokes through a trendline during an open candle before closing back inside the structure, whereas a real break finishes with a complete candle body closed decisively beyond the line.

Retail traders often see price tick one pip past a trendline and immediately fire off market orders, assuming a breakout is underway. What actually happens is that large institutional participants are sweeping resting stop orders right outside the visible boundary to fill their own positions. The candle snaps back inside the pattern before the bar closes, trapping those impulsive traders in a losing position.

A real structural break requires patience. You must wait for the current candle to close completely on your chosen timeframe. If the candle body closes outside the line, it shows that sellers or buyers maintained control through the final second of that session. For traders who struggle with the urge to jump into sudden market spikes, reviewing why most retail traders lose helps highlight why chasing unconfirmed moves damages long-term results.

Wick Trap vs True Structural Breakout
FeatureWick Trap (False Break)True Structural Breakout
Candle CloseCandle pierces the line intra-bar but closes back inside the trend structure.Full candle body completes and closes clearly beyond the trendline boundary.
Market IntentGrabs resting liquidity and traps breakout traders before reversing sharply.Shifts directional control from one market side to the other with strong conviction.
Subsequent Price ActionPrice quickly returns to the trend path, continuing the established move.Price pulls back to retest the broken line as dynamic support or resistance before moving away.
Execution PlanDo nothing, or trade the continuation bounce away from the rejection wick.Wait for the retest touch, confirm rejection, and place an entry with a protected stop.

How do you trade the trendline retest setup?

To trade the trendline retest setup, wait for a confirmed candle close beyond the line, allow price to pull back to the underside of the broken slope, and enter only when price rejects that retested boundary.

Never chase the initial drop or rally that breaks the line. Impulsive moves often stall quickly, leaving you with poor trade location and an unmanageably wide stop loss. Instead, practice patience while the market performs what technicians call a kickback or retest [2].

During an upward trend breakdown, former support reverses into dynamic resistance. Price will often drift back up to test the backside of the broken line. When price arrives there, watch for a rejection candle, such as a pin bar or bearish engulfing bar. Place your entry as the rejection completes, and position your protective stop loss slightly beyond the swing high of the retest. If price climbs back inside the original channel, your idea is invalidated and your loss stays small.

This principle of trading strictly by structural criteria mirrors rule-based execution. When market conditions shift unpredictably, understanding market trend breaks automated account protection shows how predefined risk rules protect capital from runaway moves.

How does automated execution handle trendline structure?

Automated execution handles structural shifts by evaluating predefined market rules systematically, eliminating the fear of missing out and the hesitation that cause manual traders to enter prematurely.

Trading trendlines manually requires intense screen focus. You have to monitor candle closes across multiple timeframes, resist the urge to click before a bar finishes, and accept taking a loss if price slices back through your level. Emotional friction causes many traders to abandon their plans right when discipline matters most.

This is where rule-based automation provides an objective edge. Gixodia builds algorithmic trading software for MetaTrader 5 that executes strictly by predefined parameters, the exact same way every single time. It runs free of hesitation, fatigue, and emotional panic, scaling down as user-defined limits approach and pausing whenever required. To learn more about removing emotional bias from trade execution, explore our guide on the psychology of automated trading.

How to do it, step by step

  1. Identify market structure on a higher timeframe. Open your four-hour or daily chart to establish the overarching direction. Look for a clean sequence of higher highs and higher lows for an uptrend, or lower highs and lower lows for a downtrend. Do not draw trendlines during sideways consolidation.
  2. Select the trendline tool. In TradingView, press Alt and T on your keyboard to instantly select the trendline tool, or choose the Trendline analytical object from the Insert menu in MetaTrader 5.
  3. Anchor to the two primary swing pivots. Click on the initial major swing low or high and drag the line across the second prominent swing pivot. Ensure the line does not slice through intermediate candle bodies between your two anchor points.
  4. Project the line and wait for touch three. Enable the Ray Right setting in your charting platform to project the line forward. Treat the line as provisional until price tests the slope a third time and shows a clean bounce.
  5. Confirm a full candle close on a break. If price breaches the line, wait for the candle to close completely on your timeframe. Disregard intra-bar wicks that poke across the line and retract before the bar finishes.
  6. Enter on the structural retest. Wait for price to pull back to the broken trendline. Verify that the line now acts as opposite dynamic resistance or support, enter the trade, and place your stop loss just beyond the retest swing extreme.

Checklist before you take the trade

Common mistakes and how to fix them

✗ The mistake: Slicing through candle bodies to make an angle fit

✓ The fix: Never draw a line that cuts through intermediate candle bodies between pivots. If the line intersects price action, discard it and locate real structural turning points.

✗ The mistake: Entering market orders on intra-bar wicks

✓ The fix: Wait for the session candle to finish completely. A wick outside the line is a liquidity probe; only a full candle body close confirms sellers or buyers broke the level.

✗ The mistake: Chasing the initial breakout candle down

✓ The fix: Wait for the kickback. Let price pull back to test the backside of the broken line, and enter only when you see clear rejection at the retest.

✗ The mistake: Drawing steep vertical lines during parabolic spikes

✓ The fix: Avoid lines steeper than 60 degrees. Extreme angles represent unsustainable momentum that snaps easily; anchor your primary lines to broader swings on higher timeframes.

Frequently asked questions

Should I draw trendlines using candle wicks or candle bodies?

Most professional price action traders anchor trendlines to the extreme tips of candle wicks because wicks represent the true price limits reached during that session. You can also use candle closes on a line chart for cleaner structural view, but you must remain consistent throughout your analysis.

How many touches make a trendline valid?

Two points are required to draw a provisional slope, but a third distinct test and bounce is necessary to confirm that the market acknowledges the boundary. Trading before the third touch means acting on an unconfirmed line.

What happens when price breaks a trendline?

When a confirmed trendline breaks, its technical polarity frequently reverses. A broken ascending support line often becomes dynamic resistance when price returns to test it from below, offering a structured retest entry opportunity.

Can you use trendlines on MetaTrader 5?

Yes, MetaTrader 5 includes a native Trendline analytical tool in the Insert menu under Lines. You can adjust its anchor coordinates, enable Ray Right to extend it forward, and configure alerts when price approaches the level.

Want your trading to follow fixed rules, the same way every time? Gixodia's trading software for MetaTrader 5 trades by predefined rules on your own broker account, in your own name. Try it free for 72 hours, a demo account is fine, then $499/year. Trading involves risk and you can lose money.

Sources

More guides