CCI指標(biāo)大家再熟悉不過了,在實(shí)戰(zhàn)中使用率非常高,關(guān)于常規(guī)用法論壇里有很多,在這里就不再浪費(fèi)資源了.
炒股就是一個(gè)收集信息的過程,能否操作得好就看對(duì)收集來的信息的敏感程度了,只可惜這個(gè)敏感程度并非一日之功! 下面簡(jiǎn)介的CCI指標(biāo)并非選股指標(biāo),只不過將CCI進(jìn)行數(shù)據(jù)分段處理,將它變得更直觀些,從而培養(yǎng)我們的條件反射能力! 不要期待有百分之百選股,不要期待挖到寶藏,天下可沒有免費(fèi)的午餐喲! 源碼:(大智慧新一代) 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,'轉(zhuǎn)強(qiáng) CCI>0 紅柱'),COLORRED; DRAWTEXTREL(10,80,'弱轉(zhuǎn)強(qiáng) CCI上穿-200 黃柱'),COLORYELLOW; DRAWTEXTREL(10,150,'強(qiáng)轉(zhuǎn)弱 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,'轉(zhuǎn)強(qiáng) CCI>0 紅柱'),COLORRED; DRAWTEXTEX(C,1,10,80,'弱轉(zhuǎn)強(qiáng) CCI上穿-200 黃柱'),COLORYELLOW; DRAWTEXTEX(C,1,10,150,'強(qiáng)轉(zhuǎn)弱 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; ----------------------------------------------------------------------------------------------------------------------------------- 很多同學(xué)使用通達(dá)信的,在此也給出源碼,差別是少了三行文字說明,其它的不變 如果看不到圖形,則是最后一句引用名稱不匹配的問題,不會(huì)解決的同學(xué)就刪除最后一句吧! 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; 關(guān)鍵字:詳解,圖文,指標(biāo),CCI,CROSS, |
|