大智慧CCI顶背离画线公式
-
相关简介:大智慧CCI顶背离画线公式 {N:=14;M:=84;} TYP:=(HIGH+LOW+CLOSE)/3; CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)); CCI2:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)); 天线:100,COLORRED; 地线:-100,COLORGREEN; PARTLINE(CCI,CCI100,RGB(255,0,250),CCI-100,RGB(0,255,0)),LINETHICK3;{CCI
-
文章来源:股海网作者:股海网发布时间:2015-05-21浏览次数:
大智慧CCI顶背离画线公式
{N:=14;M:=84;}
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
CCI2:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
天线:100,COLORRED;
地线:-100,COLORGREEN;
PARTLINE(CCI,CCI>100,RGB(255,0,250),CCI<-100,RGB(0,255,0)),LINETHICK3;{CCI变色}
PARTLINE(CCI2,CCI2>200,RGB(255,0,0),CCI2<-180,RGB(255,0,255)),LINETHICK3;{CCI2变色}
注意了结:220,POINTDOT,LINETHICK3;
底部区域:-180,POINTDOT,COLORRED,LINETHICK3;
VARA:=REF(LOW,1);
VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100;
VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
VARD:=LLV(LOW,30);
VARE:=HHV(VARC,30);
VARF:=IF(MA(CLOSE,58),1,0);
VARG:=EMA(IF(LOW<=VARD,(VARC+VARE*2)/2,0),3)/618*VARF;
VARH:=IF(VARG>28,28,VARG);
{吸筹:STICKLINE(VARH>-120,0,VARH,6,1),COLOR0FFFFF;
强弱吸筹:IF(VARH>-150,1,0),COLOR0FFFFF; }{这个感觉意义不大所以屏蔽了}
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
买入时机: IF(CROSS(CCI,-180),-180,-220),COLORFF00FF,LINETHICK1;
LL:=REF(CLOSE,1);
MM:=SMA(MAX(CLOSE-LL,0),6,1)/SMA(ABS(CLOSE-LL),6,1)*100;
分批出: IF(CROSS(80,MM),220,250),COLORCYAN;
通达信的底背离底背离自动画线,来至于以前收藏于理想论坛,大智慧加不进去:
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
A:=BARSLAST(REFX(CROSS(0.5,CCI>=HHV(CCI,10)),1));
H1:=REF(CCI,A)<REF(REF(CCI,A),1) AND REF(C,A)>REF(REF(C,A),1) AND REF(A,1)>=5;
H2:=BARSSINCE(BACKSET(H1,REF(A,1)+2))=0 OR CROSS(BACKSET(H1,REF(A,1)+2),0.5);
DRAWLINE(H2,CCI,H1,CCI,0),COLORGREEN,LINETHICK2;
DRAWTEXT(H1,CCI,'顶背离'),COLORGREEN;
B:=BARSLAST(REFX(CROSS(0.5,CCI<=LLV(CCI,3)) AND INTPART(CCI)>REF(INTPART(CCI),1),1));
L1:=REF(CCI,B)>REF(REF(CCI,B),1) AND REF(C,B)/REF(REF(C,B),1)<=0.95 AND REF(B,1)>=5;
L2:=BARSSINCE(BACKSET(L1,REF(B,1)+2))=0 OR CROSS(BACKSET(L1,REF(B,1)+2),0.5);
DRAWLINE(L2,CCI,L1,CCI,0),COLORRED,LINETHICK2;
DRAWTEXT(L1,CCI+30,'低背离'),COLORRED;