ma1:=ma(c,20);角度:=atan((ma1/ref(ma1,5)-1)*100)*180/3.1416;a :=ma(close,26);up:=a + 2*std(close,26);lower:=a - 2*std(close,26);w1:=c=hhv(c,20); w2:=barslast(w1); w3:=if(w2>0,ref(c,w2),ref(c,w2)); w4:=cross(c,ref(w3,1)); xg:角度>15 and w4 and count(w4,5)=1 and c/ref(c,1)<1.03 and not(o>c and c>ref(c,1)); 20210311