Problem in Strategy Tester with indicator (code attached) - page 2

 
if(y<ArraySize(TimeArray)){ if(Time[i]<TimeArray[y]) y++;}
   sslHup[i]=iCustom(NULL,TimeFrame,IndicatorFileName,Lb,SSL_BarLevel,0,y);
   sslHdn[i]=iCustom(NULL,TimeFrame,IndicatorFileName,Lb,SSL_BarLevel,1,y);
}

Why indicator is calling itself with iCustom command?

What about doing simply this?

sslHup[i]=sslHup[y];
sslHdn[i]=sslHdn[y];
 
Fabio Cavalloni:

Why indicator is calling itself with iCustom command?

What about doing simply this?

If you do that it does not calculate/display mtf data - only the default/current timeframe of the chart

 
The reason I desperately want this indicator to work is because there are a scarcity of good MTF Trend Indicators. This one is one of the best i have seen. I have been searching for something similar but cannot find anything that really pleases me like this one.
Reason: