《通达信指标公式源码-CCI升级版副图指标.docx》由会员分享,可在线阅读,更多相关《通达信指标公式源码-CCI升级版副图指标.docx(2页珍藏版)》请在第壹文秘上搜索。
1、N:=14;TYP:=(HIGH+1.0W+C1.0SE)/3;CC1.CTYP-MA(lYF14)(0.015*AVEDEV(IYPz14),1.INETHICK0;DRAWTEXT(CRoSS(200,CCl),250下穿逃顶线,),CO1.ORGREEN;DRAWTEXT(CROSS(100zCCI)400,T穿强势力线),CO1.ORGREEN;DRAWTEXT(CROSS(CC1.200),150,上穿弱势线)CO1.ORYE1.1.OW;DRAWTEXT(CROSS(CC1.-IoO)厂100,上穿抄底线,),Co1.oRFFOOFF;STlCK1.lNE(Ccl0,0,CC1.I
2、,0),CO1.oRRED;STICK1.INE(CckO,0,CC1.I,0),CO1.oR1.IGREEN;STICK1.INE(CROSS(CCIz-200)ANDCClREF(CCI,1),CCI,0,1,0),CO1.ORYE1.1.OW;STICK1.INE(CROSS(200zCCI)ANDCCkREF(CC1.l),0,Ce1.l,0),Co1.oRGREEN;CCI70:(TYP-MAerYB70)(0.015*avedev(iyr70),Co1.orye1.1.oq1.lNETHlCK4;差值:=CCI70-REF(CCI70zl);IF(差值0,CCI70,DRAWNU1
3、.1.),C01.0RYE1.1.0V1.INETHICK4;IF(差值v0,CCI70,DRAWNU1.1.),CO1.ORB1.UE,1.INETHICK4;逃顶线:200,Co1.ORGREEN;强势线:100,CO1.ORRED,1.INETHICK2;中轴线:0,CO1.oRYE1.1.oW,1.INETHICK1;抄底线:TOO,Co1.oR1.lRED;弱势线:200,CO1.ORGREEN;DRAWICON(CROSS(CCIz-100)OR(REF(CCIzl)-100ANDREF(CeI,l)v-95ANDCCIREF(CCIzl)zCCI-0.034);DRAWICON(CROSS(100zCCI)OR(REF(CCIzl)95ANDCCkREF(CCl,1),CCl+0.03,2);