1437 1 105
The slope indicator measures the rise-over-run of a linear regression , which is the line of best fit for a price series. Fluctuating above and below zero, the Slope indicator best resembles a momentum oscillator without boundaries. It is not well suited for overbought/oversold levels, but can measure the direction and strength of a trend. It can also be used with other indicators do identify potential entry points within an ongoing trend. (http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:slope)
Remove from Favorite Scripts Add to Favorite Scripts
study("Slope")
lrp = input(2, title="Linear Regression Period")
stf = input(2, title="Slope Time Frame")
lr = linreg(close, lrp, 0)
ch = lr-lr[stf]
plot(ch/stf)
hline(0)
thanks. on stockcharts there is only 1 variable to set for the time whereas your program has 2 variables for both the slope time frame & linear regression period?
Reply
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 繁體中文
AR العربية
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