MA5:MA(C,5),COLORYELLOW; MA10:=MA(C,10); MA30:MA(C,30),COLORGREEN; IF(MA10>MA30,MA10,MA30),COLORRED;