联系方式 Contact

云指标公式网

淘宝:iyungs.taobao.com

电话:18020657357

微信:396950280

Q Q:332879389

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

CCI叠加KDJ 副图源码 说明

2016/12/3 15:35:26点击:
DRAWGBK(C>0, RGB(1,1,1),RGB(1,1,1),0,'0',0);
STICKLINE(C>0,80,100,28,0)COLOR242424;
STICKLINE(C>0,20,0,28,0)COLOR242424;
STICKLINE(C>0,50,50,28,-1)COLORWHITE;
STICKLINE(C>0,100/3+50,100/3+50,28,-1)COLORWHITE;
STICKLINE(C>0,-100/3+50,-100/3+50,28,-1)COLORWHITE;
DRAWTEXT(ISLASTBAR,50,' ██'),COLORBLACK;
DRAWTEXT(ISLASTBAR,50,' 0'),COLORWHITE;
DRAWTEXT(ISLASTBAR,100/3+50,' ███'),COLORBLACK;
DRAWTEXT(ISLASTBAR,100/3+50,' 100'),COLORWHITE;
DRAWTEXT(ISLASTBAR,-100/3+50,' ████'),COLORBLACK;
DRAWTEXT(ISLASTBAR,-100/3+50,' -100'),COLORWHITE;
{}
N1:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
K:SMA(RSV,M1,1)COLORCYAN,NODRAW;
D:SMA(K,M2,1)COLOR0080FF,NODRAW;
J:3*K-2*D,COLORRED,NODRAW;
DRAWBAND(J,RGB(200,50,50),D,RGB(0,50,150));
{}
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
真实CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),COLORYELLOW,NODRAW;
真实CCI均线:EXPMA(真实CCI,5),COLORGREEN,NODRAW;
NOTEXT压缩:真实CCI/3+50,COLORYELLOW;
NOTEXT趋势:真实CCI均线/3+50,COLORGREEN;
{}
DRAWTEXT_FIX(C>0,0.5,0,0,'红蓝彩条是KDJ,黄线CCI,绿色CCI均线'),COLORWHITE;