Can anyone help me convert the Metastock code below to Amibroker
Metastock Code
prd1:=Input("First period",1,300,21);
prd2:=Input("Second period",1,300,8);
prdCrs:=Input("Crossover",1,300,13);
prd2:=prd2*2-1;
Src:=Mov((C-Mov(C,30,E))/Ref(Mov(C,30,E),-30),prd1,E);
SIROC:=100-100/(1+If(Mov(If(Src-Ref(Src,-1)<0,-(Src-Ref(Src,-1)),0),prd2,E)=0,
1000000,Mov(If(Src-Ref(Src,-1)>0,Src-Ref(Src,-1),0),prd2,E)/Mov(If(Src-Ref(Src,-1)<0,-(Src-Ref(Src,-1)),.000000001),prd2,E)));
DTrigger:=Mov(SIROC,prdCrs,E);
SIROC;
DTrigger