CCI主升与抄底 通达信副图指标 贴图 无未来
CCI主升与抄底 通达信副图指标 贴图 无未来
共有三个指标: CCI抄底、CCI主升、MACD面积背离。
均无未来函数,不加密。可选股。
CCI抄底
{名都改编系统指标}
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
STICKLINE(CCI<-200,CCI,-200,2,0),COLORRED;
-200,DOTLINE;
XG:CROSS(CCI,-200),NODRAW,COLORRED;
CCI主升
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CC1:(TYP-MA(TYP,25))/(0.015*AVEDEV(TYP,25)),COLORSTICK;
主升:CCI>0,COLORRED,NODRAW;
STICKLINE(CCI>0,0,CCI,2,0),COLORRED;
弱转强:CROSS(CCI,-200) AND CCI>REF(CCI,1),COLORLIRED,NODRAW;
STICKLINE(CROSS(CCI,-200) AND CCI>REF(CCI,1),CCI,0,2,0),COLORLIRED;
强转弱:CROSS(200,CCI) AND CCI<REF(CCI,1),COLOR00CA00,NODRAW;
STICKLINE(CROSS(200,CCI) AND CCI<REF(CCI,1),0,CCI,2,0),COLOR00CA00;
生命CCI线:(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84)),COLORYELLOW;
生命线:100.00,COLORRED;
底部线:-100.00,COLORLIGREEN;
警戒线:300.00,COLORWHITE;
DRAWTEXT(CROSS(生命CCI线,底部线),底部线,'主升浪'),COLORRED;
DRAWTEXT(CROSS(生命CCI线,警戒线),警戒线,'警惕'),COLORRED;
DRAWTEXT(CROSS(生命CCI线,生命线),生命线,'强'),COLORMAGENTA;
200,DOTLINE,COLORLIGREEN;
-200,DOTLINE,COLORBROWN;
MACD面积背离
{N:=12;M:=9;}
MTR:=EMA(EMA(EMA(CLOSE,N),N),9);{原为12 12 12}
DIF:(MTR-REF(MTR,1))/REF(MTR,1)*20000;
DEA:MA(DIF,M),COLOR0066FF ;
MACD:(DIF-DEA)*2,COLORSTICK;
{底部信号}
BB值:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
AAA:=EMA(CLOSE,12)-EMA(CLOSE,26);
底:CROSS(BB值,9),COLORYELLOW,NODRAW;
DRAWTEXT(CROSS(BB值,9),0, '‘底部'),COLORYELLOW;
DRAWICON(CROSS(BB值,9),0,11);
STICKLINE(CROSS(BB值,9),0-0.1,MACD-0.1,1,0),COLORYELLOW;
MACD空中加油:=MACD>=0 AND REF(MACD,1)>=0 AND REF(MACD,2)>=0 AND
REF(MACD,3)>=0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2)
AND REF(MACD,2)<REF(MACD,3) ;
加油:MACD空中加油,NODRAW,COLORLIRED;
DRAWICON(MACD空中加油,0,23);
STICKLINE(MACD空中加油,0-0.1,MACD-0.1,0.2,0),COLORLIRED;
DRAWTEXT(MACD空中加油,0, '‘空中加油'),COLORLIRED;
{DRAWICON(REF(DIF,1)>REF(DIF,2) AND DIF<REF(DIF,1) AND DIF>0 AND DIF>DEA,DIF*1.1,2),COLORGREEN;
DRAWICON(CROSS(DEA,DIF) AND DIF>0,DIF,37),COLORGREEN;
DRAWICON(REF(DIF,1)<REF(DIF,2) AND DIF>REF(DIF,1) AND DIF<0 AND DIF<DEA,DIF*1.1,1),COLORRED;
DRAWICON(CROSS(DIF,DEA) AND DIF<0,DIF,36),COLORRED;}
X_2:=BARSLAST(REF(MACD,1)<0 AND MACD>0);
X_3:=LLVBARS(MACD,X_2+20);
X_4:=IF(X_3>X_2,REF(MACD,X_3),0);
X_5:=MACD<0 AND MACD>X_4 AND LOW=LLV(LOW,X_2+20) AND X_4<0;
X_6:=REF(X_5,1)=1 AND MACD>REF(MACD,1) AND REF(DIF,X_3)<0 AND MACD<0;
低积背:DRAWLINE(X_4=X_3,MACD,X_6,MACD,0),COLORMAGENTA;