please help(iMAOnArray)

 

dear all friends

i realy need output of this function to use in my expert but it just returns zero to me.

How can i use this function in expert?

if i can't use it which function and how can be use instead of this one?

best regards to all