万物公式网是一个专注于股票软件、股票公式资源分享的平台
微信公众号:万物狙击

网站首页 > 大智慧公式 正文

大智慧KDJ+CCI指标公式

admin 2023-10-16 11:54:55 大智慧公式 227 ℃

大智慧KDJ+CCI指标公式

DRAWGBKlAST(C>0,strip(RGB(0,0,100),RGB(30,0,30),0));0,COLORff9900;

{KDJ9}

var9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K:=SMA(var9,3,1);

D:SMA(K,3,1),COLOR00FF00,DOTLINE,LINETHICK0;

J:(3*K-2*D),COLOR0000FF,LINETHICK0;

PARTLINE(J*1.5,J*1.5>REF(J*1.5,1),rgb(255,50,0),J*1.5<=REF(J*1.5,1),rgb(0,150,150) ),LINETHICK2,LAYER0;

{大盘KDJ}

{DRSV:=(INDEXC-LLV(INDEXL,9))/(HHV(INDEXH,9)-LLV(INDEXL,9))*100;

DK:=SMA(DRSV,3,1);

DD:=SMA(DK,3,1);

DJ:(3*DK-2*DD),COLORFF44FF,DOTLINE,LINETHICK0;

DJK:(3*DK-2*DD)*1.5,DOTLINE,LINETHICK0;

PARTLINE(DJK,(DJ*1.5>REF(DJK,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),DOTLINE,LINETHICK1,LAYER1;

PARTLINE(DJK,(DJ*1.5>REF(DJK,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),POINTDOT,LINETHICK6,LAYER4;}

{CCI}

TYB:= (HIGH + LOW + 2*CLOSE)/4;

CCIA:=(TYB-MA(TYB,14))/(0.015*AVEDEV(TYB,14));

CCIB:=(TYB-MA(TYB,28))/(0.015*AVEDEV(TYB,28));

CCIC:=(TYB-MA(TYB,42))/(0.015*AVEDEV(TYB,42));

CCI:WMA((CCIA*2+CCIB+CCIC)/4,3);

PARTLINE(CCI,CCI>REF(CCI,1),rgb(255,0,0),CCI<=REF(CCI,1),rgb(0,255,0) ),LINETHICK3;

{大盘CCI}

TYBDP:= (INDEXH + INDEXL + 2*INDEXC)/4;

CCIADP:=(TYBDP-MA(TYBDP,14))/(0.015*AVEDEV(TYBDP,14));

CCIBDP:=(TYBDP-MA(TYBDP,28))/(0.015*AVEDEV(TYBDP,28));

CCICDP:=(TYBDP-MA(TYBDP,42))/(0.015*AVEDEV(TYBDP,42));

CCIDP:=WMA((CCIADP*2+CCIBDP+CCICDP)/4,3);

PARTLINE(CCIDP,(CCIDP>REF(CCIDP,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),DOTLINE,LINETHICK1,LAYER1;

PARTLINE(CCIDP,(CCIDP>REF(CCIDP,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),POINTDOT,LINETHICK6,LAYER4;

XS:FORCAST(((1-BIGORDER(1,1))-(1-BIGORDER(2,1))),5)*1000,LINETHICK0;{小于4万元---反向用}

STICKLINE(XS<0 ,CCI ,CCI-XS,2,0) ,COLOR0099FF,LAYER0;

STICKLINE(XS>0 ,CCI ,CCI-XS,2,0) ,COLORFF9946,LAYER0;

净额主:(bigorder(1,2)-bigorder(2,2))*AMOUNT/10000,linethick0;

DRAWTEXT(BARSTATUS=2,CCI,【 +NUMTOSTRN(净额主,1)+万】),ALIGN0,COLOR00FFFF,LINETHICK3,LAYER0;

{高抛低吸}

SJ:=WMA(((2*C+H+L)/4-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);

ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);

DRAWTEXT(CROSS(SJ,ZJ) AND SJ<30,-20, ▲吸),ALIGN1,COLOR00FF00,LINETHICK2;

DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70,120, ▲抛),ALIGN1,COLOR0000FF,LINETHICK2;

{BOLL顶底}

MID:=WMA(TYB,18);

UPPER:=MID + 2*STD(TYB,18);

LOWER:=MID - 2*STD(TYB,18);

布顶:STICKLINE(cross(C,UPPER) ,60 ,100 ,8 , 0),color0000FF;

DRAWTEXT(CROSS(C,UPPER) ,90, 顶),ALIGN1,COLOR00FFFF,LINETHICK1;

布底:STICKLINE(cross(C,LOWER) ,-60 ,-100 ,8 , 0),colorFF9900;

DRAWTEXT(CROSS(C,LOWER) ,-70, 底),ALIGN1,COLOR00FFFF,LINETHICK1;

倍量:STICKLINE(V>REF(V,1)*2 ,0 ,30 , 8, 1),color00ffff;

DRAWTEXT(V>REF(V,1)*2 ,20, 倍),ALIGN1,COLOR00FFFF,LINETHICK1;

{标记BSI.KDJ}

LC:=REF(C,1);

RSI:((SMA(MAX((C - LC),0),3,1) / SMA(ABS((C - LC)),3,1)) * 100),LINETHICK0;

DRAWTEXT(DISPSTATUS=2,150,【RSI:+NUMTOSTRN(RSI,0)+】),COLOR00FFFF,LINETHICK2,ALIGN1;

DRAWTEXT(DISPSTATUS=2,120,【J:+NUMTOSTRN(J,1)+】),COLOR00FF00,LINETHICK2,ALIGN1;

大智慧KDJ+CCI指标公式选股公式如下:

>股票指标网

更多精彩内容,请关注公众号:实盘操手

其他说明

1、在下载过程遇到问题,请您 联系客服:QQ:2180737354  或  微信:xxs008000(常用)     备用微信:bsqj88886(常用号不能用的情况再加),我们会在第一时间修复和反馈。


2、本站所提供的股票指标等资源请细看说明,适合自己再购买下载,指标不包安装,不懂的人切勿购买,新手勿扰。所有指标仅供参考学习交流,没稳赚的指标,赢亏自负,如果觉着指标好用请支持正版,否则产生的一切后果将由下载用户自行承担,有部分股票指标资源为网上收集或仿制而来,若模板侵犯了您的合法权益,请来联系我们,我们会及时删除,给您带来的不便,我们深表歉意!


⇒⇒⇒点击加入通达信指标公式交流群QQ群