X_1:=MA(REF(HHV((CLOSE+LOW+OPEN+HIGH)/4,30),1),3);
X_2:=MA((CLOSE+LOW+OPEN+HIGH)/4,13);
X_3:=EMA((CLOSE+LOW+OPEN+HIGH)/4,21);
STICKLINE(CLOSE<X_3 AND CLOSE>OPEN,HIGH,LOW,0,0),COLORRED;
STICKLINE(CLOSE<X_3 AND CLOSE>OPEN,CLOSE,OPEN,3,1),COLORRED;
STICKLINE((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),OPEN,CLOSE,1,0),COLORRED;
STICKLINE((REF(CLOSE,1)-CLOSE)*100/REF(CLOSE,1)>=10-0.01*100/REF(CLOSE,1),OPEN,CLOSE,1,0),COLORBLUE;
STICKLINE(REF(COUNT(CLOSE<X_1,5)=5,1) AND CLOSE>X_1 AND CLOSE>OPEN,CLOSE,OPEN,1,0),COLORYELLOW;
STICKLINE(REF(COUNT(CLOSE<X_1,5)=5,1) AND CLOSE>X_1 AND CLOSE>OPEN,CLOSE,OPEN,1,0),COLORLIMAGENTA;
DRAWTEXT_FIX(1,0.98,20,1,8),COLOR666666;
X_4:=CLOSE*VOL;
X_5:=EMA((EMA(X_4,3)/EMA(VOL,3)+EMA(X_4,6)/EMA(VOL,6)+EMA(X_4,12)/EMA(VOL,12)+EMA(X_4,24)/EMA(VOL,24))/4,13);
X_6:=1.06*X_5;
X_7:=EMA(X_6-(EMA(CLOSE,3)-X_6),5);
AAK:IF(X_7<=X_6,X_7,X_6),COLORYELLOW,LINETHICK2;
X_8:=2*X_6-AAK;
AAA:IF(X_8>=X_6,X_8,X_6),COLORYELLOW,LINETHICK2;
望:IF(AAK=AAA,AAK,DRAWNULL),COLORGREEN,LINETHICK2;