HJ_1:=REF(CLOSE,1);
HJ_2:=REF(CLOSE,2);
HJ_3:=IF(CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>=REF(CLOSE,2),1,IF(CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)<=REF(CLOSE,2),(-1),IF(CLOSE>REF(CLOSE,2) AND REF(CLOSE,2)>REF(CLOSE,1),2,IF(CLOSE<REF(CLOSE,2) AND REF(CLOSE,2)<REF(CLOSE,1),(-2),0))));
HJ_4:=IF(REF(HJ_3,1)!=0,REF(HJ_3,1),IF(REF(HJ_3,2)!=0,REF(HJ_3,2),IF(REF(HJ_3,3)!=0,REF(HJ_3,3),IF(REF(HJ_3,5)!=0,REF(HJ_3,5),IF(REF(HJ_3,6)!=0,REF(HJ_3,6),IF(REF(HJ_3,7)!=0,REF(HJ_3,7),0))))));
HJ_5:=IF(CLOSE>REF(CLOSE,1),CLOSE,REF(CLOSE,1));
HJ_6:=IF(HJ_3=(-1) OR HJ_3=(-2) AND HJ_4>0,HJ_2,HJ_5);
TOWER:IF(HJ_5>HJ_6,HJ_5,HJ_6),POINTDOT,COLORWHITE;
STICKLINE(CLOSE>=REF(CLOSE,1),CLOSE,REF(CLOSE,1),3,1),COLORRED;
STICKLINE(CLOSE<REF(CLOSE,1),CLOSE,REF(CLOSE,1),3,0),COLORGREEN;
STICKLINE(REF(CLOSE,1)>=REF(CLOSE,2) AND CLOSE<REF(CLOSE,1),REF(CLOSE,1),MAX(REF(CLOSE,2),CLOSE),3,1),COLORRED;
STICKLINE(REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE>=REF(CLOSE,1),REF(CLOSE,1),MIN(REF(CLOSE,2),CLOSE),3,0),COLORGREEN;
LC:REF(CLOSE,1),NODRAW;
LC2:REF(CLOSE,2),NODRAW;
BOLL:MA(CLOSE,20);{www.fxjgsw.com}
UB:BOLL+2*STD(CLOSE,20),COLORWHITE;
LB:BOLL-2*STD(CLOSE,20),COLOR80FFFF;
STICKLINE(HJ_3=1 OR HJ_4>=1 AND HJ_3=0,HJ_1,CLOSE,3,0),COLORRED;
STICKLINE(HJ_3=(-1) OR HJ_4<=(-1) AND HJ_3=0,HJ_1,CLOSE,3,0),COLORYELLOW;
STICKLINE(HJ_3=2,HJ_2,CLOSE,3,0),COLORRED;
STICKLINE(HJ_3=(-2),HJ_2,CLOSE,3,0),COLORFFCC66;
STICKLINE(HJ_3=(-1) OR HJ_3=(-2) AND HJ_4>0,HJ_2,HJ_1,3,0),COLORMAGENTA;
STICKLINE(HJ_3=1 OR HJ_3=2 AND HJ_4<0,HJ_2,HJ_1,3,0),COLORWHITE;
HJ_7:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)<REF(CLOSE,3) AND IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) OR (REF(CLOSE,2)<REF(CLOSE,4) AND REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7))));
HJ_8:=CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,1)>REF(CLOSE,3) AND IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) OR (REF(CLOSE,2)>REF(CLOSE,4) AND REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))));
DRAWICON(HJ_7 AND CLOSE>REF(OPEN,2),0.99*LOW,1);
DRAWICON(HJ_8 AND CLOSE<REF(CLOSE,2),HIGH*1.01,2);
总资金:ABS(OPEN-LOW)+ABS(HIGH-LOW)+ABS(HIGH-CLOSE),NODRAW;
拉升资金:IF(CLOSE>OPEN,HIGH-LOW,IF(CLOSE<OPEN,HIGH-OPEN+(CLOSE-LOW),CLOSE-LOW))*5,NODRAW,COLORRED;
打压资金:IF(CLOSE>OPEN,HIGH-CLOSE+(OPEN-LOW),IF(CLOSE<OPEN,HIGH-LOW,HIGH-CLOSE))*5,NODRAW,COLORGREEN;
HJ_9:=DATETODAY(DATE);
HJ_10:=HJ_9-REF(HJ_9,1)>WEEKDAY-REF(WEEKDAY,1) OR BARSCOUNT(CLOSE)=1;
HJ_11:=BARSLAST(HJ_10);
HJ_12:=REF(CLOSE,HJ_11+1);
HJ_13:=IF(HJ_11,REF(OPEN,HJ_11),OPEN);
HJ_14:=(HHV(HIGH,HJ_11+1)-HJ_12)/HJ_12*100;
HJ_15:=(LLV(LOW,HJ_11+1)-HJ_12)/HJ_12*100;
HJ_16:=IF(REF(HJ_10,HJ_11+1)=1,HJ_11+2,IF(REF(HJ_10,HJ_11+2)=1,HJ_11+3,IF(REF(HJ_10,HJ_11+3)=1,HJ_11+4,IF(REF(HJ_10,HJ_11+4)=1,HJ_11+5,HJ_11+6))));
HJ_17:=REF(CLOSE,HJ_16);
HJ_18:=IF(DYNAINFO(4)>0,CLOSE,DYNAINFO(3));
HJ_19:=IF(REF(HJ_10,HJ_16+1)=1,HJ_16+1,IF(REF(HJ_10,HJ_16+1)=1,HJ_16+2,IF(REF(HJ_10,HJ_16+2)=1,HJ_16+3,IF(REF(HJ_10,HJ_16+3)=1,HJ_16+4,HJ_16+5))));
HJ_20:=REF(CLOSE,HJ_19);
HJ_21:=IF(DYNAINFO(4)>0,CLOSE,DYNAINFO(3));
三周涨%:(HJ_21-HJ_20)/HJ_20*100,NODRAW;
HJ_22:=(HJ_18-HJ_17)/HJ_17*100;
上周涨%:HJ_22-(HJ_18-HJ_12)/HJ_12*100,NODRAW;
周涨%:(HJ_18-HJ_12)/HJ_12*100,NODRAW;
HJ_23:=REF(HIGH,1);
HJ_24:=REF(LOW,1);
HJ_25:=REF(CLOSE,1);
CDP:(HJ_23+HJ_24+HJ_25)/3;
{-----------------------------------} |