Help Needed to convert a metastock code to Mq4

 

I'm seeking for a help to convert the following 3 lines of MetaStock Code to MQ4 script

BB:=Mov( (H-L),15,S);

SS:=StochMomentum(5,3,3)< LLV(StochMomentum(5,3,3), 15);

If(Ref(SS, -1) AND C-O>BB,1, 0)