1
m5:ma(close,5),colorwhite;
m1:ma(close,10),coloryellow;
m2:=ma(close,20),colorligreen;
m3:ma(close,30),colormagenta;
m4:=ma(close,40),colorred;
m6:ma(close,60),colorcyan;
m12:ma(close,120),colorlired;
m25:=ma(close,250),colorlimagenta;
市场成本:=dma(amount/v/100,v/capital),colorcyan;
var21:=(c+h+o+l)/4;
卖出:=xma(var21,20)*(1+80/1000);
买入:=xma(var21,32)*(1-100/1000);
抛:卖出,colorgreen,linethick2;
吸:买入,colorlicyan,linethick2;
中:xma(var21,26)*(1-10/1000),pointdot,linethick2;
drawicon(cross(买入,low),l,1);
drawicon(cross(high,卖出),卖出,2);
2
dif:=ema(close,12) - ema(close,26);
dea:=ema(dif,9);
macd:2*(dif-dea),colorstick;
stickline(macd>0 and macd>ref(macd,1),0,macd+0,2,0),color0000aa;
stickline(macd>0 and macd>ref(macd,1),0,macd+0,0.5,0),color0055ff;
stickline(macd<0 and macd>ref(macd,1),0,macd+0,2,0),coloraa00bb;
stickline(macd<0 and macd>ref(macd,1),0,macd+0,0.5,0),colorcc22bb;
{黄}
stickline(macd>0 and macd<=ref(macd,1),0,macd+0,2,0),color00aaff;
stickline(macd>0 and macd<=ref(macd,1),0,macd+0,0.5,0),color00ffff;
{蓝}
stickline(macd<0 and macd<=ref(macd,1),0,macd+0,2,0),colorff7700;
stickline(macd<0 and macd<=ref(macd,1),0,macd+0,0.5,0),colorffaa22;
drawicon(macd>ref(macd,1) and ref(macd,1)<ref(macd,2) and macd<0,macd,1);
jccount:=count(cross(dif,dea),barslast(dea>=0));
二次金叉:=cross(dif,dea) and dea<0 and count(jccount=2,21)=1;
drawtext(二次金叉,dea,' 二次金叉'),colorwhite;
diff3:=ema(dclose,12)-ema(dclose,26);
dea3:=ema(diff3,9),coloryellow;
macd3:=(diff3-dea3)*2,linethick0;
多转空:=((((llv(macd3,4)>0) and (macd3<ref(macd3,1))) and (ref(macd3,1)>ref(macd3,2))) and (ref(macd3,2)>ref(macd3,3)));
空转多:=((((hhv(macd3,4)<0) and (macd3>ref(macd3,1))) and (ref(macd3,1)<ref(macd3,2))) and (ref(macd3,2)<ref(macd3,3)));
xg2:=macd3<0 and ref(macd3<0,1) and ref(macd3,1)<ref(macd3,2) and diff3>ref(diff3,1) and ma(c,5)<ref(ma(c,5),1) ;
drawtext(xg2,0.03,'金3'),coloryellow;
jccount3:=count(cross(diff3,dea3),barslast(dea3>=0));
二次金叉3:=cross(diff3,dea3) and dea3<0 and count(jccount3=2,21)=1;
drawtext(二次金叉3,dea3*1.06,'二次金叉3'),colorcyan;
vi:dif,linethick2,colorwhite;
v2:dea,linethick2,coloryellow;
3预测量:=if(currbarscount=1 and period=5,vol*240/fromopen,vol),nodraw;
stickline(currbarscount=1 and period=5,预测量,0,-1,-1),color00c0c0;
volume:vol,volstick;
突变:=v+ref(v,1)>=(ref(v,2)+ref(v,3)+ref(v,4)+ref(v,5)+ref(v,6))/5*3 and v<2*ref(v,1) and c>o and c>ma(c,21),colorgreen;
stickline(突变,2*v/3,v,2,0),colorgreen;
aa:=vol/((high-low)*2-abs(close-open));
增仓:=if(close>open,aa*(high-low),if(close<open,aa*((high-open)+(close-low)),vol/2)),stick,colorred;
减仓:=if(close>open,0+aa*((high-close)+(open-low)),if(close<open,0+aa*(high-low),0+vol/2)),stick,colorgreen;
{蓝}
stickline(减仓>0 and 减仓<=ref(减仓,1),0,减仓+0,2,0),colorff7700;
stickline(减仓>0 and 减仓<=ref(减仓,1),0,减仓+0,0.5,0),colorffaa22;
stickline(减仓>0 and 减仓>ref(减仓,1),0,减仓+0,2,0),coloraa00bb;
stickline(减仓>0 and 减仓>ref(减仓,1),0,减仓+0,0.5,0),colorlicyan;
stickline(增仓>0 and 增仓>ref(增仓,1),0,增仓+0,2,0),color0000aa;
stickline(增仓>0 and 增仓>ref(增仓,1),0,增仓+0,0.5,0),color0055ff;
{黄}
stickline(增仓>0 and 增仓<=ref(增仓,1),0,增仓+0,2,0),color00aaff;
stickline(增仓>0 and 增仓<=ref(增仓,1),0,增仓+0,0.5,0),color00ffff;
vol1:ma(volume,5),colorwhite,linethick2;
vol2:ma(volume,10),coloryellow,linethick2;
vol3:ma(volume,123),colorlicyan,linethick2;
4
rsv:=(close-llv(low,13))/(hhv(high,13)-llv(low,13))*100;
k1:=sma(rsv,3,1);
d1:=sma(k1,3,1);
kk:=intpart(k1);
dd:=intpart(d1);
tfxxs:=kk+dd;{变异kd风险系数}
tglxs:=(tfxxs-ref(tfxxs,1)),linethick;{变异kd乖离系数:资金流向}
diff3:=ema(dclose,12)-ema(dclose,26);
dea3:=ema(diff3,9),coloryellow;
macd3:=(diff3-dea3)*2,linethick0;
空转多:=((((hhv(macd3,4)<0) and (macd3>ref(macd3,1))) and (ref(macd3,1)<ref(macd3,2))) and (ref(macd3,2)<ref(macd3,3)));
顺势:(空转多 and tglxs>ref(tglxs,1) and c<ma(c,5))*9;
5
var21:=(c+h+o+l)/4;
卖出:=xma(var21,20)*(1+80/1000);
买入:=xma(var21,32)*(1-100/1000);
xg:low<=买入;
6
dif:=ema(close,12) - ema(close,26);
dea:=ema(dif,9);
macd:=2*(dif-dea);
drawicon(macd>ref(macd,1) and ref(macd,1)<ref(macd,2) and macd<0,macd,1);
7
dif:=ema(close,12) - ema(close,26);
dea:=ema(dif,9);
macd:=2*(dif-dea);
jccount:=count(cross(dif,dea),barslast(dea>=0));
二次金叉:=cross(dif,dea) and dea<0 and count(jccount=2,21)=1;
drawtext(二次金叉,dea,' 二次金叉'),colorwhite;
8
dynainfo(7)>6 and dynainfo(7)<16 and finance(1)<830000000;
9
y:=c;
a1:=ref(ty,10)=hhv(ty,2*10+1);
b1:=filter(a1,10);
c1:=backset(b1,10+1);
hd:=filter(c1,10);
a2:=ref(ty,10)=llv(ty,2*10+1);
b2:=filter(a2,10);
c2:=backset(b2,10+1);
ld:=filter(c2,10);
z:=ref(l,barslast(ld));
t2:=barslast(hd)>barslast(ld) and not(ld);
波谷:=if(t2,z,z),colorwhite;
drawtext(l<=波谷 ,l*0.96,'支撑'),coloryellow;
10
趋势f:=xma(((close-llv(low,48))/(hhv(high,48)-llv(low,48))*30),17)+9,colorffffff;
趋势8:=xma(((close-llv(low,53))/(hhv(high,53)-llv(low,53))*30),17)+9,color3377dd;
散户:=ema(((close-llv(low,38))/(hhv(high,38)-llv(low,38))*30),17)+18,colorgreen,linethick2;
机构:=xma(趋势f,7)*1.372,colorred,linethick2;
wr2:=机构*1.0887;
机构持仓1:=2.93*(机构-散户),linethick2,colorred;
var1:=(ema(c,12)-ema(c,26))*100+50;
var2:=ema(var1,9);
var3:=((hhv(h,21)-c)/(hhv(h,21)-llv(l,21)))*100-10;
var4:=((c-llv(l,21))/(hhv(h,21)-llv(l,21)))*100;
var5:=sma(var4,13,8);
var6:=sma(var3,21,8);
var7:=ma(c,80)-ma(c,10)/7;
var8:=ema(c,5);
var9:=ma((llv(c,9))*1.1,14);
var10:=2*var9-var8-c*0.1;
var11:=if(((var8-var10)*5>0),(pow((var8-var10)*5,2))/10,(-1*(pow((var8-var10)*(5),2)))/(10));
var12:=if((var11>0),var11-0,12);
var13:=sma(max(c-ref(c,2),0),7,1)/sma(abs(c-ref(c,2)),7,1)*100;
趋势线:=ceiling(sma(var5,13,8)),linethick2,coloryellow;
操盘线:=ma(3*sma((c-llv(l,27))/(hhv(h,27)-llv(l,27))*100,5,1)-2*
sma(sma((c-llv(l,27))/(hhv(h,27)-llv(l,27))*100,5,1),3,1),5),linethick2,colorcyan;
底部:if((趋势线-var6<(-65)),-12,0),colorligreen;
顶部:if((趋势线-var6>85),95,100),colorlicyan;
机构持仓3:=1.3*(趋势线-操盘线);
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
机构持仓:=2.3*(k-d);
stickline(机构持仓>=0 and 机构持仓>ref(机构持仓,1),39,机构持仓+39,2,0),color0000aa;
stickline(机构持仓>=0 and 机构持仓>ref(机构持仓,1),39,机构持仓+39,0.5,0),color0055ff;
stickline(机构持仓<=0 and 机构持仓>ref(机构持仓,1),39,机构持仓+39,2,0),coloraa00bb;
stickline(机构持仓<=0 and 机构持仓>ref(机构持仓,1),39,机构持仓+39,0.5,0),colorcc22bb;
{黄}
stickline(机构持仓>=0 and 机构持仓<=ref(机构持仓,1),39,机构持仓+39,2,0),color00aaff;
stickline(机构持仓>=0 and 机构持仓<=ref(机构持仓,1),39,机构持仓+39,0.5,0),color00ffff;
{蓝}
stickline(机构持仓<=0 and 机构持仓<=ref(机构持仓,1),39,机构持仓+39,2,0),colorff7700;
stickline(机构持仓<=0 and 机构持仓<=ref(机构持仓,1),39,机构持仓+39,0.5,0),colorffaa22;
k1:k,linethick2,colorwhite;
d1:d,linethick2,colorcyan;
j:3*k-2*d,linethick2,coloryellow;
涨家数:indexadv,nodraw,colorred ;
跌家数:indexdec,nodraw,colorgreen;
【好公式网提示:以上公式一共10个,附件里仅仅提供前3个公式下载,其他的公式,自己整理成通达信格式吧】
上一指标公式:135战法的Y值指标详解 通达信战法
下一指标公式:薛斯通道I+II二合一自改主图指标详解 通达信源码二合一
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文能者等10个指标详解 通达信公式源码仅供学习研究。