趋势:=MA(MA(L,25),25)-(MA(MA(H,25),25)-MA(MA(L,25),25))*1;
VAR23:=100*MA(MA((C-REF(C,1)),6),6)/MA(MA(ABS((C-REF(C,1))),6),6);
回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));
XG:=趋势>HIGH AND 回调买 AND L<=趋势;
TT1:=BARSLAST(XG);
{台阶提升}
TT2:=BARSLASTS(XG,2);
台阶提升:=REF(H,TT1)>REF(H,TT2) AND REF(L,TT1)>REF(L,TT2) AND TT2>TT1+13;
ZT:=(C-REF(C,1))/REF(C,1)>0.095 AND C=H;
XG1:=CROSS(C,REF(H,TT1)) AND COUNT(ZT,15)>0;
测试1:XG1 AND FILTER(XG1,5);{主板89.65%,6.41%;去沪港通,90.21%,8.93%}
测试2:=XG1 AND FILTER(XG1,5) AND REF(ZT,1)<1{主板91.44%,5.61%;去沪港通90.93%,7.73%};