Least Squares Momentum

543 6 72
This one can replace all my indecators. It shows support/resistance and divergence at same time.
Remove from Favorite Scripts Add to Favorite Scripts
study(title = "Least Squares Momentum", shorttitle="LSM", overlay=true)

length = input(title="Length", type=integer, defval=14)

source = close

mid = linreg(source, length, 0)
tail = linreg(source, length, length/2)
head = linreg(source, length, -length/2)

plot(head, color=#226622, title='head')
plot(mid, color=#333333, title='mid')
plot(tail, color=#881111, title='tail')
@coondawg71 +1 for my copyleftness. Good ideas hovers in the air, so shouldn't be copyrighted.
coondawg71 PRO IldarAkhmetgaleev

Linear Regression on the Intercepts

coondawg71 PRO coondawg71

Overlay the different deviation of your liking, I like 1.239 for a breakout, 2.618 for a target and 5.0 for an ultimate target, change in trend
Looks very familiar...

I have learned to really like Least Squares ! I have found it to be more useful than 99% of other methods of averaging.
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out