RicardoSantos

[RS]Session HL V0

Editable Time Session High/lows and duration.
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?
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)