VAR1:=EMA(WINNER(CLOSE)*70,3);
VAR2:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
VAR8:=VAR2/(VAR1+VAR2)*100;
VAR9:=VAR1/(VAR1+VAR2)*100+1;
散筹:INTPART(VAR8),COLORGREEN,LINETHICK1;
散均:EMA(散筹,13),COLORCYAN,LINETHICK2;
STICKLINE(散筹>散均,散均,散筹,0.2,0),COLOR00FF00;
主筹:INTPART(VAR9),COLORYELLOW,LINETHICK1;
主均:EMA(VAR1,13),COLORMAGENTA,LINETHICK2;
STICKLINE(主筹>主均,主均,主筹,0.2,0),COLOR0000FF;
买入:crOSS(主筹,主均),NODRAW,COLORRED;
卖出:CROSS(散筹,散均),NODRAW,COLORGREEN;
DRAWTEXT(卖出,散筹*1.098,'卖出'),COLORGREEN,LINETHICK5;
DRAWICON(卖出,散筹*1.06,15);
买入2:CROSS(散均,散筹) AND 主筹>REF(主筹,1),NODRAW,COLORYELLOW;
DRAWICON(买入2 AND 买入,主筹*0.92,9),COLORYELLOW;
DRAWTEXT(买入 AND 买入2,主均*0.98,'买入'),COLORRED,LINETHICK5;