Function 2 Point Line V1

119 0 10
method for drawing 2 point lines.
added ability to offset/shift the values of the line as to allow for casting the line forward or backward.
Remove from Favorite Scripts Add to Favorite Scripts
study("Function 2 Point Line V1", overlay=true)
offset = input(100)
_p0 = 1.07518
_t0 = 5696
_p1 = 1.07407
_t1 = 5711

//bgcolor(n==_t0?black:na, transp=25)
//bgcolor(n==_t1?black:na, transp=25)

f_2p_line(_price0, _time0, _price1, _time1, _shift) => _price0 + (((_price1 - _price0) / (_time1 - _time0)) * ((n + _shift) - _time0))

plot(f_2p_line(_p0, _t0, _p1, _t1, offset), color=black, offset=offset)
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
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