tradingview.com/x/qxGUNJLL/
tradingview.com/x/yOzzY5wM/
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)

tradingview.com/x/yOzzY5wM/
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)
Note
See if you can make use of it.Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.