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),COLORWHITE;
XG:COUNT(COUNT(上攻周期>3,5)>=3 AND X_5,20)>4;