//双线CCI股票公式
M:=89;
N:=14;
TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;
CCI2:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
CCI3:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
a:100;
b:-100;
主要讲解的是cci指标中两条线的走势变化,与股价的对应关系,其基本的走势图形如下:
但是在cci指标的应用中,也具有不同的应用方法和技巧,其中极品应用中对应的操作源码如下:
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK0;
DRAWTEXT(CROSS(200,CCI),250,'下穿200'),colorgreen;
DRAWTEXT( CROSS(CCI,-200),-150,'上穿-200'),coloryellow;
DRAWTEXT( CROSS(CCI,-100),-100,'上穿-100'),COLORFF00FF;
STICKLINE(CCI>0,0,CCI,1,0),colorred;
STICKLINE(CCI<0,0,CCI,1,0),colorligreen;
STICKLINE(CROSS(CCI,-200) AND CCI>REF(CCI,1),CCI,0,1,0),coloryellow;
STICKLINE(CROSS(200,CCI) AND CCI
CCI70:(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70)),coloryellow,LINETHICK2;
差值:=CCI70-REF(CCI70,1);
IF(差值>0,CCI70,DRAWNULL),coloryellow,LINETHICK2;
IF(差值<0,CCI70,DRAWNULL),colorblue,LINETHICK2;
逃顶线:200,colorgreen;
强势线:100,colorred,LINETHICK2;
趋势线:CCI,colorgray,LINESTICK,LINETHICK1;
中轴线:0,coloryellow,LINETHICK1;
抄底线:-100,colorwhite;
弱势线:-200,colorgreen;
DRAWICON(CROSS(CCI,-100) OR (REF(CCI,1)>-100 AND REF(CCI,1)<-95 AND CCI>REF(CCI,1)),CCI-0.03,1);
DRAWICON(CROSS(100,CCI) OR (REF(CCI,1)<100 AND REF(CCI,1)>95 AND CCI
以上的源码中讲解了指标应用中的中轴线、抄底线、弱势线、强势线以及逃顶线的操作技巧和源码识别,其中对应的图形如下:
而且在不同的走势中需要进行追涨或者是秒杀介入的时候,也可以运用基本的指标源码进行表述。
N:=2;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
WR1:EMA(100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),5),LINETHICK2;
90;
-90;
0;
秒杀CCI:EMA((TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),2.0332),colorwhite;
STICKLINE(秒杀CCI<-150,秒杀CCI,-150,2,0),COLOR0000BB;
STICKLINE(C>0,-150,-151,2,0),colorblue;
STICKLINE(秒杀CCI>150,秒杀CCI,150,2,0),COLOR0000BB;
STICKLINE(C>0,150,151,6,0),colorblue;
DRAWICON(CROSS(CCI,0) OR CROSS(秒杀CCI,WR1),0,7);
DRAWICON(CROSS(CCI,秒杀CCI) AND 秒杀CCI>100 ,秒杀CCI,15);
DRAWICON(CROSS(CCI,-130) ,-153,1);
DRAWICON(CROSS(153,秒杀CCI),153,2);
将其源码公式导入软件中,形成的图例如下:
上一篇:洗盘是什么意思 股票洗盘k线图解
下一篇:预计净残值是什么意思