[引用原文已无法访问]
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,30);
五日均线升:IF((MA1>=REF(MA1,1)),MA1,DRAWNULL) COLORRED;
五日均线跌:IF((MA1<=REF(MA1,1)),MA1,DRAWNULL) COLORGREEN;
三十日均线升:IF((MA2>=REF(MA2,1)),MA2,DRAWNULL) COLORRED;
三十日均线跌:IF((MA2<=REF(MA2,1)),MA2,DRAWNULL) COLORGREEN;
函数有限我只能写成这样了,有高手有更好的方法可以交流下