通达信涨跌均线主图源码
{M1 2.00 8.00 5.00 M2 5.00 20.00 10.00
M3 11.00 50.00 20.00 M4 30.00 120.00 60.00}
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
IF(MA1 200,C,DRAWNULL),COLORRED,LINETHICK1;
IF(MA2 200,C,DRAWNULL),COLORRED,LINETHICK1;
K线颜色说明:IF(MA1 200,C,DRAWNULL),COLORYELLOW,LINETHICK1;
红色涨停:IF(MA1 200,C,DRAWNULL),COLORRED,LINETHICK1;
绿色跌停:IF(MA1 200,C,DRAWNULL),COLORGREEN,LINETHICK1;
黄色跌5%以上:IF(MA1 200,C,DRAWNULL),COLORYELLOW,LINETHICK1;
粉红色涨5%以上:IF(MA1 200,C,DRAWNULL),COLORMAGENTA,LINETHICK1;
看看颜色就知道:IF(MA1 200,C,DRAWNULL)COLORWHITE,LINETHICK1;
这个股的活跃性:IF(MA1 200,C,DRAWNULL)COLORWHITE,LINETHICK1;
DRAWICON(CROSS(C,MA1),L*0.988,1);
DRAWICON(CROSS(MA1,C),H*1.012,2);
STICKLINE(C REF(C,1)*1.099,C,O,2.7,0)COLORRED,LINETHICK2;
STICKLINE(C REF(C,1)*1.091 AND C REF(C,1)*1.099,C,O,2.7,0)COLORLIRED,LINETHICK2;
STICKLINE(C REF(C,1)*0.901,C,O,2.7,0)COLORGREEN,LINETHICK2;
STICKLINE(C REF(C,1)*1.049 AND C REF(C,1)*1.09,C,O,2.7,0)COLORMAGENTA,LINETHICK2;
STICKLINE(C REF(C,1)*0.95 AND C REF(C,1)*0.901,C,O,2.7,0)COLORYELLOW,LINETHICK2;