LC:=REF(CLOSE,1);{炒股公式-炒股指标www.gs6699.com}
macd背离指标:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
选股公式:=CROSS(85,macd背离指标)*30,COLOR00FF00,LINETHICK2;
DRAWTEXT(CROSS(85,macd背离指标),20,''),COLOR00FF00;
STICKLINE(选股公式,0,20,3,0),COLOR00FF00;
VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
VARD:=BARSCOUNT(CLOSE);
vvss2:(VARB< 20 AND VARC< 25 AND VARD> 50 AND AR<70)*30,LINETHICK2,COLOR0078FF;
BT1:=CROSS(macd背离指标,25);
DRAWTEXT(BT1,-80,'底'),COLOR0000FF;
STICKLINE(BT1,-100,-80,3,0),COLOR0000FF;
vvss3:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK1,COLOR0000FF;
vvss4:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORC87800;
vvss5:=CROSS(vvss3,vvss4) AND vvss3<-10;
DRAWICON(CROSS(macd背离指标,25),vvss3,26);
DRAWICON(CROSS(vvss3,vvss4) AND vvss3<-10,vvss3,23);
BT:=FILTER(COUNT(BT1 OR vvss5,3)>=2,3);
STICKLINE(BT,0,50,4,1),COLOR0000FF;
DRAWTEXT(BT,50,''),COLOR0000FF;
STICKLINE(vvss5,0,20,3,0),COLORFF00FF;
DRAWTEXT(vvss5,20,''),COLORFF00FF;