{副圖指標(biāo)源碼}
GSKZ:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(GSKZ,9);
MACD:=2*(GSKZ-DEA);
GS1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);
GS2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;
GS3:=EMA(C,30)>=REF(EMA(C,30),1) AND COUNT(EMA(C,5)>EMA(C,10) AND EMA(C,10)>EMA(C,30),1)=1;
GS4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);
GS5:=GS1 AND GS2 AND GS3 AND GS4;
GS6:=GS1 AND GS2 AND GS3 AND GS4 AND ABS((GSKZ-DEA)/C)<0.018;
GS7:=GS1 AND GS2 AND GS3 AND GS4 AND MACD<0.10;
買進(jìn):GS5 OR GS6 OR GS7,COLORRED;
DRAWTEXT(買進(jìn),0.5,'↖買進(jìn)'),COLORYELLOW;
漲停家數(shù):"880006$C",COLORRED,NODRAW;
跌停家數(shù):"880006$O",COLORGREEN,NODRAW;
上漲家數(shù):INDEXADV,COLOR0080FF,NODRAW;
下跌家數(shù):INDEXDEC,COLORGREEN,NODRAW;
STICKLINE(買進(jìn), 0,2, 3, 0),COLORLIMAGENTA;
STICKLINE(買進(jìn), 0,1, 3, 0),COLORGREEN;
DRAWICON(買進(jìn),6.7,1);
DRAWSL(買進(jìn) AND C<O,3.5,0,30,0),COLORMAGENTA;公:DRAWNULL,COLORCCCCCC;眾:DRAWNULL,COLORCCCCCC;號(hào):DRAWNULL,COLORCCCCCC;股市客棧:DRAWNULL,COLORCCCCCC;
{選股指標(biāo)源碼}
STICKLINE(買進(jìn), 0,2, 3, 0),COLORLIMAGENTA;
STICKLINE(買進(jìn), 0,1, 3, 0),COLORGREEN;
DRAWICON(買進(jìn),6.7,1);
DRAWSL(買進(jìn) AND C<O,3.5,0,30,0),COLORMAGENTA;
GSKZ:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(GSKZ,9);
MACD:=2*(GSKZ-DEA);
GS1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);
GS2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;
GS3:=EMA(C,30)>=REF(EMA(C,30),1) AND COUNT(EMA(C,5)>EMA(C,10) AND EMA(C,10)>EMA(C,30),1)=1;
GS4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);
GS5:=GS1 AND GS2 AND GS3 AND GS4;
GS6:=GS1 AND GS2 AND GS3 AND GS4 AND ABS((GSKZ-DEA)/C)<0.018;
GS7:=GS1 AND GS2 AND GS3 AND GS4 AND MACD<0.10;
買進(jìn):GS5 OR GS6 OR GS7;
聯(lián)系客服