So I think I wrote the right code in the first post but you said it is wrong?

vars mas = series();
vars maf = series();

By writing this, everytime the bar is updated, mas and maf stored the latest value?

I want the latest value stores the last series.

Update:

This looks fine.

vars ma = series();
ma = series(GSMOOTH(Close[0],ma[0],Slowalfa[0]));
vars maf = series();
maf=series(GSMOOTH(Close[0],maf[0],Fastalfa[0]));

But again same one.
Where missing pointer?

'GSMOOTH' : Pointer expected
< ma = series(GSMOOTH(Close[0],ma[0],Slowalfa[0]));

Last edited by SFF; 02/14/13 08:47.