I think you might find the ValueWhen() function will work faster than the external function call:
{ LowPeriod will contain how many periods ago the low occurred }
LowPeriod := llvbars(C,5);
{ CurHigh should contain the High value of the bar that presented the Lowest value}
CurHigh := ValueWhen(1, LowPeriod=0, H);
Hope this helps.
wabbit
"The question of whether a computer can think is no more interesting than the question of whether a submarine can swim."
Edsgar W. Dijkstra
MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC C, 11 PRO w/QC & MDK
For custom MetaStock programming : http://www.wabbit.com.au
My SkyPE status : 
My SkyPE account : wabbit.com.au