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;
X_6:=上攻周期<1;
X_7:=FILTER(COUNT(X_6,5)>3 AND NOT(X_6),10);
红箭头:X_7;