{一叠加cci}
零轴:=dynainfo(3)*1,color0000ff;
stickline(1,50/200+零轴,50/200+零轴,2,0),color00aa00;
stickline(1,-50/200+零轴,-50/200+零轴,2,0),color00aaaa;
rtyp:=(high+low+close)/3;
cci14:=(rtyp-ma(rtyp,14))/(0.015*avedev(rtyp,14))/2;
cci84:=(rtyp-ma(rtyp,84))/(0.015*avedev(rtyp,84))/2;
判顶底cci14:零轴+cci14 /200,colorcccccc;
买卖cci84:零轴+cci84 /200,color00ffff,linethick1;
{二均线}
ma5:ma(close,5),color0000ff,linethick3;
ma10:ma(close,10),colorff00ff,linethick1;
ma30:ma(close,30),colorffff00,linethick1;
ma60:ma(close,60),color00ffff,linethick1;
{三宝塔线}
var1:=close>ref(close,1) and close>ref(close,2);
var2:=ref(var1,1) and close<=ref(close,1) and close>=ref(close,2);
var3:=ref(var2,1) and close>=ref(close,1) and close<=ref(close,2);
var4:=ref(var3,1) and close<=ref(close,1) and close>=ref(close,2);
var5:=ref(var4,1) and close>=ref(close,1) and close<=ref(close,2);
var6:=ref(var5,1) and close<=ref(close,1) and close>=ref(close,2);
var7:=ref(var6,1) and close>=ref(close,1) and close<=ref(close,2);
var8:=ref(var7,1) and close<=ref(close,1) and close>=ref(close,2);
var9:=ref(var8,1) and close>=ref(close,1) and close<=ref(close,2);
vara:=ref(var9,1) and close<=ref(close,1) and close>=ref(close,2);
varb:=ref(vara,1) and close>=ref(close,1) and close<=ref(close,2);
varc:=ref(varb,1) and close<=ref(close,1) and close>=ref(close,2);
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),2.0,0),colorred;
vard:=close<ref(close,1) and close<ref(close,2);
vare:=ref(vard,1) and close>=ref(close,1) and close<=ref(close,2);
varf:=ref(vare,1) and close<=ref(close,1) and close>=ref(close,2);
var10:=ref(varf,1) and close>=ref(close,1) and close<=ref(close,2);
var11:=ref(var10,1) and close<=ref(close,1) and close>=ref(close,2);
var12:=ref(var11,1) and close>=ref(close,1) and close<=ref(close,2);
var13:=ref(var12,1) and close<=ref(close,1) and close>=ref(close,2);
var14:=ref(var13,1) and close>=ref(close,1) and close<=ref(close,2);
var15:=ref(var14,1) and close<=ref(close,1) and close>=ref(close,2);
var16:=ref(var15,1) and close>=ref(close,1) and close<=ref(close,2);
var17:=ref(var16,1) and close<=ref(close,1) and close>=ref(close,2);
var18:=ref(var17,1) and close>=ref(close,1) and close<=ref(close,2);
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),2.0,1),colorcyan;{ 收阴}
var19:=ref(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,1) and var1;
stickline(var19,ref(close,1),ref(close,2),3.6,0),colorff00ff;{ 买入}
drawicon(var19,low*0.97,1);
var1a:=ref(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,1) and vard;
stickline(var1a,ref(close,1),ref(close,2),3.6,0),color00ffff;{ 卖出 }
drawicon(var1a,high*1.02,2);
{数字显示macd/kdj cci指标值}
drawrectrel(0,580,100,960,rgb(150,0,0));
drawrectrel(100,580,200,960,rgb(0,150,150));
drawrectrel(200,725,300,960,rgb(150,0,150));
月k:="kdj.k#month"(9,3,3);
月d:="kdj.d#month"(9,3,3);
周k:="kdj.k#week"(9,3,3);
周d:="kdj.d#week"(9,3,3);
日k:="kd.k"(9,3,3);
日d:="kd.d"(9,3,3);
drawtext_fix(islastbar,0.04,0.60,0,'kdj '),color00ffff;
drawtext_fix(islastbar,0.01,0.65,0,'月k= '),colorffffff;
drawnumber_fix(islastbar,0.05,0.65,0, 月k),colorffffff;
drawtext_fix(islastbar,0.01,0.7,0,'月d='),colorffffff;
drawnumber_fix(islastbar,0.05,0.7,0,月d),colorffffff;
drawtext_fix(islastbar,0.01,0.75,0,'周k='),colorffffff;
drawnumber_fix(islastbar,0.05,0.75,0,周k),colorffffff;
drawtext_fix(islastbar,0.01,0.8,0,'周d='),colorffffff;
drawnumber_fix(islastbar,0.05,0.8,0,周d),colorffffff;
drawtext_fix(islastbar,0.01,0.85,0,'日k='),colorffffff;
drawnumber_fix(islastbar,0.05,0.85,0,日k),colorffffff;
drawtext_fix(islastbar,0.01,0.9,0,'日d='),colorffffff;
drawnumber_fix(islastbar,0.05,0.9,0,日d),colorffffff;
月dif:="macd.dif#month"(12,26,9);
月dea:="macd.dea#month"(12,26,9);
周dif:="macd.dif#week"(12,26,9);
周dea:="macd.dea#week"(12,26,9);
日dif:="macd.dif"(12,26,9);
日dea:="macd.dea"(12,26,9);
drawtext_fix(islastbar,0.13,0.60,0,'macd '),color00ffff;
drawtext_fix(islastbar,0.11,0.65,0,'月dif= '),colorffffff;
drawnumber_fix(islastbar,0.155,0.65,0, 月dif),colorffffff;
drawtext_fix(islastbar,0.11,0.7,0,'月dea='),colorffffff;
drawnumber_fix(islastbar,0.155,0.7,0,月dea),colorffffff;
drawtext_fix(islastbar,0.11,0.75,0,'周dif='),colorffffff;
drawnumber_fix(islastbar,0.155,0.75,0,周dif),colorffffff;
drawtext_fix(islastbar,0.11,0.8,0,'周dea='),colorffffff;
drawnumber_fix(islastbar,0.155,0.8,0,周dea),colorffffff;
drawtext_fix(islastbar,0.11,0.85,0,'日dif='),colorffffff;
drawnumber_fix(islastbar,0.155,0.85,0,日dif),colorffffff;
drawtext_fix(islastbar,0.11,0.9,0,'日dea='),colorffffff;
drawnumber_fix(islastbar,0.155,0.9,0,日dea),colorffffff;
typ:=(high+low+close)/3;
日cci:=(typ-ma(typ,84))/(0.015*avedev(typ,84));
周cci:=(typ-ma(typ,21))/(0.015*avedev(typ,21));
月cci:=(typ-ma(typ,9))/(0.015*avedev(typ,9));
drawtext_fix(islastbar,0.235,0.75,0,'cci'),color00ffff;
drawtext_fix(islastbar,0.206,0.80,0,'月cc='),colorffffff;
drawnumber_fix(islastbar,0.250,0.80,0,月cci),colorffffff;
drawtext_fix(islastbar,0.206,0.85,0,'周cci='),colorffffff;
drawnumber_fix(islastbar,0.250,0.85,0,周cci),colorffffff;
drawtext_fix(islastbar,0.206,0.90,0,'日cci='),colorffffff;
drawnumber_fix(islastbar,0.250,0.90,0,日cci),colorffffff;
上一指标公式:绝顶 通达信
下一指标公式:均线三部曲C 通达信均线
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文叠加宝塔线 CCI主图 通达信指标叠加仅供学习研究。