Pls help :Last Hour High low in Exploration

#1
I am posting This afl this shows this last hour high and low price on chart but when i explore it the result is differnt for Example last hour high n low of BOB is 840 and 830 in chart window it show correct value but in exploration window is shows wrong value instead of last hour high and low in shows day high n low in exploration

_SECTION_BEGIN("HL14.30");
HLstartTime = TimeNum() >= 143000 AND TimeNum() <= 150000;
HLendTime = TimeNum() >= 153000 ;
HLstartTime = ExRem(HLstartTime,HLendTime);
HLendTime = ExRem(HLendTime,HLstartTime);
High1 = HighestSince(HLstartTime,H);
High1 = IIf(TimeNum() <= 143000, ValueWhen(HLendTime,High1),High1);


Low1 = LowestSince(HLstartTime,L);
Low1 = IIf(TimeNum() <= 143000,ValueWhen(HLendTime,Low1),Low1);

GfxSetTextColor(colorGreen);
GfxTextOut("lH - " + WriteVal(High1) ,200,65);
GfxTextOut("lL - " + WriteVal(Low1) ,200,80);

Filter = 1;
AddColumn(High1,"High");
AddColumn(Low1,"Low");
AddColumn(C,"close");
AddColumn((High1-Low1)*100/Low1,"%Change");
_SECTION_END();
 
#2
Pls help :Seniors Last Hour High low in Exploration

I am posting This afl this shows this last hour high and low price on chart but when i explore it the result is differnt for Example last hour high n low of BOB is 840 and 830 in chart window it show correct value but in exploration window is shows wrong value instead of last hour high and low in shows day high n low in exploration

_SECTION_BEGIN("HL14.30");
HLstartTime = TimeNum() >= 143000 AND TimeNum() <= 150000;
HLendTime = TimeNum() >= 153000 ;
HLstartTime = ExRem(HLstartTime,HLendTime);
HLendTime = ExRem(HLendTime,HLstartTime);
High1 = HighestSince(HLstartTime,H);
High1 = IIf(TimeNum() <= 143000, ValueWhen(HLendTime,High1),High1);


Low1 = LowestSince(HLstartTime,L);
Low1 = IIf(TimeNum() <= 143000,ValueWhen(HLendTime,Low1),Low1);

GfxSetTextColor(colorGreen);
GfxTextOut("lH - " + WriteVal(High1) ,200,65);
GfxTextOut("lL - " + WriteVal(Low1) ,200,80);

Filter = 1;
AddColumn(High1,"High");
AddColumn(Low1,"Low");
AddColumn(C,"close");
AddColumn((High1-Low1)*100/Low1,"%Change");
_SECTION_END();