X_1:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
X_2:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
X_3:=X_1+100;
X_4:=X_2+100;
X_5:=BETWEEN((CLOSE-REF(CLOSE,27))/REF(CLOSE,27),(-0.37),(-0.17));
X_6:=BETWEEN((CLOSE-REF(CLOSE,60))/REF(CLOSE,60),(-0.4),(-0.2));
参考底部:CLOSE>OPEN AND X_4< 20 AND crOSS(X_3,X_4) AND (X_5 OR X_6),NODRAW,COLORRED;
STICKLINE(参考底部,0,0.5,2.2,0),COLORRED;
波段底部:CLOSE>OPEN AND vol>REF(VOL,1) AND X_4< 20 AND CROSS(X_3,X_4) AND (X_5 OR X_6),NODRAW,COLORYELLOW;
STICKLINE(波段底部,0,1,1.3,0),COLORYELLOW;