XYZ_1:=MAX(MAX(HIGH-LOW,ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
XYZ_2:=(HIGH+LOW)/2+MA(XYZ_1,2);
XYZ_3:=(HIGH+LOW)/2-MA(XYZ_1,2);
XYZ_4:=REF(XYZ_2,BARSLAST(XYZ_2<=REF(XYZ_2,1)));
XYZ_5:=LLV(XYZ_2,2*1.5);
XYZ_6:=IF(XYZ_5!=REF(XYZ_5,1) AND XYZ_4<REF(XYZ_4,1),XYZ_4,IF(XYZ_4=XYZ_5,XYZ_4,XYZ_5));
XYZ_7:=BARSLAST(CROSS(0.5,XYZ_2=XYZ_6))+1;
XYZ_8:=CROSS(COUNT(CROSS(CLOSE,XYZ_6) OR CROSS(CLOSE,REF(XYZ_6,2)) AND XYZ_2>XYZ_6,XYZ_7),0.5);
XYZ_9:=BARSLAST(XYZ_8);
XYZ_10:=BARSLAST(CROSS(HHV(XYZ_3,XYZ_9+1),CLOSE));
XYZ_11:=MA(CLOSE,18);
XYZ_12:=CLOSE>=XYZ_11*1.004;
XYZ_13:=XYZ_11>=REF(XYZ_11,1);
XYZ_14:=XYZ_12 AND XYZ_13;
XYZ_15:=IF(CLOSE<OPEN,(CLOSE-LOW)/(HIGH-LOW),0);
今买明卖2023:CROSS(XYZ_9,XYZ_10) AND CLOSE/REF(LLV(LOW,3),1)<1 AND CLOSE<OPEN AND CLOSE!=LOW AND XYZ_14 AND XYZ_15>0.03 AND XYZ_15<0.3,COLOR00FF00;
XYZ_16:=REF(今买明卖2023,1) AND HIGH/REF(CLOSE,1)>=1.01;
STICKLINE(XYZ_16,1,0,1,0),COLORLIMAGENTA;
XYZ_17:=(HIGH/REF(CLOSE,1)-1)*100;
XYZ_18:=COUNT(REF(今买明卖2023,1) AND XYZ_17>=1.01,660);
成功率:XYZ_18/COUNT(今买明卖2023,0)*100,NODRAW;