X_1:=WINNER(CLOSE/1.1)*100;
X_2:=WINNER(CLOSE/1.2)*100;
X_3:=WINNER(CLOSE/1.3)*100;
X_4:=(1-WINNER(CLOSE/0.9))*100;
X_5:=(1-WINNER(CLOSE/0.8))*100;
X_6:=(1-WINNER(CLOSE/0.7))*100;
X_7:=(WINNER(CLOSE)-WINNER(CLOSE/1.1))*100;
X_8:=(WINNER(CLOSE)-WINNER(CLOSE/1.2))*100;
X_9:=(WINNER(CLOSE)-WINNER(CLOSE/1.3))*100;
X_10:=(WINNER(CLOSE/0.9)-WINNER(CLOSE))*100;
X_11:=(WINNER(CLOSE/0.8)-WINNER(CLOSE))*100;
X_12:=(WINNER(CLOSE/0.7)-WINNER(CLOSE))*100;
STICKLINE(X_12>=X_11 AND X_11=X_10,0,X_2,2,0),COLORRED;
STICKLINE(X_9>50 AND X_8< 50 AND X_7< 50,X_2,X_1,2,0),COLORGREEN;
STICKLINE(X_4>=0 AND X_5>=0 AND X_6>=0,X_2,0,0.1,0),COLORFF8080;
吸筹:X_4>=0 AND X_5>=0 AND X_6>=0,NODRAW,COLORFF8080;
DRAWICON(X_4=0 AND X_5=0 AND X_6=0 AND X_12>=X_11 AND X_11=X_10 AND X_10< 10,X_3,23);
获利筹码:EMA(WINNER(CLOSE)*70,5),NODRAW,COLORRED;
亏损筹码:EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,5),NODRAW,COLORF0FF00;
主力筹码:EMA(WINNER(CLOSE)*70,10),NODRAW,COLORWHITE;
散户筹码:EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,10),NODRAW,COLORGREEN;
IF(获利筹码>亏损筹码 AND 主力筹码>散户筹码,CONST(获利筹码),DRAWNULL),COLORWHITE,LINETHICK2;
DRAWTEXT_FIX(1,0,0.12,0,4),COLORYELLOW;