DRAWGBK(CLOSE>0,RGB(0,0,0),RGB(0,50,50),0,4,0);
HJ_1:=1170930;
HJ_2:=1171008;
HJ_3:=IF(DATE>HJ_1,IF(CLOSE<80,1,0),0);
HJ_4:=IF(DATE>HJ_2,1,HJ_3);
HJ_5:=IF(HJ_4=1,0,SMA((CLOSE-REF(CLOSE,1))*VOL,3,1)/10000);
HJ_6:=EMA(HJ_5,12)-EMA(HJ_5,26);
HJ_7:=EMA(HJ_6,9);
HJ_8:=(HJ_6-HJ_7)*2;
W1:STICKLINE(HJ_8>0,HJ_8,0,3,1),COLORRED;
W2:STICKLINE(HJ_8<0,HJ_8,0,3,1),COLORCYAN;
HJ_9:=HHVBARS(HJ_8,BARSLAST(HJ_8<0)+1);
HJ_10:=CROSS(BACKSET(CROSS(0,HJ_8),REF(HJ_9,1)+2),0.5);
HJ_11:=CROSS(BACKSET(CROSS(0,HJ_8) OR (ISLASTBAR AND HJ_8>0),REF(HJ_9,1)+2),0.5);
前高:DRAWLINE(HJ_10,HJ_8,REF(HJ_10,1),REF(HJ_8,1),1),COLORGRAY;
HJ_12:=LLVBARS(HJ_8,BARSLAST(HJ_8>0)+1);{www.fxjgsw.com}
HJ_13:=CROSS(BACKSET(CROSS(HJ_8,0),REF(HJ_12,1)+2),0.5);
HJ_14:=BARSLAST(FILTERX(CROSS(0,HJ_8),BARSCOUNT(CLOSE)));
前低:DRAWLINE(HJ_13,HJ_8,REF(HJ_13,1),REF(HJ_8,1),1),COLORGRAY;
HJ_15:=IF(HJ_8<0,FILTERX(HJ_8=LLV(HJ_8,BARSLAST(HJ_8>0)),BARSCOUNT(CLOSE)),DRAWNULL);
HJ_16:=BARSLAST(HJ_15);
HJ_17:=FILTERX(HJ_8<CONST(LLV(HJ_8,HJ_14+1)),BARSCOUNT(CLOSE));
HJ_18:=BARSLAST(HJ_17);
本低:IF(HJ_14+1>=1,CONST(LLV(HJ_8,HJ_14+1)),DRAWNULL);
HJ_19:=CROSS(COUNT(CROSS(HJ_8>本低/2 AND HJ_8<0,0.5),HJ_16)=1,0.5) AND HJ_16>=0;
HJ_20:=IF(ISLASTBAR AND HJ_8>0 AND HJ_8=HHV(HJ_8,BARSLAST(HJ_8<0)),1,IF(FILTERX(HJ_11,BARSCOUNT(CLOSE)),2,DRAWNULL));
HJ_21:=HJ_20=1 OR HJ_20=2 AND HJ_8>0;
HJ_22:=FILTERX(HJ_21,BARSCOUNT(CLOSE));
本高:DRAWLINE(HJ_22,HJ_8,REF(HJ_22,1),REF(HJ_8,1),1),COLORWHITE;
HJ_23:=CONST(REF(HJ_8,BARSLAST(HJ_22)));
HJ_24:=HJ_8>HJ_23;
HJ_25:=FILTERX(REFX(BARSLAST(HJ_24),1)=1,BARSCOUNT(CLOSE));
天数:BARSLAST(HJ_25),NODRAW,COLORYELLOW;
上横线:DRAWLINE(HJ_25,HJ_23,HJ_22,HJ_23,0),DOTLINE,COLORGREEN;
下横线:DRAWLINE(HJ_17,CONST(LLV(HJ_8,HJ_14+1)),HJ_15=1,HJ_8,0),DOTLINE,COLORYELLOW;
DRAWNUMBER(HJ_15,CONST(LLV(HJ_8,HJ_14+1))*0.9,HJ_18);
DRAWNUMBER(HJ_22,上横线*1.1,天数);
HJ_26:=IF(HJ_25,BARSNEXT(HJ_22),DRAWNULL);
HJ_27:=IF(天数>0 AND 天数<=REF(HJ_26,天数),SUM(HJ_8>0,天数),DRAWNULL);
HJ_28:=REF(CLOSE,天数);
HJ_29:=(HJ_28-CLOSE)/CLOSE*100;
HJ_30:=BARSLAST(HJ_22);
HJ_31:=CROSS(COUNT(CROSS(HJ_8<本高/2 AND HJ_8>0,0.5),HJ_22)=1,0.5) AND HJ_22>=0;
STICKLINE(HJ_8>前高 AND 本高>前高 AND BARSLAST(CROSS(HJ_8<本高/2,0.5))>0 AND HJ_8>(前高+本高)/2,HJ_8,前高,1,0),COLORYELLOW;
HJ_32:=IF(HJ_8>0 AND 本高!=前高,DRAWLINE(HJ_31,(前高+本高)/2,REF(HJ_31,1),REF((前高+本高)/2,1),1),DRAWNULL);
STICKLINE(HJ_8>前高,HJ_8,前高,1,0),COLORYELLOW;
STICKLINE(HJ_31,HJ_8,0,1,0),COLORGREEN;
STICKLINE(HJ_8<0 AND HJ_8<前低 AND 前低<0,HJ_8,前低,1,0),COLORBLUE;
HJ_33:=IF(CROSS(HJ_8<0,0.5),BARSNEXT(HJ_15),DRAWNULL);
HJ_34:=BARSLAST(HJ_8>0)-1;
STICKLINE(BARSLAST(HJ_19)>=0 AND HJ_8<前低 AND HJ_8<0,HJ_8,前低,1,0),COLORGREEN;
STICKLINE(HJ_19,HJ_8,0,1,0),COLORWHITE;
STICKLINE(HJ_8>前高 AND 本高>前高 AND BARSLAST(HJ_31)>0,HJ_8,前高,1,0),COLORRED;
STICKLINE(CROSS(前高,0.01) OR CROSS(本高,0.01),HJ_8,0,0,0),COLORWHITE;
STICKLINE(CROSS(前低<0,0.01) OR CROSS(本低<0,0.01),HJ_8,0,0,0),COLORWHITE;
IF(BARSLAST(HJ_19)>=0,本低/2,DRAWNULL),DOTLINE,COLORRED;
DRAWICON(CROSS(HJ_8,0),REF(HJ_8,1),38);
DRAWICON(CROSS(0,HJ_8),REF(HJ_8,1),39);
{-----------------------------------} |