//@version=5
indicator("Test LTF 1",overlay=true)
market_session = input.session("0930-1600",title='Market Session',group = "Market Settings")
var Ext_Notice_Table = table.new(position = position.bottom_right, columns = 1, rows = 6, bgcolor = color.new(color.yellow,50), border_width = 1)
_IsSessionStart(sessionTime, sessionTimeZone=syminfo.timezone) =>
inSess = not na(time(timeframe.period, sessionTime, sessionTimeZone))
inSess and not inSess[1]
isFirstBarOfMarket = _IsSessionStart(market_session)
_mytest() =>
var float result = na
if isFirstBarOfMarket
result := close
result
Singleclose = request.security_lower_tf(syminfo.tickerid, "1",_mytest())
table.cell(table_id = Ext_Notice_Table, column = 0, row = 1, text = "Singleclose " + str.tostring(Singleclose),bgcolor=color.new(color.orange,95),text_color=color.new(color.white,0))