TIME
Additional Time Frame overlay
Different time frames can be selected via controls
study("Add TimeFrame", shorttitle="TF Layer", overlay=true)
res = input("240", type=resolution)
o = security(tickerid, res, open)
h = security(tickerid, res, high)
l = security(tickerid, res, low)
c = security(tickerid, res, close)
col = c >= o ? lime : red
plotcandle(o,h,l,c, color=col)