HGW1:=REF(HHV(HIGH,150),3);
HGW2:=REFDATE(REFDATE(HGW1,DATE),DATE);
HGW3:=HGW2=H AND ((C-L)<(O-C) OR (O-L)<(C-O));
HGW4:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
HGW5:=(CLOSE/REF(CLOSE,1)-1)*100;
HGW6:=IF(BETWEEN(HGW4<20,0,5) AND L<=REF(C,HGW4<20)AND HGW5<=-5,20,0);
HGW7:=IF(C>O AND REF(HGW6,1)=20 AND REF(HGW4,1)<20,60,0);
HGW8:=SMA(ABS(L-REF(L,1)),13,1)/SMA(MAX(L-REF(L,1),0),13,1)*100;
HGW9:=EMA(IF(CLOSE*1.2,HGW8*13,HGW8/13),13);
HGW10:=IF(LLV(LOW,56),1,0);
HGW11:=EMA(IF(LOW<=LLV(L,34),(HGW9+HHV(HGW9,34)*2)/2,0),3)/618*HGW10;
HGW12:=HGW11>REF(HGW11,1);
HGW13:=REFDATE(REF(LLV(L,100),3),DATE);
HGW14:=(HGW12 AND L=HGW13)>REF(HGW12 AND L=HGW13,1);
HGW15:=HGW14>REF(HGW14,1);
HGW16:=REFDATE(REF(LLV(L,90),3),DATE);
HGW17:=(HGW16=L AND ((C-L)>(0-C) OR (O-L)>(C-O)));
HGW18:=EMA(CLOSE,12)-EMA(CLOSE,26);
HGW19:=LLV(((HGW18-EMA(HGW18,9))*2),50)=((HGW18-EMA(HGW18,9))*2);
HGW20:=HGW19 AND FILTERX(HGW19,20);
HGW21:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
HGW22:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
HGW23:=REF(HGW22,2)<REF(HGW22,1) AND HGW22<REF(HGW22,1);
HGW24:=COUNT(CROSS(HGW22,HGW21),7)>0 AND HGW23;
HGW25:=HGW24 AND COUNT(HGW24,5)=1;
HGW26:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
HGW27:=SMA(SMA(HGW26,3,1),3,1);
HGW28:=REVERSE((3*SMA(HGW26,3,1)-2*HGW27));
HGW58:=REF(MA(CLOSE,1),10)>REF(MA(CLOSE,60),10);
HGW59:=(CROSS((3*SMA(HGW26,3,1)-2*HGW27),HGW28) AND HGW58);
STICKLINE(HGW3,2.1,0,2,0),COLORGREEN;
DRAWTEXT(HGW3,1.9,'---逃顶'),COLORGREEN;
逃顶:0,COLORGREEN,LINETHICK1;
STICKLINE(HGW7,1.7,0,2,0),COLORRED;
红柱:0,COLORRED,LINETHICK1;
STICKLINE(FILTER(HGW15>=1,5),1.4,0,2,0),COLORYELLOW;
起爆:0,COLORYELLOW,LINETHICK1;
STICKLINE(FILTER(HGW17>=1,5),1.1,0,2,0),COLORMAGENTA;
谷底:0,COLORMAGENTA,LINETHICK1;
STICKLINE(FILTER(HGW20>=1,5),0.8,0,2,0),COLORWHITE;
买点:0,COLORWHITE,LINETHICK1;
DRAWTEXT_FIX(C>O,0,0.2,0,'HGW.COM'),COLOR333333;
STICKLINE(FILTER(HGW25>=1,5),0.5,0,2,0),COLORLIGREEN;
龙头:0,COLORLIGREEN,LINETHICK1;
STICKLINE(FILTER(HGW59>=1,5),0.2,0,2,0),COLORDBDB70;
庄显:0,COLORDBDB70,LINETHICK1;