RicardoSantos

[RS]Session HL V0

161 2 24
Editable Time Session High/lows and duration.
Remove from Favorite Scripts Add to Favorite Scripts
study("[RS]Session HL V0", overlay=true)
session_time = input('0000-0800' )
newsession(res, sess)=>change(time(res,sess))!=0
timeinrange(res, sess)=>not na (time(res, sess))
p_hh = nz(hh[1])
p_ll = nz(ll[1])
hh = newsession('1', session_time)? open : timeinrange('1', session_time) ? p_hh : high >= p_hh ? high : p_hh
ll = newsession('1', session_time)? open : timeinrange('1', session_time) ? p_ll : low <= p_ll ? low : p_ll
h1 = plot(hh, title='hh', color=hh!=hh[1]?na:black)
h2 = plot(ll, title='ll', color=ll!=ll[1]?na:black)
fill(h1, h2, title='fill', color=gray, transp=75)
coondawg71 PRO
2 years ago
Nice tool. Any way we can get the High Lines and Low Lines to extend to the second period selected?
Reply
RicardoSantos PRO coondawg71
2 years ago
its possible but it would be a different tool altogether.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener 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