That's correct - the Today's High and Today's Low are actual Today's high/low - right now, not at the time of the candle.
If you wants a paintbar/scan to get the high and low for the day *at the time of the candle* you have to keep track of it yourself.
It is pretty easy to do
define
.fctbNone{ color:#000000; }
.fctbStyle4{ color:#0000ff; }
.fctbStyle3{ color:#000000; }double DayHigh, DayLow;
int PrevDayNumber = -1;
then, inside the paintbar, at start, do:
.fctbNone{ color:#000000; }
.fctbStyle4{ color:#0000ff; } var info = GetTradingSessionInfo(Timestamp);
if (info.DayNumber!=PrevDayNumber)
{
DayHigh = High; DayLow=Low; PrevDayNumber=info.DayNumber;
}
else
{
DayHigh = Math.Max(DayHigh, High);
DayLow = Math.Min(DayLow, Low);
}
There ya go.