STOCKS & COMMODITIES magazine. The Traders' Magazine

Register or Log In — Traders.com and STOCKS & COMMODITIES magazine

  |  JUL 1988

Fitting a trendline by least squares by Arthur A. Merrill

Fitting a trendline by least squares by Arthur A. Merrill Trendlines usually are drawn through tops or bottoms. They also are drawn through the center of prices by a lagged moving average or by eye (Figure 1). A straight line through the center of a price channel, if the scale is logarithmic, will give you the percentage growth or decline rate. If the straight line is drawn by eye, it is subject to debate. This doubt can be resolved by a mathematically calculated line called ""least squares"" (Figure 2). The deviations of the points from the line are A, B, C, D and E. The line produced by the least squares calculation reduces the sum of the squares of these deviations to a minimum, hence the name ""least squares."" Now, the formula for a straight line is: Y = A + BX X is the value of the X axis and when X is zero, Y equals A, which is called the Y intercept (Figure 3). The distance from this level up to the line is BX, which is directly proportional to B, the slope of the regression line. X is the value of the X axis.

by Arthur A. Merrill, C.M.T.

Technical Analysis of STOCKS & COMMODITIES
The Traders’ Magazine since 1982
has had over 1,226,237 subscribers from 174 different countries.
37,000 Page Traders’ Archive for $89.99

NOT A SUBSCRIBER?

To continue reading, sign-up for trial access to Traders.com and the S&C Archive37,000 pages of trading ideas!




After verifying your email address, you will have limited access to the S&C Archive, as well as access to a Digital Edition of S&C, and access to Traders.com Advantage and Working Money for 30 days.



DEPARTMENTS: Advertising | Editorial | Circulation | Contact Us | BY PHONE: (206) 938-0570

PTSK — The Professional Traders' Starter Kit
Home — S&C Magazine | Working Money Magazine | Traders.com Advantage | Online Store | Traders’ Resource
Add a Product to Traders’ Resource | Message Boards | Subscribe/Renew | Free Trial Issue | Article Code | Search

Copyright © 1982–2024 Technical Analysis, Inc. All rights reserved. Read our disclaimer & privacy statement.