RicardoSantos

[RS]Session HL V0

166 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)
Nice tool. Any way we can get the High Lines and Low Lines to extend to the second period selected?
Reply
its possible but it would be a different tool altogether.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
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