You could try this with Highest(High, nBars)... Based on your specific condition you could tailor it to show nBar High/Lows.
Regards,
Suri
Var:
nBars(15),
nH(0), nL(0);
if (BarStatus(1)=2) then
begin
nH = Highest(High,NBars);
nL = Lowest(Low,nBars);
if (nH = High)...