ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
SHZB:=SHCM/(ZLCM+SHCM)*100;
ZCZB:=ZLCM/(ZLCM+SHCM)*100+1;
散筹:INTPART(SHZB),COLORGREEN,LINETHICK1;
散均:EMA(散筹,13),COLORCYAN,LINETHICK2;
STICKLINE(散筹>散均,散均,散筹,0.2,0),COLOR00FF00;
主筹:INTPART(ZCZB),COLORYELLOW,LINETHICK1;
主均:EMA(ZLCM,13),COLORMAGENTA,LINETHICK2;
STICKLINE(主筹>主均,主均,主筹,0.2,0),COLOR0000FF;
买入:CROSS(主筹,主均),NODRAW,COLORRED;
DRAWTEXT(买入,主均*0.98,'买入'),COLORRED,LINETHICK5;
卖出: CROSS(散筹,散均),NODRAW,COLORGREEN;
DRAWTEXT(卖出,散筹*1.098,'卖出'),COLORGREEN,LINETHICK5;
DRAWICON(买入,主筹*0.92,5);
DRAWICON(卖出,散筹*1.06,15);
买入2:CROSS(散均,散筹) AND 主筹>REF(主筹,1),NODRAW,COLORYELLOW;
DRAWICON(买入2,主筹*0.92,9),COLORYELLOW;
买入选股
买入:CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42));