cci指标又叫顺势指标,其英文全commodity channel index,是由美国股市分析家唐纳德?r.兰伯特(donald r.lambert)于20世纪80年代所创,是指导股市投资的一种中短线指标。同花顺极品cci指标公式在cci指标处右键修改指标参数即可复制下面所有指标参数,粘贴到修改位置点击保存即可。n:=14;typ:=(high+low+close)/3;cci:(typ-ma(typ,14))/(0.015***edev(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(cci<0,0,cci,1,0),colorligreen;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***edev(typ,70)),coloryellow,linethick2;差值:=cci70-ref(cci70,1);if(差值>0,cci70,draw**),coloryellow,linethick2;if(差值<0,cci70,draw**),colorblue,linethick2;逃顶线:200,colorgreen;强势线:100,colorred,linethick2;趋势线:cci,colorgray,linestick,linethick1;中轴线:0,coloryellow,linethick1;抄底线:-100,colorwhite;弱势线:-200,colorgreen;drawicon(cross(cci,-100) or (ref(cci,1)>-100 and ref(cci,1)<-95 and cci>ref(cci,1)),cci-0.03,1);drawicon(cross(100,cci) or (ref(cci,1)<100 and ref(cci,1)>95 and cci<ref(cci,1)),cci+0.03,2); 20210311