Следующий кодовый график close
первого бара сеанса.
//@version=4
study("Close of first bar of a day")
// If start of the daily session changed, then it's first bar of the new session
isNewDay = time("D") != time("D")[1]
var firstBarCloseValue = close
if isNewDay
firstBarCloseValue := close
plot(firstBarCloseValue)