CCI指标大家再熟悉不过了,在实站中使用率非常高,关于常规用法论坛里有很多,在这里就不再浪费zi源了.
抄月殳就是一个收集信息的过程,能否操作得好就看对收集来的信息的敏感程度了,只可惜这个敏感程度并非一日之功!
下面简介的CCI指标并非选股指标,只不过将CCI进行数据分段处理,将它变得更直观些,从而培养我们的条件反射能力!
不要期待有百分之百选股,不要期待挖到宝藏,天下可没有免FEI的午餐哟!
源码:(大智慧新一代)
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,4,0),COLORRED;
STICKLINE(CROSS(CCI,-200) AND CCI>REF(CCI,1),CCI,0,4,0),COLORYELLOW;
STICKLINE(CROSS(200,CCI) AND CCI<REF(CCI,1),0,CCI,4,0),COLORGREEN;
DRAWTEXTREL(10,10,'转强 CCI>0 红柱'),COLORRED;
DRAWTEXTREL(10,80,'弱转强 CCI上穿-200 黄柱'),COLORYELLOW;
DRAWTEXTREL(10,150,'强转弱 CCI下穿200 绿柱'),COLORGREEN;
CCI70:(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70)),colorYELLOW,LINETHICK2;
差值:=CCI70-REF(CCI70,1);
partline(CCI70,差值>0,rgb(255,255,0),差值<0,RGB(0,0,255)),linethick2;
周CCI:"cci.aa#week",LINETHICK2,COLORWHITE;
0,COLORYELLOW;
最后一句引用了周线CCI,如果你的CCI是这样的就可以显示
飞狐
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,4,0),COLORRED;
STICKLINE(CROSS(CCI,-200) AND CCI>REF(CCI,1),CCI,0,4,0),COLORYELLOW;
STICKLINE(CROSS(200,CCI) AND CCI<REF(CCI,1),0,CCI,4,0),COLORGREEN;
DRAWTEXTEX(C,1,10,10,'转强 CCI>0 红柱'),COLORRED;
DRAWTEXTEX(C,1,10,80,'弱转强 CCI上穿-200 黄柱'),COLORYELLOW;
DRAWTEXTEX(C,1,10,150,'强转弱 CCI下穿200 绿柱'),COLORGREEN;
CCI70:(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70)),colorYELLOW,LINETHICK2;
差值:=CCI70-REF(CCI70,1);
partline(差值>0,CCI70),COLORYELLOW,linethick2;
partline(差值<0,CCI70),COLORBLUE,linethick2;
0,COLORYELLOW;
-----------------------------------------------------------------------------------------------------------------------------------
很多同学使用通达信的,在此也给出源码,差别是少了三行文字说明,其它的不变
如果看不到图形,则是最后一句引用名称不匹配的问题,不会解决的同学就删除最后一句吧!
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(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;
0,COLORYELLOW;
周CCI:"CCI.CCI#WEEK",LINETHICK2,COLORWHITE;
|