{,黄金谷编辑}
YX:=C>O;
SD:=IF(YX,C,O);
SD2:=IF(YX,O,C);
SRBP:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);
SRLS:=MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3);
STICKLINE(IF(DYNAINFO(7),DYNAINFO(7),DRAWNULL),DYNAINFO(7),DYNAINFO(7),2,-1),COLORYELLOW;
STICKLINE(IF(DYNAINFO(7)=PEAK(H,1,1),PEAK(H,1,1),DRAWNULL),PEAK(H,1,1),PEAK(H,1,1),50,0)COLORYELLOW;
STICKLINE(IF(DYNAINFO(7)=TROUGH(L,1,1),TROUGH(L,1,1),DRAWNULL),TROUGH(L,1,1),TROUGH(L,1,1),50,0),COLORWHITE;
HJZ:=REF(O,3)<PEAK(SD,1,1) AND REF(C,3)>PEAK(H,1,1) AND ((REF(C,3)-REF(C,4))/REF(C,4))>0.05 AND REF(V,3)>REF(V,4)*2 AND SRBP AND SRLS;
BACKSET1:=BACKSET(HJZ,4);
FILTER1:=FILTER(BACKSET1,3);
HJSZJ:STICKLINE(IF(FILTER1,PEAK(H,1,1),DRAWNULL),PEAK(H,1,1),PEAK(H,1,1),50,0),COLORWHITE;
STICKLINE(IF(FILTER1,PEAK(SD,1,1),DRAWNULL),OPEN,CLOSE,0.1,0),COLORYELLOW;
GF1:=DYNAINFO(7)>PEAK(H,1,1) AND DYNAINFO(7)<PEAK(H,1,1)*1.01 AND DYNAINFO(7)>PEAK(H,1,1)*0.99;
STICKLINE(IF(GF1,PEAK(H,1,1),DRAWNULL),PEAK(H,1,1),PEAK(H,1,1),50,-1),COLORRED;
GF2:=DYNAINFO(7)>PEAK(SD,1,1) AND DYNAINFO(7)<PEAK(SD,1,1)*1.01 AND DYNAINFO(7)>PEAK(SD,1,1)*0.99;
STICKLINE(IF(GF2,PEAK(SD,1,1),DRAWNULL),PEAK(SD,1,1),PEAK(SD,1,1),50,0),COLORRED;
GF3:=DYNAINFO(7)>TROUGH(2,1,1) AND DYNAINFO(7)<TROUGH(2,1,1)*1.01 AND DYNAINFO(7)>TROUGH(2,1,1)*0.99;
STICKLINE(IF(GF3,TROUGH(2,1,1),DRAWNULL),TROUGH(2,1,1),TROUGH(2,1,1),50,-1),COLORGREEN;
GF4:=DYNAINFO(7)>TROUGH(SD2,1,1) AND DYNAINFO(7)<TROUGH(SD2,1,1)*1.01 AND DYNAINFO(7)>TROUGH(SD2,1,1)*0.99;
STICKLINE(IF(GF4,TROUGH(SD2,1,1),DRAWNULL),TROUGH(SD2,1,1),TROUGH(SD2,1,1),50,0),COLORGREEN;
XG:COUNT(FILTER1,N)NODRAW;
|