Metastock to AFL Amibroker

On Metastock Explorer:

Yield6months = ((C / Ref(C, -26))-1)*100
Volatility = Mov(ATR(1),20,S)/Mov(C,20,S)100
Preço = C
Volume = Mov(V
C,10,S)

How can translate this to AFL?

Please use code tags when inserting code.
Important read:


Yield6months = ROC(C, 26);
Volatility = MA(ATR(1),20) / MA(C,20) *100;
Preco = C;
Volume = MA(V*C,10);