X_1:=(CLOSE-EMA(CLOSE,5))/EMA(CLOSE,5)*100;
X_2:=(CLOSE-EMA(CLOSE,10))/EMA(CLOSE,10)*100;
X_3:=(CLOSE-EMA(CLOSE,20))/EMA(CLOSE,20)*100;
X_4:=(CLOSE-EMA(CLOSE,60))/EMA(CLOSE,60)*100;
X_5:=(CLOSE-EMA(CLOSE,120))/EMA(CLOSE,120)*100;
X_6:=X_1>1 AND X_2>2 AND X_3>3 AND X_4>4;
X_7:=X_1>2 AND X_2>4 AND X_3>6 AND X_4>8;
X_8:=X_1>3 AND X_2>5 AND X_3>7 AND X_4>9;
X_9:=X_1>4 AND X_2>6 AND X_3>8 AND X_4>10 AND X_5>12;
X_10:=BArslASTCOUNT(X_7)=1 AND crOSS(CLOSE,EMA(CLOSE,50)*1.19) AND HIGH/CLOSE<1.05;
小鱼:BARSLASTCOUNT(X_6),NODRAW,COLORWHITE;
红鱼:BARSLASTCOUNT(X_7),NODRAW,COLORRED;
紫鱼:BARSLASTCOUNT(X_8),NODRAW,COLORMAGENTA;
黄鱼:BARSLASTCOUNT(X_9),NODRAW,COLORYELLOW;
DRAWBAND(0,RGB(0,235,235),0,RGB(0,0,0));
STICKLINE(X_6,-小鱼,小鱼,(-1),(-1)),COLORWHITE;
STICKLINE(X_7,-红鱼,红鱼,(-1),0),COLORRED;
STICKLINE(X_8,-紫鱼,紫鱼,(-1),0),COLORMAGENTA;
STICKLINE(X_8,-黄鱼,黄鱼,(-1),0),COLOR00AAAA;
STICKLINE(X_8,-黄鱼,黄鱼,1,0),COLORYELLOW;
STICKLINE(X_10,小鱼+1,小鱼+2,(-1),0),COLOR00AA00;
STICKLINE(X_10,小鱼+1,小鱼+2,1,0),COLORGREEN;