Professional Documents
Culture Documents
Time-Based Trend Calculations - Notes
Time-Based Trend Calculations - Notes
______________________________________________________________________________________________
1. The purpose of all trend identification methods is to remove the underlying noise in the market, those
erratic moves that seem to be meaningless, and find the current direction of prices.
2. But trends are somewhat dependent upon your time horizon.
3. There may be more than one trend at any one time, caused by short-term events and long-term
policy, and it is likely that one trader will search for the strongest, or most dominant trend, while
another will seek a series of shorter-term moves.
4. There is no “right” or “wrong” trend but a choice of benefits and compromises.
6. From a practical viewpoint, these trending methods are more flexible than the traditional regression
models, but to achieve success they introduce a lag
7. A lag is a delay in the identification of the trend.
8. Great effort has been spent trying to reduce this lag in an attempt to identify the trend sooner;
however, the lag is the zone of uncertainty that allows the technique to ignore most of the market
noise.
Least-Squares Model.
1. The least-squares regression model is the same technique that is used to find the relationship
between two markets—Barrick Gold and cash gold, corn and soybeans—or to find how price
movement could be explained by the main factors influencing them, supply and demand.
2. Most trading systems depend only on price; therefore, we will look again using the least-squares
model with time as the independent variable and price as the dependent variable.
3. The regression results will be used in an autoregressive way to forecast the price n-days ahead, and
we will look at the accuracy of those predictions.
4. The slope of the resulting straight line or curvilinear fit will determine the direction of the trend.
Error Analysis
A simple error analysis can be used to show how time works against the predictive qualities of regression, or
any forecasting method.
Using 10 years of General Electric (GE) prices, ending February 15, 2010, the slope and y-intercept are
calculated for a rolling 20 days.
The 1-, 2-, 3-, 5-, and 10-day ahead forecast is found by projecting the slope by that number of days. The
forecast error is the difference between the projected price and the actual price.
Figure above shows the price for GE from December 31, 2010, through February 15, 2011, along with the
five forecast prices.
Even though the price move seems to be increasing steadily, the forecasts get farther away as the days
ahead become larger.
This result is typical of forecasting error, regardless of the method, and argues that the smallest forecast
interval is the best.
The standard deviations of the five forecast errors(Figure below) , taken over the entire 10 years, shows the
error increasing as the days-ahead increase.
This confirms the expectation that forecasting accuracy decreases with time and that confidence bands will
get wider with time. For this reason, any forecasts used in strategies will be 1-day ahead.
Experience shows that the best choice of trending method will be the one that is profitable over most markets
and most calculation periods.
Even then, shorter calculation periods have no trend, so we need to restrict our statement to longer periods.
where M is called momentum, t is today, and n is the number of days. Sometimes this is called rate of
change, but both momentum and rate of change are incorrect names.
2. If the change in price is positive, we can say that the trend is up, and if negative, the trend is down. Of
course, this decision is based only on two data points, but if those points are far enough away from
each other, that is, if n is large, then the trend as determined by this method will be very similar to a
simple moving average.
3. 0
It may restore perceived value to parts of a data sample, or it may incorrectly bias the data
Triangular Weighting
1. Triangular weighting or triangular filtering attempts to uncover the trend by reducing the noise in both
the front and back of the calculation window, where it is expected to have the greatest interference.
2. Triangular weighting is often used for cycle analysis.
Pivot-Point Weighting
1. The pivot-point moving average uses reverse linear weights (e.g., 5, 4, 3, …) that begin with a positive
value and continue to decline even when they become negative.
2. The intent of this pattern is to reduce the lag by front-loading the prices.
3. For a short interval this can cause the trendline to be out of phase with prices.
4. This method seems best when used for longer-term cyclic markets, where the inflection point, at
which the weighting factor becomes zero, is aligned with the cyclic turn or can be fixed at the point of
the last trend change.
Accumulative Average
1. An accumulative average is simply the long-term average of all data, but it is not practical for trend
following.
2. One drawback is that the final value is dependent upon the start date.
3. If the data have varied around the same price for the entire data series, then the result would be good.
4. It would also be useful if you are looking for the average of a ratio over a long period.
5. Experience shows that price levels have changed because of inflation or a structural shift in supply
and/or demand, and that progressive values fit the situation best.
Drop-Off Effect
1. Many rolling trend calculations are distinguished by the drop-off effect, a common way of expressing
the abrupt change in the current value when a significant older value is dropped from the calculation.
2. A front-weighted average, in which the oldest values have less importance, reduces this effect
because older, high-volatility data slowly become a smaller part of the result before being dropped off.
3. Exponential smoothing is by nature a front-loaded trend that minimizes the drop-off effect as does the
average-off method