Thanks.

I just wrote this code and it looks fine and is identical to the original.
What do you think?
Code:
int i, dist;
	vars high = series(priceHigh(i - dist / 2));
	MaxVal(high,dist);
	vars low = series(priceLow(i - dist / 2));
	MinVal(low,dist);