VAR1:=(EMA(CLOSE,3)-EMA(CLOSE,7));
VAR2:=EMA(VAR1,3);
VAR3:=2*(VAR1-VAR2);
VAR4:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))-0.5;
VAR5:=EMA(VAR4,3);
VAR6:=EMA(VAR5,3);
VAR7:=3*VAR5-2*VAR6;
VAR8:=REF(COUNT(VAR1>0 AND VAR3<0 AND VAR3<REF(VAR3,1),4)=4,1) AND VAR3>REF(VAR3,1);
VAR16:=REF(COUNT(VAR7<REF(VAR7,1),5)>=3,1) AND REF(VAR7,1)<-0.4 AND VAR7>REF(VAR7,1);
VAR19:=REF(crOSS(0,VAR3),3) AND COUNT(VAR1>0 AND VAR3<REF(VAR3,1),4)=4;
DRAWBAND(VAR1,RGB(200,50,55),VAR2,RGB(50,100,10));
STICKLINE(VAR8,VAR3*1.2,0,2.8,0),COLORRED;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3>0,0,VAR3,1.8,0),COLOR000055;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3>0,0,VAR3,1.1,0),COLOR000099;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3>0,0,VAR3,0.6,0),COLOR0000BB;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3>0,0,VAR3,1.8,0),COLOR888888;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3>0,0,VAR3,1.1,0),COLORBBBBBB;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3>0,0,VAR3,0.6,0),COLORDDDDDD;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3<0,0,VAR3,1.8,0),COLOR3377AA;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3<0,0,VAR3,1.1,0),COLOR3388BB;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3<0,0,VAR3,0.6,0),COLOR4499CC;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3<0,0,VAR3,1.8,0),COLORFF3300;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3<0,0,VAR3,1.1,0),COLORFF5500;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3<0,0,VAR3,0.6,0),COLORFF7700;
STICKLINE(VAR7<-0.5,0,0.15,1.8,0),COLORFF00FF;
DRAWICON(FILTER(VAR16,3) AND VAR3>REF(VAR3,1) AND VAR3>0,VAR3*2.08,11);
DRAWICON(VAR19,0.25,9);
DRAWTEXT_FIX(C=C,0,0.02,0,'蓝柱离场,红柱全仓,棕柱低吸,白柱风险显现 '),COLORGREEN;