Great, thank you for your help.

Doesn't this code need in Zorro?

double price = iMA(NULL,0,1,0,MODE_SMA,SSAPrice,i);