Hi,
I have taken this code from following link.
But when i add Addcolumn, it is showing high and low values for every 5 minute candle.
What is missing in the attached code.
I just want to get the HHV and LLV value of the specified intraday time range of P11 and P12.
ppl = ParamToggle("IB_LEVELS","Off|On",1);
pplxt = ParamToggle("IB _LEVELSExtn","Off|On",0);
P11 = Param("IB Start Time",091500, 0 , 235959, 1 ) ;
P12 = Param("IB END Time",101500, 0 , 235959, 1 ) ;
START = (TimeNum()>= P11);
END = (TimeNum()<= P12);
ZONE = START AND END;
ST = (TimeNum()>= P12);
NewTime = ZONE!= Ref(ZONE, -1);
highestoftheday = HighestSince(NewTime,H,1);
Lowestoftheday = LowestSince(NewTime,L,1);
IBHigh = ValueWhen(ZONE,highestoftheday,1);
IBLow = ValueWhen(ZONE,lowestoftheday,1);
Any help would be appreciated.
Thanks,
Gloria Filamino