On a separate note:
Code
var myma (vars,var);

var ma( DWORD func, vars prc, var len) {	
	myma=func;
	return  myma(prc,len);
}

void run () {	
	var sma = ma(EMA,seriesC(),0.47);
	
	watch("!ma=", sma, EMA(seriesC(),0.47));		
}
The 1st ema call fails for all alpha >0.37, the 2nd - always works. Why and how to make it work?

Attached Files
ema047fptr.PNG (39 downloads)