請高手們教教我如何把此句換成mtd code

 
要求如題 ma((h+ref(l,1))/2,3); ma((h+ref(h,1))/2,3); Var1:=((h+l+c)/3)*2-l; ma(Var1,3); 請高手們教教小弟...謝謝
原因: