【大智慧】CCI資金指標(biāo)公式
攻城獅 2016.01.08 07:27
{INPUT:N(34,1,100),M(3,1,100);}
個股資金指數(shù):EMA(((100 * (CLOSE – LLV(LOW,N))) / (HHV(HIGH,N) – LLV(LOW,N))),M);
stickline(個股資金指數(shù) > (0 – 5),100,(0 – 5),2,2),color000000;
stickline(個股資金指數(shù) > 20,個股資金指數(shù),20,2,2),ColorDB43E7;
DRAWICON(CROSS(個股資金指數(shù),50),個股資金指數(shù),10);
DRAWICON(CROSS(50,個股資金指數(shù)),個股資金指數(shù),11);
市場資金指數(shù):EMA(((100 * (INDEXC – LLV(INDEXL,N))) / (HHV(INDEXH,N) – LLV(INDEXL,N))),M),colorwhite;
DRAWICON(CROSS(50,市場資金指數(shù)),50,5);
DRAWICON(CROSS(市場資金指數(shù),50),50,4);
資金運作安全區(qū):stickline((市場資金指數(shù) > 50),20,5,5,0),Color7BBEB2;
博弈線:80;
20;
50;{cci}
{cci賣點對于短期內(nèi)暴漲的股票賣出非常適合}
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORRED,LINETHICK0;
cci高度關(guān)注:if(ref(cci,1)<-99 and cci >-98,1,0),colorwhite;
stickline(cci高度關(guān)注,20,40,6,1),linethick3,colorwhite;
cci逃逸:if(ref(cci,1)>99 and cci <98 and 個股資金指數(shù) >45,1,0),colorgreen;
stickline(cci逃逸,80,95,6,0),linethick3,colorgreen;
弱勢1:=if(cci<-100,cci/5+20,20);
stickline(弱勢1,20,弱勢1,1,0),linethick1,Color47FD6F;
弱勢2:=if(cci<-50 and cci >-101,cci/5+20,20);
stickline(弱勢2,20,弱勢2,1,0),linethick1,coloryellow;
買入1:if(ref(cci高度關(guān)注,1)=1 and cci>-50,1,0);
買入2:if(ref(cci高度關(guān)注,2)=1 and cci>-50 and ref(cci,1)>-50,1,0);
買入3:if(ref(cci高度關(guān)注,3)=1 and cci>-50 and ref(cci,1)>-50,1,0);
買入4:if(ref(cci高度關(guān)注,4)=1 and cci>-50 and ref(cci,1)>-50 and ref(cci,2)>-50,1,0);
stickline(買入1,20,60,3,0),linethick1,colorred;
stickline(買入2,20,65,3,0),linethick1,colorred;
stickline(買入3,20,70,3,0),linethick1,colorred;
stickline(買入4,20,75,3,0),linethick1,colorred;
買入選股:if(買入1 or 買入2 or 買入3 or 買入4,1,0);
DRAWTEXT(買入選股,0,’買’),COLORRED;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負(fù)責(zé),投資決策請建立在獨立思考之上。