X_2:=233;
X_3:=500;
X_4:=MA(CLOSE,X_1);
X_5:=MA(CLOSE,X_2);
X_6:=MA(CLOSE,X_3);
X_7:=BARSLAST(CROSS(X_4,X_5));
X_8:=BARSLAST(CROSS(X_4,X_6));
X_9:=BARSLAST(CROSS(X_5,X_6));
X_10:=X_7>=X_8 AND X_8>X_9;
X_11:=COUNT(CROSS(X_4,X_5),X_7+1)=1 AND COUNT(CROSS(X_4,X_6),X_7+1)=1 AND CROSS(X_5,X_6) AND X_4>X_5 AND X_5>X_6;
长线买点:X_10 AND X_11,NODRAW,COLORRED;
X_12:=COUNT(长线买点,BARSLAST(长线买点)+1)=1 AND COUNT(CROSS(X_6,X_4),BARSLAST(长线买点)+1)=0;
回踩:LOW<=X_6 AND CLOSE>X_6 AND X_12 AND BARSLAST(长线买点)>0,NODRAW,COLORWHITE;
X_13:=COUNT(长线买点,BARSLAST(长线买点)+1)=1 AND CROSS(X_6,X_4) AND COUNT(CROSS(X_6,X_4),BARSLAST(长线买点)+1)=1;
最后卖点:X_13>0,NODRAW,COLORGREEN;
长线区间:COUNT(长线买点,BARSLAST(长线买点)+1)=1 AND COUNT(最后卖点,BARSLAST(长线买点)+1)=0,NODRAW,COLOR696960;
STICKLINE(长线区间>0,10,90,4,0),COLOR696969;
STICKLINE(回踩>0,0,100,4,0),COLORWHITE;
STICKLINE(长线买点>0,0,100,4,0),COLORRED;
STICKLINE(最后卖点>0,0,100,4,0),COLORGREEN;