GSPT1:=REF(CLOSE,1);
GSPT2:=SMA(MAX(CLOSE-GSPT1,0),6,1)/SMA(ABS(CLOSE-GSPT1),6,1)*100;
GSPT3:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
GSPT4:=CROSS(85,GSPT2)*30,COLOR00FF00,LINETHICK2;
GSPT5:=SMA(MAX(CLOSE-GSPT1,0),7,1)/SMA(ABS(CLOSE-GSPT1),7,1)*100;
GSPT6:=SMA(MAX(CLOSE-GSPT1,0),13,1)/SMA(ABS(CLOSE-GSPT1),13,1)*100;
GSPT7:=BARSCOUNT(CLOSE);GSPT8:=CROSS(GSPT2,25);
GSPT9:=WINNER(C)*100;DRAWTEXT(CROSS(85,GSPT2),65,'卖出'),COLOR00FF00;
STICKLINE(GSPT4,0,20,3,0),COLOR00FF00;
主力吸筹:(GSPT5<20 AND GSPT6<25 AND GSPT7>50 AND GSPT3<70)*30,LINETHICK2,COLORWHITE;
DRAWTEXT(GSPT8,-50,'银底'),COLOR0000FF;STICKLINE(GSPT8,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;
GSPT16:=CROSS(主,散) AND 主<-10;
GSPT18:=FILTER(COUNT(GSPT8 OR GSPT16,3)>=2,3);
二十日获利最高:HHV(GSPT9,20),LINETHICK2,COLORYELLOW;
STICKLINE(GSPT18,0,50,4,1),COLOR0000FF;
DRAWTEXT(GSPT18,60,'金底'),COLORYELLOW;
STICKLINE(GSPT16,0,20,3,0),COLORFF00FF;DRAWTEXT(GSPT16,40,'铁底'),COLORFF00FF;