Extra indicators

LSMA: Least Squares Moving Average

The end point of the straight line that fits the last N closes best: a moving average that follows the slope.

قراءة 2 دقائق · جرّبه على رسم بياني حي ↗

الفكرة بكلمات بسيطة

Instead of averaging, LSMA fits a straight line through the recent closes (linear regression) and takes where that line ends today. In a steady trend it sits almost on the price.

طريقة الحساب

For the last N closes, find the line a + b·k with the smallest squared distances (least squares) and plot its value at the newest candle.

b = (N Σk·y − Σk Σy) ÷ (N Σk² − (Σk)²),  a = (Σy − b Σk) ÷ N
LSMA = a + b × (N − 1)

كيفية الاستخدام

  • As a responsive trend line.
  • The slope (rising or falling) shows the direction of the last N candles.

استخلاص النتائج

  • When the price moves far away from LSMA the trend is accelerating; returning to it means it is fading.

مثال

EURUSD H1, LSMA(25): during a steady climb the line almost touches every close; the first close well below it signals the climb has broken.

الأسعار في الأمثلة للتوضيح.

ما يجب الانتباه إليه

  • It reacts fast and therefore overshoots at turning points.

لمحة تاريخية

Linear regression goes back to Legendre and Gauss (early 1800s); traders adopted the rolling version in the 1980s and 1990s.

محتوى تعليمي فقط. لا يتنبأ أي مؤشر أو نمط بالمستقبل، ولا شيء هنا يُعد نصيحة استثمارية.