Skip to main content
On this page

How to Draw Trend Lines in TradingView

· 4 min read
Pineify Team
Pine Script and AI trading workflow research team

A trend line connects two selected chart points and projects their slope. It can make a price hypothesis visible, but the drawing does not establish that future price will bounce or that a breakout will be profitable.

How to Draw Trend Lines in TradingView

Choose the Anchors Before Drawing​

For a rising support hypothesis, select two higher swing lows; for a falling resistance hypothesis, select two lower swing highs. Define whether you use wick extremes or closing prices and apply that convention consistently. Neither convention is universally correct.

Two points define a line. Additional touches are observations to evaluate, not proof that it is safe to trade. When practicing on historical data, avoid choosing anchors using future bars that would not have been available at the time.

Draw and Edit the Line​

  1. Open the chart's drawing toolbar and select Trend Line.
  2. Place the first anchor at the selected timestamp and price, then place the second.
  3. Select the line and open its settings to inspect color, width, coordinates and visibility.
  4. Enable the desired left or right extension if you want a projection beyond the anchors.
  5. Zoom out and check that the coordinates still reflect the intended points.

TradingView's Trendline drawing tool documentation describes style and coordinate controls. It specifies Shift for a 45-degree angle; do not rely on the old claim that Shift always produces only horizontal or vertical lines.

A fixed on-screen angle depends on chart scaling and is not itself a market property. Logarithmic and linear price scales can make the same selected points look different.

Mobile and Accurate Placement​

On mobile, open the drawing tools, select Trend Line and place its two anchors. Tap the selected drawing to access its editing controls. Toolbar placement can vary between app versions; use the named tool rather than a guessed icon location.

Zoom before placing anchors and inspect coordinates afterward. Magnet mode can help align drawings with candle values, but verify the chosen point. A precisely placed line can still represent a poor hypothesis.

Extensions, Channels and Alerts​

An extended line or ray projects a selected slope; it does not forecast a guaranteed future level. A parallel channel adds a second boundary whose placement should also follow a stated rule.

Where the drawing supports alerts, choose the actual condition and trigger frequency in the alert dialog. Test whether it means a touch, crossing or confirmed-close condition. An alert reports a configured event; it does not submit a protective order by drawing a line.

For programmatic drawings, Pine's lines and boxes documentation covers line objects. A pivot-based script must account for the bars needed to confirm a pivot; a line drawn back at the pivot does not mean the pivot was known then.

Pineify Website

Pineify can help draft chart logic. Specify the anchor and confirmation rules, inspect the source and compare realtime behavior rather than assuming an automatically drawn line is more reliable.

Evaluate Breaks Without Rewriting History​

A wick crossing and a close beyond the line are different rules. Choose the rule before reviewing outcomes. Volume, RSI or MACD may add context, but combinations can be redundant and can still fail. Define entry, invalidation, exit and costs before measuring results.

Keep a record of the original anchors and when they were available. Moving the line after every failed break can make historical charts look convincing while hiding the decisions a trader would actually have faced.

FAQ​

Must I use wicks? No. Wicks and closes support different conventions. State and apply the chosen one consistently.

Does a third touch prove support? No. It is another observation, not a guarantee of the next reaction.

Why does the line not extend? Inspect its extension and visibility settings. Do not clear browser data before checking the drawing configuration.