IldarAkhmetgaleev

Least Squares Momentum

512 6 69
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.
Reply
coondawg71 PRO IldarAkhmetgaleev
snapshot


Linear Regression on the Intercepts


Reply
nice!
Reply
coondawg71 PRO coondawg71
snapshot


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
Reply
Looks very familiar...

snapshot
Reply
I have learned to really like Least Squares ! I have found it to be more useful than 99% of other methods of averaging.
Reply
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体
台灣
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