RicardoSantos

Function 2 Point Line V0

104 1 8
method for drawing 2 point line.
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
study("Function 2 Point Line V0", overlay=true)
_p0 = 1.07518
_t0 = 5696
_p1 = 1.07407
_t1 = 5711

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

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

plot(f_2p_line(_p0, _t0, _p1, _t1), color=black)
Thanks for posting this simple method. Somehow haven't figured up to now how to plot these for indicators.
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