通达信30日均线变色选股源码

30日均线变色选股源码

MA5:MA(C,5),COLORYELLOW;

MA10:=MA(C,10);

MA30:MA(C,30)COLORGREEN LINETHICK2;

IF(MA10>MA30,MA10,MA30),COLORMAGENTA;

上面是公式源码,下面是选股源码

MA10:=MA(C,10);

MA30:=MA(C,30)COLORGREEN LINETHICK2;

变色:IF((CROSS(MA10,MA30)),10,0),COLORRED;