What it means
A rising or falling price can persist for a while, but no one knows in advance when that direction will end. Trend following uses predetermined signals to respond to the direction observed so far rather than trying to identify an exact turning point. It is a form of technical analysis, not a measure of whether a stock is fairly valued.
A rule might compare a stock’s closing price with its moving average. Another might require a shorter moving average to cross a longer one. Some strategies take long positions in rising markets and exit when the signal reverses; others also take short positions in falling markets. The lookback period, signal and exit rule must be specified before results can be assessed.
How it is calculated
Trend following has no single formula. One illustrative signal uses a simple moving average (SMA):
SMA_N(t) = [P_t + P_(t−1) + ... + P_(t−N+1)] / N
SMA_N(t)is the average closing price, in US$ per share, over the most recentNtrading days ending on dayt.P_tis the closing price, in US$ per share, on dayt; the otherPvalues are earlier daily closes.Nis the number of trading days in the lookback period.
For example, a rule can label the trend upward when P_t > SMA_N(t) and not upward when P_t ≤ SMA_N(t). That comparison is a signal definition, not a probability that the next price move will be positive. Other rules can produce different signals from the same prices.
Worked example
Suppose a hypothetical stock has closed at US$18, US$19, US$20, US$21 and US$22 over five trading days.
- Set
N = 5. Add the closes: US$18 + US$19 + US$20 + US$21 + US$22 = US$100 per share. - Divide by five:
SMA_5 = US$20 per share. - Compare the latest close, US$22, with the SMA, US$20. Under the stated rule, the trend is labeled upward because US$22 > US$20.
If the next hypothetical close is US$19, the five-day window drops US$18 and adds US$19. The new SMA is (19 + 20 + 21 + 22 + 19) / 5 = US$20.20 per share. Because US$19 ≤ US$20.20, the rule no longer labels the trend upward. A signal observed at a closing price does not mean an order can be filled at that close.
Why it matters before you trade
A trend signal says nothing by itself about trading cost or position risk. Before placing an order based on one, a pre-trade check can examine the bid-ask spread, expected market impact, order size relative to daily volume, volatility and execution conditions. Frequent signal changes can lead to repeated transactions, while a sharp price gap can cause a fill far from the price used to calculate the signal.
The lookback period also matters. A short window can react quickly but switch direction repeatedly; a long window responds more slowly. Neither choice removes losses or makes a historical pattern reliable in the future. If short selling is part of a strategy, it introduces additional risks and execution constraints.
How PreTrAIde uses it
PreTrAIde is an AI pre-trade analysis platform for stocks, not a trend-following signal service. Its stated quantitative layer estimates factors including spread, participation in daily volume, market impact and volatility; its AI layer reasons from quantitative scores, news and analyst ratings. Trend-following signals are not listed among its features.
A user considering a trade for trend-following reasons can build a stock basket with sides, quantities and execution conditions. PreTrAIde then returns a GO, NO-GO or MODIFY verdict with a model-estimated success probability, risk assessment, suggested execution strategy and plain-language reasoning. These verdicts support a decision before an order is placed; they are not recommendations, and PreTrAIde does not execute orders.
Common mistakes
- Treating a moving-average signal as a price forecast or a guarantee of a profitable trade.
- Selecting a lookback period solely because it fits past data, without considering overfitting.
- Ignoring spreads, market impact and other costs when signals change frequently.
- Assuming a closing-price signal could have been executed at that same closing price.
- Confusing trend following with PreTrAIde’s pre-trade analysis of execution and risk.