IldarAkhmetgaleev

Least Squares Momentum

468 6 57
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
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
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 Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out