Your HMA in lite-C would look like this:

Code:
var HMA(var* data,int n)
{
  return WMA(series(2*WMA(data,0.5*n+0.5)-WMA(data,n)),sqrt(n)+0.5);
}



The "+0.5" is for rounding to the nearest integer. I don't think that this indicator can come close to real low-lag indicators such as the lowpass filter from the tutorial, but it can indeed be better than a straight WMA in some cases. I'll add it to the indicator collection.