cci买卖指标公式源码(ccl指标零轴公式怎么写?)
1. ccl指标零轴公式怎么写?
CCI指标的计算方法
和其他技术分析指标一样,由于选用的计算周期不同,顺势指标CCI也包括日CCI指标、周CCI指标、年CCI指标以及分钟CCI指标等很多种类型。经常被用于股市研判的是日CCI指标和周CCI指标。虽然它们计算时取值有所不同,但基本方法一样。
以日CCI计算为例,其计算方法有两种。
第一种计算过程如下:
CCI(N日)=(TP-MA)÷MD÷0.015
其中,TP=(最高价+最低价+收盘价)÷3
MA=最近N日收盘价的累计之和÷N
MD=最近N日(MA-收盘价)的累计之和÷N
0.015为计算系数,N为计算周期
第二种计算方法表述为
中价与中价的N日内移动平均的差除以N日内中价的平均绝对偏差
其中,中价等于最高价、最低价和收盘价之和除以3
平均绝对偏差为统计函数
2. 怎样将CCI专家系统的红箭头设为选股公式?
无法更改,除非你能知道信号源码,然后新建一个kd和cci公式组合,然后把信号标记修改一下即可。
3. 通达信专家系统指示能同时加Kd指标和cci指标并显示不同颜色箭头?
无法更改,除非你能知道信号源码,然后新建一个kd和cci公式组合,然后把信号标记修改一下即可。
4. mse成交量指标公式源码?
LC:=REF(C,1);
VVA:=IF(C>REF(C,1),V,-V);
OBV18:=SUM(IF(C=REF(C,1),0,VVA),18);
XXV:=IF(C>LC,SUM(V,18),0),COLOR0000CC;
YYV:=IF(C<LC,SUM(V,18),0),COLOR00CC00;
SS0:=IF(C>LC,HHV(REF(V,1),18),0);
SS1:=IF(C<LC,HHV(REF(V,1),18),0);
CCI:=((C-MA(C,14))/(0.015*AVEDEV(C,14)))/4+50,COLORFFCCCC;
RSI:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*150-30,COLORCC9900;
K9:=SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),COLOR00CCCC;
D9:=SMA(K9,3,1),COLOR00CC00;
J:=3*K9-2*D9,COLORFF3399,LINETHICK1;
VAR01:=DYNAINFO(17)*REF(MA(V,5),1);
VAR02:=DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT;
预V1:=IF(DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT,VAR01,VAR02);
预量:=IF(V>=预V1,V,预V1);
VA:=IF(C>REF(C,1),预量,-预量);
换手率:10000*VOL/FINANCE(7),NODRAW,COLORRED;
周换手率:SUM(VOL/CAPITAL*100,5);
月换手率:SUM(VOL/CAPITAL*100,20);
WOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORFFFFFF;
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
主力启动线:MA(VOLUME,5),COLORRED;
主力洗盘线:MA(VOLUME,35),COLORYELLOW;
生命线:=MA(VOLUME,10);
资金异动线:MA(VOLUME,135),COLORGREEN;
AA:=VOL>=REF(V,1)*1.91 && C>REF(C,1);
AAA:=VOL>=REF(V,1)*4 && C>REF(C,1);
AA1:=VOL<REF(LLV(VOL,13),1);
AA2:=VOL<REF(LLV(VOL,55),1);
AA3:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.06;
AA4:=VOL<=REF(V,1)*0.51 ;
AA5:=COUNT(CLOSE>REF(CLOSE,1),2)=2 AND COUNT(VOL<REF(VOL,1),2)=2;
STICKLINE(AA,0,V,2,0),COLORYELLOW;
STICKLINE(AAA,0,V,1,0),COLORMAGENTA;
STICKLINE(AA1,0,V,2,0),COLORMAGENTA;
STICKLINE(AA2,0,V,2,0),COLORRED;
STICKLINE(AA3,0,V,2,0),COLORWHITE;
STICKLINE(AA4,0,V,2,0),COLOR22A6E6;
STICKLINE(AA5,0,V,2,0),COLORGREEN;
地量:=VOL<=REF(LLV(VOL,13),1);
XG:=COUNT(地量>0,3)=3;
DRAWTEXT(XG ,VOL*0.5,'买'),COLORYELLOW;
VAR2:=1*AMOUNT;
三十日天量:=HHV(VAR2,30)=VAR2;
六十日天量:=HHV(VAR2,60)=VAR2;
百日天量:=HHV(VAR2,100)=VAR2;
一年天量:=HHV(VAR2,250)=VAR2;
STICKLINE(三十日天量,VOLUME,VOLUME*0.7,1,0),COLORMAGENTA;
DRAWTEXT(三十日天量,VOL*0.70,'----30'),COLORMAGENTA;
STICKLINE(六十日天量,VOLUME,VOLUME*0.7,1.5,0),COLORWHITE;
DRAWTEXT(六十日天量,VOL*0.8,'----60'),COLORWHITE;
STICKLINE(百日天量,VOLUME,VOLUME*0.7,1.5,0),COLORGREEN;
DRAWTEXT(百日天量,VOL*0.88,'----100'),COLORGREEN;
STICKLINE(一年天量,VOLUME,VOLUME*0.7,1,0),COLORRED;
DRAWTEXT(一年天量,VOL*1.0,'----250'),COLORRED;
获利盘:=WINNER(C)*100;
VARA2:=LLV(LOW,10);
VARA3:=HHV(HIGH,25);
动力线:= EMA((CLOSE-VARA2)/(VARA3-VARA2)*4,4);
BB5:=获利盘<=1;
STICKLINE(BB5,0,V,0.5,0),COLORBLUE;
5. cci公式源码?
CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));
差值1:=ABS(REF(CCI1,1)-CCI1);
CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
差值2:=ABS(REF(CCI2,1)-CCI2);
CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));
差值3:=ABS(REF(CCI3,1)-CCI3);
CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
差值4:=ABS(REF(CCI4,1)-CCI4);
CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));
差值5:=ABS(REF(CCI5,1)-CCI5);
CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;
AAA:=(3*C+H+L+O)/6;
VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)
+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
短线:VAR1,COLORWHITE;
中线:VAR6,COLORYELLOW;
下跌:IF(VAR1=VAR6,VAR6, 0),COLORGREEN,LINETHICK0;
PARTLINE(VAR6,VAR1=VAR6),COLORGREEN;
TJ1:= CCI1>差值4;
立桩量:=FILTER(TJ1,0){,NODRAW};
TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);
{STICKLINE(立桩量 <>1,REF(HIGH,BARSLAST(立桩量)),
REF(HIGH,BARSLAST(立桩量)),1,1),COLORCYAN;}
成立1:=TJ2=1;
条件成立1:=FILTER(成立1,5);
DRAWTEXT(条件成立1, REF(HIGH,BARSLAST(立桩量)),'看跌'),COLORBLUE;
TJ11:= CCI1<-差值4 ;
立桩量2:=FILTER(TJ11,0){,NODRAW};
TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,0);
突破2:=TJ22=1;
{STICKLINE(CLOSE AND (下跌<> VAR6),REF(LOW,BARSLAST(立桩量2)),
REF(LOW,BARSLAST(立桩量2)),1,1),COLORYELLOW;}
TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);
成立2:=TJ=1;
条件成立2:=FILTER(成立2,5);
DRAWTEXT(条件成立2,REF(LOW,BARSLAST(立桩量2)),'看涨'),COLORMAGENTA;
TJ111:=ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5);
立桩量3:=FILTER(TJ111,3);
TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0)));
成立:=TJ3=1;
条件成立:=FILTER(成立,5);
DRAWTEXT(条件成立 AND 下跌<> VAR6,L*0.97,'☆成立');
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),BBF,'底背离'),COLORA6E500;
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
6. ccl数值大于100怎么编辑?
CCI(商品路径指标)
公式名称:CCI选股
公式类型:选股
公式描述:CCI大于100
公式代码:
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N))*1000/(15*AVEDEV(TYP,N));
XG:CCI>100;
动态翻译:
N赋值:14
TYP赋值:(最高价+最低价+收盘价)/3
CCI赋值:(TYP-TYP的N日简单移动平均)*1000/(15*TYP的N日平均绝对偏差)
输出XG:CCI>100
7. 同花顺的指标平台里ccl怎么设置用?
CCI指标又叫顺势指标,其英文全名为Commodity Channel Index,是由美国股市分析家唐纳德?R.兰伯特(Donald
R.Lambert
)于20世纪80年代所创,是指导股市投资的一种中短线指标。同花顺极品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<REF(CCI,1),0,CCI,1,0),colorgreen;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<REF(CCI,1)),CCI+0.03,2);8. cci变色指标公式?
TYP:=(CLOSE+HIGH+LOW)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
STICKLINE(CROSS(CCI,-200),50,-200,2,0),COLORRED,LINETHICK1;
100;
200;
-100;
-200;
这是系统自带的cci源码公式,只不过我加了四条线,并且在cci线上穿-200时显示红柱。方便大家在使用时可以更好的做参考。