Professional Documents
Culture Documents
?
?
study(title='💥1💥', shorttitle='🔥',overlay=true)
//💥💥💥💥💥HIDE HISTORICAL LEVELS💥💥💥💥💥//
showlast = input(title='💥SHOW CURRENT LEVELS ONLY💥', defval=true, group='Historical
Levels')
islast = showlast ? security(syminfo.tickerid,'D', barstate.islast,
lookahead=barmerge.lookahead_on) : true
//💥💥💥💥💥💥💥💥💥💥💥💥💥💥//
inputMax = input(15, title= "ORB total time (minutes)")
sess = input("0915-0916", type=input.session, title="Session Time")
t = time(timeframe.period, sess + ":1234567")
hide = timeframe.isintraday and timeframe.multiplier <= inputMax
orb_high = float(na)
orb_low = float(na)
orb_open = float(na)
orb_close = float(na)
if is_first
orb_high := high
orb_low := low
else
orb_high := orb_high[1]
orb_low := orb_low[1]
if high > orb_high and in_session
orb_high := high
if low < orb_low and in_session
orb_low := low
if is_first
orb_open := open
orb_close := close
else
orb_open := orb_open[1]
orb_close := orb_close[1]
if open > orb_open and in_session
orb_open := open
if close < orb_close and in_session
orb_close := close
//💥💥💥💥💥OPEN-CLOSE💥💥💥💥💥//
showprevclose = input(true, title="Show Previous Close")
showtodayopen = input(true, title="Show Today Open")
colorvalue = security(syminfo.tickerid, "D", open[1], barmerge.gaps_off,
barmerge.lookahead_on)
todayopen = security(syminfo.tickerid, "D", open, barmerge.gaps_off,
barmerge.lookahead_on)
prevclose = security(syminfo.tickerid, "D", close[1], barmerge.gaps_off,
barmerge.lookahead_on)
plot (islast and showtodayopen and todayopen? todayopen : na, color = purplecolor,
linewidth=1, style=plot.style_circles, title="Day Open")
plot (islast and showprevclose and prevclose ? prevclose : na , color =
yellowcolor, linewidth=1, style=plot.style_circles, title = "Previous Close")
//💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥//
//💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥//
//💥💥💥💥💥💥💥💥💥💥💥💥💥💥💥//