Below is my tradingview code -
//@version=2
study(title=“High-Low”, shorttitle=“High-Low”, overlay=true)
D_High = security(tickerid, ‘D’, high[1])
D_Low = security(tickerid, ‘D’, low[1])
D_Close = security(tickerid, ‘D’, close[1])
D_Open = security(tickerid, ‘D’, open[1])
plot(isintraday ? D_High : na, title=“Daily High”,style=line, color=red,linewidth=1)
plot(isintraday ? D_Low : na, title=“Daily Low”,style=line, color=green,linewidth=1)
t = time(“1440”, session.extended) // 1440=60*24 is the number of minutes in a whole day. You may use “0930-1600” as second session parameter
//plot(t, style=linebr) // debug
is_first = na(t[1]) and not na(t) or t[1] < t
plotshape(is_first, color=red, style=shape.arrowdown)
day_high = na
day_low = na
if is_first and barstate.isnew
day_high := high
day_low := low
else
day_high := day_high[1]
day_low := day_low[1]
if high > day_high
day_high := high
if low < day_low
day_low := low
plot(day_high, color=is_first and barstate.isnew?na:lime)
plot(day_low, color=is_first and barstate.isnew?na:red)
I want to create an intraday scanx. Requesting to help me for the same.
TT