macd背离选股:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(macd背离选股,3,1);{股票公式-股票指标www.gs6699.com}
D:=SMA(K,3,1);
J:=3*K-2*D;
指标公式:=REVERSE(J);
AA:=REF(MA(C,1),10)>REF(MA(C,60),10);
ggfff1:CROSS(J,指标公式) AND AA;
STICKLINE(ggfff1,0,10,3,0),COLOR0000FF;
STICKLINE(ggfff1,10,20,2,0),COLORWHITE;
STICKLINE(ggfff1,20,30,1,0),COLORYELLOW;
DRAWTEXT(ggfff1,20,''),COLORFF00FF;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),4,1)/SMA(ABS(CLOSE-LC),4,1)*100;
ggcccB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
ggcccC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
ggcccD:=BARSCOUNT(CLOSE);
ggcca1:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7) ,COLORRED,LINETHICK2;
DRAWBAND(ggcca1,RGB(255,60,0),0,RGB(0,324,324));
ggcca2:CROSS(85,RSI)*45,LINETHICK1,COLORBLUE;
DRAWTEXT(CROSS(85,RSI),30,' '),COLORWHITE;
ggcca5:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2),COLORYELLOW,LINETHICK1;
DRAWTEXT(CROSS(ggcca5,ggcca1) AND ggcca5<-10,-20,''),COLOR00CCFF;
DRAWICON(CROSS(ggcca5,ggcca1) AND ggcca5<-10 AND ggcca1>REF(ggcca1,1)OR CROSS(ggcca5,ggcca1) AND ggcca1<-35 ,-15,1);