X_1:=EMA(CLOSE,2);
X_2:=EMA(X_1,2);
X_3:=EMA(X_2,2);
X_4:=EMA(X_3,2);
X_5:=EMA(X_2,5);
X_6:=EMA(X_3,13);
X_7:=(2*CLOSE+HIGH+LOW)/4;
X_8:=WMA((X_7-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,2);
X_9:=WMA(0.618*REF(X_8,1)+0.382*X_8,2);
DRAWBAND(X_5,RGB(128,0,0),X_6,RGB(0,200,0));
STICKLINE(CLOSE>=OPEN,HIGH,LOW,0,0),COLORRED;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2,0),COLORRED;
STICKLINE(CLOSE<OPEN,HIGH,LOW,0,0),COLORCYAN;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2,0),COLORCYAN;
X_10:=EMA(CLOSE,14);
吃肉线:(X_10-REF(X_10,1))/REF(X_10,1)*100,NODRAW;
X_11:=REF(EMA(CLOSE,14),1);
X_12:=(CLOSE-吃肉线)/吃肉线*100;
入场:IF(吃肉线>=0,REF(EMA(CLOSE,14),BARSLAST(CROSS(吃肉线,0))+1),DRAWNULL),COLORRED,LINETHICK3;
出逃:IF(吃肉线<0,REF(EMA(CLOSE,14),BARSLAST(CROSS(0,吃肉线))+1),DRAWNULL),COLORGREEN,LINETHICK3;
X_13:=X_5>REF(X_5,1);
X_14:=X_6>REF(X_6,1);
STICKLINE(CROSS(吃肉线,0),CLOSE,OPEN,2,0),COLORYELLOW;
STICKLINE(CROSS(0,吃肉线),CLOSE,OPEN,2,0),COLORGREEN;
DRAWICON(CROSS(X_9,X_8) AND X_8>70,HIGH*1.03,15);
DRAWTEXT(CROSS(X_9,X_8) AND X_8>70,HIGH*1.01,'洗'),COLORMAGENTA;
DRAWTEXT(CROSS(吃肉线,0),LOW,'进'),COLORYELLOW;
DRAWTEXT(CROSS(0,吃肉线),HIGH,'出'),COLORGREEN;
DRAWTEXT_FIX(1,0.005,0,0,149),COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.005,1,0,150),COLORMAGENTA;
DRAWTEXT_FIX(1,0.06,1,0,GNBLOCK),COLORYELLOW;