X_1:=100*(CLOSE-MA(CLOSE,250))/MA(CLOSE,250);
X_2:=BARSLAST(CROSS(CLOSE,MA(CLOSE,250)));
X_3:=BARSLAST(CROSS(MA(CLOSE,250),CLOSE));
X_4:=IF(X_2<X_3,X_2+1,0);
X_5:=HHV(X_1,X_4);
X_6:=100*(CLOSE-REF(CLOSE,X_4))/REF(CLOSE,X_4);
X_7:=BARSLAST(CROSS(CLOSE,MA(CLOSE,20)));
X_8:=BARSLAST(CROSS(MA(CLOSE,20),CLOSE));
X_9:=IF(X_7<X_8,X_7+1,0);
VAR10:100*(CLOSE-REF(CLOSE,X_9))/REF(CLOSE,X_9),NODRAW,COLORRED,LINETHICK2;
STICKLINE(VAR10>0,0,VAR10,2,0),COLORYELLOW;
STICKLINE(CROSS(VAR10,10) AND CLOSE/REF(CLOSE,1)>1.05,0,VAR10,2,0),COLORMAGENTA;
行情发现:DRAWTEXT(CROSS(VAR10,10) AND CLOSE/REF(CLOSE,1)>1.05,VAR10+1,'发现'),COLORMAGENTA;