【大智慧】實(shí)用CCI指標(biāo)公式
攻城獅 2015.11.08 03:46
TYP := (HIGH + LOW + CLOSE)/3;
CCI14:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CCI24:(TYP-MA(TYP,24))/(0.015*AVEDEV(TYP,24)),LINETHICK2,COLORgreen;
CCI84:(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84)),LINETHICK1,COLORSTICK;
CCI084:(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84)),LINETHICK3,COLORYELLOW;
CCI168:(TYP-MA(TYP,168))/(0.015*AVEDEV(TYP,168)),LINETHICK4,COLORblue;
CCI840:(TYP-MA(TYP,840))/(0.015*AVEDEV(TYP,840)),LINETHICK4,COLORred;
底背離14:LLV(L,55)=L AND NOT(LLV(CCI14,55)=CCI14);
底背離84:LLV(L,55)=L AND NOT(LLV(CCI84,55)=CCI84);
頂背離14:hhv(h,55)=h AND NOT(hhv(CCI14,55)=CCI14);
頂背離84:hhv(h,55)=h AND NOT(hhv(CCI84,55)=CCI84);
DRAWTEXT(底背離14>0,150,’底’ ),COLORyellow;
DRAWTEXT(底背離14>0,50,’背’ ),COLORyellow;
DRAWTEXT(底背離14>0,0,’離’ ),COLORyellow;
DRAWTEXT(底背離84>0,100,’底’ ),COLORgreen;
DRAWTEXT(底背離84>0,50,’背’ ),COLORgreen;
DRAWTEXT(底背離84>0,0,’離’ ),COLORgreen;
DRAWTEXT(頂背離14>0,150,’頂’ ),COLORRED,linethick2;
DRAWTEXT(頂背離14>0,50,’背’ ),COLORRED;
DRAWTEXT(頂背離14>0,0,’離’ ),COLORRED;
DRAWTEXT(頂背離84>0,200,’頂’ ),COLORwhite,linethick2;
DRAWTEXT(頂背離84>0,50,’背’ ),COLORBLUE;
DRAWTEXT(頂背離84>0,0,’離’ ),COLORBLUE;
DIFF := EMA(CLOSE,7) – EMA(CLOSE,26);
DEA := EMA(DIFF,9);
頂背離m:=hhv(h,55)=h AND NOT(hhv(DIFF,55)=DIFF);
100,POINTDOT,COLORRED;
200,POINTDOT;
0;
-200,POINTDOT;
d:=CCI849 and CCI24>CCI84 and not(頂背離m) and cci14>cci24 ;
xg:c xg波段:f and cross(CCI84,CCI168);DRAWICON(xg波段,350,7);DRAWTEXT(xg波段,330,’抄’ ),LINETHICK3,COLORYELLOW; DRAWTEXT(xg波段,300,’底’ ),LINETHICK3,COLORYELLOW;
a:=ref(xg波段,1) and c bbi:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
woxg:count(a,10)>0 and cross(c,bbi); DRAWTEXT(woxg,300,’!’ ),LINETHICK3,COLORYELLOW;
ZTJ:=cross(CCI168,CCI840) and CCI840>0;
主升浪:ZTJ AND (REF(BARSLAST(ZTJ),1)>20 OR BARSSINCE(ZTJ)=0); DRAWTEXT(主升浪,480,’主升浪’ ),LINETHICK3,COLORmagenta;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.guangshenggb.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。