X_1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_2:=IF(CLOSE>OPEN,X_1*(HIGH-LOW),IF(CLOSE<OPEN,X_1*(HIGH-OPEN+(CLOSE-LOW)),VOL/2));
X_3:=IF(CLOSE>OPEN,0-X_1*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,0-X_1*(HIGH-LOW),0-VOL/2));
X_4:=(SUM(X_2,30)+SUM(X_3,30))/10;
X_5:=X_4>0 AND REF(X_4,1)<X_4;
上攻周期:COUNT(X_5,5),LINESTICK,COLORWHITE;
X_6:=上攻周期<1;
X_7:=FILTER(COUNT(X_6,5)>3 AND NOT(X_6),10);
DRAWICON(X_7,2,1);
DRAWBAND(上攻周期,RGB(255,120,120),3,RGB(0,0,0));
DRAWBAND(X_6,RGB(0,0,255),0.5,RGB(0,0,0));
STICKLINE(COUNT(上攻周期>3,5)>=3 AND X_5,0,上攻周期,1.5,0),COLORRED;
XG:COUNT(COUNT(上攻周期>3,5)>=3 AND X_5,20)>4;