通达信:=EMA(C,2);
主力资金异动:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(通达信>=主力资金异动,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),
COLOR600020;{选股公式-选股指标www.gs6699.com}
STICKLINE(通达信<主力资金异动,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),
COLOR404050; DRAWKLINE(H,O,L,C);
指标公式:EMA((EMA(CLOSE,5)+EMA(CLOSE,10)+EMA(CLOSE,15)+EMA(CLOSE,24))/4,2),,COLORCYAN;
ddcc1:EMA((EMA(CLOSE,15)+EMA(CLOSE,20)+EMA(CLOSE,30)+EMA(CLOSE,45))/4,5),,COLORYELLOW;
ddcc2:EMA((EMA(CLOSE,60)+EMA(CLOSE,90)+EMA(CLOSE,120)+EMA(CLOSE,240))/4,1),,COLORLIMAGENTA;
ddcc3:IF(CROSS(指标公式,ddcc1) OR CROSS(通达信,主力资金异动),C,DRAWNULL),COLORMAGENTA,NODRAW;
ddcc4:IF(通达信>=主力资金异动,C,DRAWNULL),COLORRED,NODRAW;
ddcc5:IF(CROSS(ddcc1,指标公式) OR CROSS(主力资金异动,通达信),C,DRAWNULL),COLORLIGRAY,NODRAW;
ddcc6:IF(通达信<主力资金异动,C,DRAWNULL),COLORGREEN,NODRAW;
DRAWICON(CROSS(通达信,主力资金异动),L,1);
DRAWICON(CROSS(主力资金异动,通达信),H,2);
ddcc7: COST(95),COLORBLUE;
ddcc8:EMA(CLOSE,55),POINTDOT,LINETHICK3,COLORWHITE;
ddcc9:EMA(CLOSE,8),COLORYELLOW;