X_1:=EMA(EMA(CLOSE,9),9);
X_2:=(X_1-REF(X_1,1))/REF(X_1,1)*1000;
STICKLINE(X_2<0,X_2,0,3,0),COLORGREEN;
X_3:=CROSS(X_2,0);
STICKLINE(X_2>REF(X_2,1) AND X_2>0,X_2,0,3,0),COLORRED;
机构控盘:IF(X_2>REF(X_2,1) AND X_2>0,X_2,0),NODRAW,COLORRED;
X_4:=100*WINNER(CLOSE*0.95);
STICKLINE(X_4>50 AND COST(85)<CLOSE AND X_2>0,X_2,0,3,0),COLORMAGENTA;
机构高度控盘:IF(X_4>50 AND COST(85)<CLOSE AND X_2>0,X_2,0),NODRAW,COLORMAGENTA;
STICKLINE(X_2<REF(X_2,1) AND X_2>0,X_2,0,3,0),NODRAW,COLORD9D919;
X_5:=IF(X_2<REF(X_2,1) AND X_2>0,X_2,0);
机构撤退:IF(X_2<0,X_2,0),NODRAW,COLORGREEN;
机构试盘:IF(X_3,5,0),NODRAW,COLORYELLOW;
STICKLINE(机构试盘>0,0,5,3,0),COLORYELLOW;
散户活跃:机构控盘=0 AND 机构撤退=0 AND 机构高度控盘=0,NODRAW;
STICKLINE(散户活跃=1,(-0.3),0.3,3,0),COLORLICYAN;