Trendline
- Category
- Technical Analysis
- Level
- Foundation
Simple definition
A straight line drawn along a run of rising lows or falling highs, used to show the direction and the slope of a move at a glance.
Professional definition
A straight line anchored to two or more swing points in the same direction, extended forward as a moving level. An up trendline joins higher lows beneath price; a down trendline joins lower highs above it. Its slope is the quantity being read, not the line itself.
Technical definition
A linear approximation of a non-linear price path. Because the anchor points, the choice of wicks or bodies, the price scale and the handling of missing sessions all alter the slope, a trendline is a parameterised object, not an observation. Two analysts given the same chart produce different lines, so the only reproducible version of a trendline is one defined in code by an explicit pivot rule.
Academic definition
A straight-line construction fitted to successive extrema of one sign, used as a time-varying reference level for price.
Mechanism
A trendline works as a level only to the extent that participants place orders along it, which is a reflexive rather than a physical mechanism. What makes the slope informative is simpler: a steeper line needs faster buying to stay intact, so a steep line breaks sooner, and the break says the rate of demand has fallen, not necessarily that the trend has ended.
In practice
- Who uses it
- Chart-based traders defining trend state, channel traders, and strategy developers who need a mechanical pivot rule before a trendline can be backtested.
- Why it matters
- It compresses a sequence of swings into one number, the slope, and gives a moving invalidation point that tightens as the trend ages.
- Limitations
- Entirely dependent on how the anchors are chosen. Re-drawn after the fact, any trendline looks good, which is why hand-drawn lines must never be fed into a backtest as inputs.
Common mistakes
- Redrawing the line after each break until it fits.
- Mixing wick anchors and body anchors on the same line.
- Reading a steep line's break as a trend reversal.
Examples
Three rising lows at 100, 112 and 126 define an up trendline. A fourth low at 130 is above the line, so the trend is intact but decelerating; the line has not been touched and gives no new information.
An up trendline anchored at bar 10 price 100 and bar 40 price 130 rises one point per bar. At bar 60 the line reads 150, so a close at 146 is below it even though price is far above the first anchor.
- anchor 1: bar index 10, price 100
- anchor 2: bar index 40, price 130
- evaluation bar index = 60
- close at bar 60 = 146
- slope m = (130 - 100) / (40 - 10) = 1.0 per bar
- line value at bar 60 = 100 + 1.0 x (60 - 10) = 150
- 146 < 150
Slope is per bar index, not per calendar day. Weekends and halted sessions change the answer if calendar time is used instead.
Mathematical foundation
Variables
| P_1, P_2 | Prices at the two anchor pivots | price units |
| t_1, t_2 | Bar indices of the two anchor pivots | bars |
| m | Slope: price change per bar | price units per bar |
| L(t) | Level of the extended line at bar t | price units |
Procedure
Fix a pivot rule, for example a low with k lower lows on each side. Take the two most recent confirmed pivots of the same sign, compute the slope from their prices and bar indices, then evaluate the line at any later bar. Compare the close, not the wick, if the rule is to be reproducible.
Worked example
- anchor 1: (t = 10, P = 100)
- anchor 2: (t = 40, P = 130)
- target bar t = 60
- m = (130 - 100) / (40 - 10) = 1.0
- L(60) = 100 + 1.0 x (60 - 10)
Interpretation
The slope is a rate: price units gained per bar while the trend held. Comparing the current close with L(t) states whether price is still above that rate of advance — nothing more.
Assumptions
- Linear price axis. On a logarithmic axis the same two anchors imply a different path, because the line is then straight in log price.
- Time measured in bar index. Using calendar time changes the slope whenever sessions are missing.
- The anchors are confirmed pivots known at the time, not extremes identified later. Choosing anchors with hindsight is lookahead bias.
- Two anchors never define a unique line in practice: wick or body, and which pivot counts, both move it.
- The formula is exact; the object it describes is a choice. Precision in the arithmetic does not make the line objective.
Related terminology
- related
- Support and Resistance Pivot Trendline Breakout Pullback Triangle Pattern Moving Average Lookahead Bias
Pivot Trendline
A trendline is the general construction. Pivot trendline is the author's own rule for which pivots may anchor one, and is documented separately as a named method.
Sources
New York Institute of Finance · 1999 · chapter on basic trend concepts and trendlines
Print source
CMT Association · treatment of trend identification and the reproducibility problem
https://cmtassociation.org/wp-content/uploads/2019/01/Technical-Analysis-Modern-Perspectives-CMT-Association.pdf URL verified
Editorial status
Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.
