HGW1:=REF(CLOSE,1);
HGW2:=SMA(MAX(CLOSE-HGW1,0),6,1)/SMA(ABS(CLOSE-HGW1),6,1)*100;
HGW3:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
HGW4:=CROSS(85,HGW2)*30,COLOR00FF00,LINETHICK2;
HGW5:=SMA(MAX(CLOSE-HGW1,0),7,1)/SMA(ABS(CLOSE-HGW1),7,1)*100;
HGW6:=SMA(MAX(CLOSE-HGW1,0),13,1)/SMA(ABS(CLOSE-HGW1),13,1)*100;
HGW7:=BARSCOUNT(CLOSE);
HGW8:=CROSS(HGW2,25);
HGW9:=WINNER(C)*100;
DRAWTEXT(CROSS(85,HGW2),65,'卖出'),COLOR00FF00;
STICKLINE(HGW4,0,20,3,0),COLOR00FF00;
主力吸筹:(HGW5<20 AND HGW6<25 AND HGW7>50 AND HGW3<70)*30,LINETHICK2,COLORWHITE;
DRAWTEXT(HGW8,-50,'银底'),COLOR0000FF;
STICKLINE(HGW8,0,-20,3,0),COLOR0000FF;
DRAWTEXT(主力吸筹=30,40,'吸筹'),COLORWHITE;
主:EMA((CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK2,COLOR0000FF;
散:EMA((CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORGREEN;
HGW16:=CROSS(主,散) AND 主<-10;
HGW18:=FILTER(COUNT(HGW8 OR HGW16,3)>=2,3);
二十日获利最高:HHV(HGW9,20),LINETHICK2,COLORYELLOW;
STICKLINE(HGW18,0,50,4,1),COLOR0000FF;
DRAWTEXT(HGW18,60,'金底'),COLORYELLOW;
STICKLINE(HGW16,0,20,3,0),COLORFF00FF;
DRAWTEXT(HGW16,40,'铁底'),COLORFF00FF;