当前位置:首页 > 通达信 > 正文

【通达信免费源码】CCIKD指标 副图 KDJ指标 CCI指标 无未来函数

2022-03-22未知 编 辑:掌上指标

30-1P606154139.png30-1P606154140.png

N:=14;

TYP:=(H+L+C)/3;

CCI0:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));

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

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

指数TYP:=(INDEXH+INDEXL+INDEXC)/3;

指数CCI:=(指数TYP-MA(指数TYP,N))/(0.015*AVEDEV(指数TYP,N));

DRAWBAND(K,RGB(175,0,0),D,RGB(0,150,0));

DRAWBAND(指数CCI,RGB(0,80,0),指数CCI,RGB(0,80,0));

CCI:CCI0,COLORWHITE;

K线:K,NODRAW,COLORYELLOW;

D线:D,NODRAW,COLORMAGENTA;

MKDD:K-D,COLORSTICK,COLORCYAN;

大盘CCI:指数CCI,COLORGREEN,NODRAW;

STICKLINE(MKDD>=REF(MKDD,1) && MKDD<=0,0,MKDD,0.5,0),COLORCYAN;

STICKLINE(MKDD>=REF(MKDD,1) && MKDD>0,0,MKDD,1,0),COLORRED;

AA:=IF(CROSS(CCI,MAX(K,D)),CCI,DRAWNULL);

DRAWBAND(AA,RGB(150,150,0),AA,RGB(150,150,0)),POINTDOT,LINETHICK4,COLORYELLOW;

大家都爱看
查看更多热点新闻
点击进入掌上指标资源网-下载各类指标