TJ1:=ZF!=LLV(ZF,3) AND C=LLV(C,3) AND C
XYB:=IF(C
今买2018:TJ1 AND 钝化级别>1.2 AND REF(ZF,1)-ZF>1 AND REF(ZF,2)<-8 AND CCG:=REF(今买2018,1) AND H/REF(C,1)>=1.01;
SB:=REF(今买2018,1) AND H/REF(C,1)<1.01;
STICKLINE(CG,1,0,1,0) COLORRED;
有效交易天数:=BARSCOUNT(C)+1,NODRAW;
交易次数:SUM(今买2018,有效交易天数),NODRAW;
明卖1%成功率:COUNT(CG,有效交易天数)/(COUNT(CG,有效交易天数)+COUNT(SB,有效交易天数))*100,NODRAW,COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0,0,'注:信号当日收盘价买入,次日高点卖出收益过1%即视为成功。')COLORRED;
X_1:=MAX(MAX(HIGH-LOW,ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
X_2:=(HIGH+LOW)/2+MA(X_1,2);
X_3:=(HIGH+LOW)/2-MA(X_1,2);
X_4:=REF(X_2,BARSLAST(X_2<=REF(X_2,1)));
X_5:=LLV(X_2,2*1.5);
X_6:=IF(X_5!=REF(X_5,1) AND X_4X_7:=BARSLAST(CROSS(0.5,X_2=X_6))+1;
X_8:=CROSS(COUNT(CROSS(CLOSE,X_6) OR CROSS(CLOSE,REF(X_6,2)) AND X_2>X_6,X_7),0.5);
X_9:=BARSLAST(X_8);
X_10:=BARSLAST(CROSS(HHV(X_3,X_9+1),CLOSE));
X_11:=MA(CLOSE,18);
X_12:=CLOSE>=X_11*1.004;
X_13:=X_11>=REF(X_11,1);
X_14:=X_12 AND X_13;
X_15:=IF(CLOSE
X_16:=REF(今买2019,1) AND HIGH/REF(CLOSE,1)>=1.01;
STICKLINE(X_16,1,0,1,0),COLORRED;
X_17:=(HIGH/REF(CLOSE,1)-1)*100;
X_18:=COUNT(REF(今买2019,1) AND X_17>=1.01,0);
成功率:X_18/COUNT(今买2019,0)*100,NODRAW;
DRAWTEXT_FIX(1,0.980,20,1,'★九毛八公式指标www.9m8.cn'),COLORYELLOW;