@snbarma Depending upon how you code this, you just need to understand how to use ValueWhen
https://www.amibroker.com/guide/afl/valuewhen.html
I don't trade intraday so here is my attempt but it could probably be written better.
StartTime = ParamTime( "Start Time", "13:00:00" );
EndTime = ParamTime( "END Time", "15:30:00" );
tn = TimeNum();
// these conditions are true when TimeNum of the bar equals startime/endtime
StartBar = tn == StartTime;
EndBar = tn == Endtime;
// on the end bar we read the value of highest high since the start bar
TodayHHinRange = ValueWhen( EndBar, HighestSince( StartBar, High ),1 );
// the value of TodayHHinRange is Yesterday's until today at "EndTime" when the latest
// calculation is done and then listed
YesterdayHHinRange = ValueWhen( EndBar, HighestSince( StartBar, High ), 2);
// the value of YesterdayHHinRange is two day's ago's until today at "EndTime" when the latest
// calculation is done and then listed, then becomes Yesterday's
// just for my Exploration I wanted some Null's so a little re-naming here
TodayResult = IIf(tn==EndTime, TodayHHinRange, Null);
YesterdayResult = IIf(tn==EndTime, YesterdayHHinRange, Null);
/////////////////////////////////
// Explore the attempted solution
/////////////////////////////////
Filter=1;
time_color = IIf(tn>=StartTime AND tn<=EndTime, colorLightYellow, colorDefault);
AddColumn(High, "High", 1.2, colorDefault, time_color);
AddColumn(TodayResult, "TodayResult", 1.2, colorDefault, colorYellow);
AddColumn(YesterdayResult, "YesterdayResult", 1.2, colorDefault, colorLime);
/*
AddColumn(TodayHHinRange, "TodayHHinRange", 1.2, colorDefault, time_color);
AddColumn(YesterdayHHinRange, "YesterdayHHinRange", 1.2, colorDefault, time_color);
*/
Producing an Explore like this,