IldarAkhmetgaleev

Least Squares Momentum

439 6 53
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')
I have learned to really like Least Squares ! I have found it to be more useful than 99% of other methods of averaging.
Reply
Looks very familiar...

snapshot
Reply
@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
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out