Thanks for your help. I plugged in the formula into Zorro like this:
function run()
{
var *ClosePrice = series(priceClose());
var *HMA17 = WMA(series(2*WMA(ClosePrice,0.5*17+0.5)-WMA(ClosePrice,17)),sqrt(17)+0.5);
var *HMA35 = WMA(series(2*WMA(ClosePrice,0.5*35+0.5)-WMA(ClosePrice,35)),sqrt(35)+0.5);
if(crossUnder(HMA17,HMA35))
enterShort();
if(crossOver(HMA17,HMA35))
enterLong();
}
But I am getting syntax error CONV:DOUBLE::POINTER
Two other questions:
Dont you need int(sqrt(n) + .5) to round
Besides adding your code into my indicators.c id there anything else needed to be done since Zorro still wont recognize it as an indicator?
Thanks so much and I apologize for so many questions
As for following trends, yes there are much tighter indicators but ofcourse you also get more whipsaws but I will def look into them during optimization.