stickline(c,320,-320,5,0),color80a16f;
m:=14;q:=6;n:=20;
mm:=if(period=1,m,if(period=2,m,if(period=3,m,if(period=4,m,if(period=5,m,if(period=6,q,if(period=7,q,if(period=8,q,0))))))));
avg:=(high+low+close)/3;
cci:=(avg-ma(avg,mm))/(0.015*avedev(avg,mm));
dif:cci-ref(cci,1),linethick0,color00ff00;
前差值:abs(ref(cci,1)-ref(cci,2)),nodraw;
差值20:if(dif>15 and dif<120,dif,0),nodraw,color0000ff;
pi:=atan(1)*4;
periods:=30;
highhigh:=hhv(high,periods);
lowlow:=llv(low,periods);
rangev:=25/(highhigh-lowlow)*lowlow;
ema34:=ema(close,34);
x1_ema34:=0;
x2_ema34:=1;
y1_ema34:=0;
y2_ema34:=(ref(ema34,1)-ema34)/avg*rangev;
c_ema34:=sqrt((x2_ema34-x1_ema34)*(x2_ema34-x1_ema34)+(y2_ema34-y1_ema34)*(y2_ema34-y1_ema34));
angle_ema34v:=round(abs(180*acos((x2_ema34-x1_ema34)/c_ema34)/pi));
angle_ema34:=if(y2_ema34>0,-angle_ema34v,angle_ema34v);
lsma25:=forcast(close,25);
x1_lsma25:=0;
x2_lsma25:=1;
y1_lsma25:=0;
y2_lsma25:=(ref(lsma25,1)-lsma25)/avg*rangev;
c_lsma25:=sqrt((x2_lsma25-x1_lsma25)*(x2_lsma25-x1_lsma25)+(y2_lsma25-y1_lsma25)*(y2_lsma25-y1_lsma25));
angle_lsma25v:=round(abs(180*acos((x2_lsma25-x1_lsma25)/c_lsma25)/pi));
angle_lsma25:=if(y2_lsma25>0,-angle_lsma25v,angle_lsma25v);
array:=cci;
highbars:=barslast(not(array>0));
lowbars:=barslast(not(array<0));
upcondition:=barslast(highbars>=6 and sum(array>100,5)>0);
dncondition:=barslast(lowbars>=6 and sum(array<-100,5)>0);
uptrend:=array>0 and upcondition<dncondition;
dntrend:=array<0 and upcondition>dncondition;
trtrend:=highbars>=5 and not(uptrend) or lowbars>=5 and not(dntrend);
stickline(uptrend,0,cci,1,0),colorff0000;
stickline(dntrend,0,cci,1,0),color0000ff;
stickline(trtrend,0,cci,1,0),color00ffff;
stickline(not(uptrend or dntrend or trtrend),0,cci,1,0),color808080;
wcci:cci,linethick2,colorblack;
tcci:(avg-ma(avg,n))/(0.015*avedev(avg,n)),color7a56b7,linethick1;
stickline(angle_ema34>=5,-301,-321,2,0),colord0e040;
stickline(angle_ema34<5 and angle_ema34>=3.57,-301,-321,2,0),color006400;
stickline(angle_ema34<3.57 and angle_ema34>=2.14,-301,-321,2,0),color98fb98;
stickline(angle_ema34<2.14 and angle_ema34>=0.71,-301,-321,2,0),color00ff00;
stickline(angle_ema34<0.71 and angle_ema34>-0.71,-301,-321,2,0),color00ffff;
stickline(angle_ema34<=-0.71 and angle_ema34>-2.14,-301,-321,2,0),colore0ffff;
stickline(angle_ema34<=-2.14 and angle_ema34>-3.57,-301,-321,2,0),color00a5ff;
stickline(angle_ema34<=-3.57 and angle_ema34>-5,-301,-321,2,0),color0000ff;
stickline(angle_ema34<=-5,-301,-321,2,0),color00008b;
sw:=if(abs(angle_ema34)>=15 and abs(angle_ema34+angle_lsma25)>=50,if(angle_lsma25>0,2,-2),if(abs(angle_ema34)>=0 and (angle_ema34>=0 and angle_lsma25>=0 or angle_ema34<=0 and angle_lsma25<=0) and abs(angle_ema34+angle_lsma25)>=5,if(angle_lsma25>0,1,-1),0));
stickline(abs(sw)=2,301,321,2,0),color00ff00;
stickline(abs(sw)=1,301,321,2,0),color00ffff;
stickline(abs(sw)=0,301,321,2,0),color0000ff;
if(close>lsma25,0,drawnull),linethick3,color00ff00;
if(close<lsma25,0,drawnull),linethick3,color0000ff;
if(close=lsma25,0,drawnull),linethick3,color00ffff;
drawicon(abs(cci)>=200,cci,12);
stickline(c,200,200,1.5,0),colorffff00;
stickline(c,-200,-200,1.5,0),colorffff00;
stickline(c,100,100,1.5,0),colorffff00;
stickline(c,-100,-100,1.5,0),colorffff00;
上一指标公式:盘中分时突破预警源码指标下载 通达信预警突破
下一指标公式:黄金柱成本均线主图最新改进主图指标下载 通达信均线源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文cci优化副图源码指标下载 通达信贴图优化仅供学习研究。