VAR1:=MAX(MA(CLOSE,5),MAX(MA(CLOSE,10),MA(CLOSE,20)));
VAR2:=MIN(MA(CLOSE,5),MIN(MA(CLOSE,10),MA(CLOSE,20)));
VAR3:=(VAR1/VAR2-1)*100;
VAR4:=(MAX(MA(CLOSE,5),MA(CLOSE,10))/MIN(MA(CLOSE,5),MA(CLOSE,10))-1)*100;
VAR5:=(MAX(MA(CLOSE,10),MA(CLOSE,20))/MIN(MA(CLOSE,10),MA(CLOSE,20))-1)*100;
VAR6:=(EMA(CLOSE,5)-LOW)/LOW*100;
VAR7:=crOSS(10,VAR6);
VAR8:=BArslAST(VAR7);
VAR9:=REF(HIGH,VAR8);
VAR10:=REF(MAX(CLOSE,OPEN),VAR8);
VAR11:=REF(MIN(CLOSE,OPEN),VAR8);
VAR12:=REF(LOW,VAR8);
VAR13:=BETWEEN(VAR8,1,5);
VAR14:=VAR13 AND CLOSE>OPEN AND CLOSE>VAR10 AND MA(CLOSE,5)<MA(CLOSE,10) AND MA(CLOSE,10)<MA(CLOSE,20) AND NOT(CROSS(MA(CLOSE,20),MA(CLOSE,10)));
VAR15:=VAR14 AND COUNT(VAR14,VAR8)=1;
VAR16:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
洗盘结束:FILTERX(VAR6>=10,BARSLAST(VAR6>=10=0)),NODRAW,COLORLIGREEN;
STICKLINE(洗盘结束,0,0.328,(-1),0),COLORLIGREEN;
准备:VAR7,NODRAW,COLORLIRED;
STICKLINE(VAR7,0,0.618,(-1),0),COLORLIRED;
开干:VAR15,NODRAW,COLORRED;
STICKLINE(VAR15,0,1,(-1),0),COLORRED;
DRAWTEXT(洗盘结束,0.3,'准备'),COLORWHITE;
DRAWTEXT(VAR7,0.5,'洗盘结束'),COLORWHITE;
DRAWTEXT(VAR15,0.8,'坚决干'),COLORWHITE;