大智慧的分时主图指标源码
源码如下
bu:=barslast(close=hhv(close,60));
se:=barslast(close=llv(close,60));
kk1:=se;
kk2:=bu;
lm1:=se;
lm2:=bu;
ok:=kk1>kk2 and lm1>lm2;
ok1:=kk1>kk2 and lm1<lm2;
nok:=kk2>kk1 and lm2>lm1;
nok1:=kk2>kk1 and lm2<lm1;
drawicon(cross(kk1,kk2),open*1,1);
drawtext(cross(kk1,kk2),open*0.985,'抓'),color3cb371;
t:=barscount(c);
均价:=dynainfo(11);
总量:=sum(vol,t);
总额:=sum(amount,t);
均价:=总额/(总量*100);
次数:=count(close>均价,t);
占比:=次数/t*100;
分时强势:drawicon(cross(close,均价) and close>均价 and 占比>80 and t>5,close*0.99,7);
drawtext(cross(close,均价) and close>均价 and 占比>80 and t>5,close*0.98,'涨价'),colorffff00;
var1:=amount/vol/100;
var2:=(3*high+low+open+2*close)/7;
var3:=sum(amount,5)/var1/100;
var4:=sum(amount,13)/var1/100;
var5:=sum(amount,34)/var1/100;
cyc5:=dma(var2,vol/var3);
cyc13:=dma(var2,vol/var4);
cyc34:=dma(var2,vol/var5);
cyc∞:=dma(var2,vol/capital);
一剑封喉:=cross(close,ma(close,13)) and cross(close,ma(close,34)) and cross(close,ma(close,55));
a1:=(close-llv(low,22))/(hhv(high,22)-llv(low,22))*100;
a2:=(close-llv(low,27))/(hhv(high,27)-llv(low,27))*100;
a:=3*sma(a1,5,1)-2*sma(sma(a2,5,1),3,1);
yngs:=一剑封喉 and a<30;
drawicon(一剑封喉 and a<30,low*0.985,10);
drawtext(一剑封喉 and a<30,low*0.98,'停'),colorff0000;
{明关键价位}
c1:=ref(c,1);
c2:=hhv(c1,2);
c3:=llv(c1,1);
et:=hhv(c1,2);
et1:=ref(et,1);
xb:=llv(c1,1);
xb1:=ref(xb,1);
m:=barslast(c<xb and c1>=xb1);
m11:=ref(m,1);
n9:=barslast(c>et and c1<=et1);
n1:=ref(n9,1);
m21:=barslast(m-n9>0 and m11<=n1)+1;
n2:=barslast(n9-m>0 and n1<=m11)+1;
et2:=hhv(et,m21);
xb2:=llv(xb,n2);
a:=if(m-n9>0 and m11<=n1,1,if(n9-m>0 and n1<=m11,0,2));
h1:=if(m-n9>0,c,et2);
h2:=if(a=1,c,c2);
h3:=if(m-n9<0,c,xb2);
h4:=if(a=1,c,xb2);
h5:=if(m-n9>0 or a=1,c,h3);
明关键价位:ref(h5,1);
ma1:=ma(close,2);
var1:=ma(c, 1);
var2:=ma(c, 5);
var3:=ma(c, 10);
var4:=ma(c, 20);
var5:=ma(c, 30);
var6:=(var1+var2+var3+var4+var5)/5;
var7:=(var6-ref(var6, 15))/ref(var6,15)*100;
var8:=(var6-ref(var6, 15))/ref(var6, 15)*100;
var9:=ema(var7, 8);
平均价:=(h+4*l+c+o)/7;
均价差:= ema(平均价,13) - ema(平均价,34);
移动均价:= ema(均价差,5);
差:=(均价差-移动均价)*5;
a:=if(差>=1000 ,1000 ,if(差<=平均价,平均价,差) );
分水岭:=forcast(forcast(a,31),10);
涨↑:if(a>分水岭,a,分水岭),linethick1,colorred;
跌↓:if(a<分水岭,a,分水岭),linethick1,colorgreen;
ma6:=ma(c,6);
ma18:=ma(c,18);
ma55:=ma(c,55);
ma125:=ma(c,125);
ma250:=ma(c,250);
ty:=c;
a1:=ref(ty,10)=hhv(ty,2*10+1); b1:=filter(a1,10); c1:=ref(b1,10+1); hd:=filter(c1,10);
a2:=ref(ty,10)=llv(ty,2*10+1); b2:=filter(a2,10); c2:=ref(b2,10+1); ld:=ref(c2,10);
aa:=ref(c,barslast(hd)); b:=ref(c,barslast(ld));
t11:=barslast(hd)<barslast(ld) and not(hd) ;
t21:=barslast(hd)>barslast(ld) and not(ld);
波峰:if(t11,aa,aa),colorff00ff,pointdot;
stickline(t11,aa,aa,9,0),colorff00ff;
波谷:if(t21,b,b),color80ff00,pointdot;
stickline(t21,b,b,9,0),color80ff00;
买进价:=((c-ref(ma6,1))/6+ma6)*1.004;
买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);
黄点状线:if(买进条件,h,l),coloryellow,linethick1,pointdot;
diff:=ema(close,12) - ema(close,26);
dea:=ema(diff,8);
a1:=barslast(ref(cross(diff,dea),1));
b1:=ref(c,a1+1)>c and ref(diff,a1+1)<diff and cross(diff,dea);
drawtext(if(b1>0,1,0),l-0.1,'macd底背'),colorgreen;
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
a2:=barslast(ref(cross(k,d),1));
b2:=ref(c,a2+1)>c and ref(k,a2+1)<k and cross(k,d);
drawtext(if(b2>0,1,0),l-0.25,'kdj底背'),coloryellow;
lc:=ref(close,1);
rsi1:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
rsi2:=sma(max(close-lc,0),12,1)/sma(abs(close-lc),12,1)*100;
a3:=barslast(ref(cross(rsi1,rsi2),1));
b3:=ref(c,a3+1)>c and ref(rsi1,a3+1)<rsi1 and cross(rsi1,rsi2);
drawtext(if(b3>0,1,0),l-0.4,'rsi底背'),colorcyan;
c1:=barslast(ref(cross(dea,diff),1));
d1:=ref(c,c1+1)<c and ref(diff,c1+1)>diff and cross(dea,diff);
drawtext(if(d1>0,1,0),h*1.01,'macd顶背'),colorwhite;
c2:=barslast(ref(cross(d,k),1));
d2:=ref(c,c2+1)<c and ref(k,c2+1)>k and cross(d,k);
drawtext(if(d2>0,1,0),h+0.15,'kdj顶背'),colorwhite;
c3:=barslast(ref(cross(rsi2,rsi1),1));
d3:=ref(c,c3+1)<c and ref(rsi1,c3+1)>rsi1 and cross(rsi2,rsi1);
drawtext(if(d3>0,1,0),h+0.1,'rsi顶背'),colormagenta;
ref(h,c1),colorb48246,pointdot;
kk:=date<1341231;
pk:=vol*(open+close+high+low)/4;
pk1:=if(vol>0,pk/vol,(open+close+high+low)/4);
c11:=pk1;
a01:=(c11-llv(c11,75))/(hhv(c11,75)-llv(c11,75));
a11:=sma(a01,13,1);
a21:=sma(a11,13,1);
a31:=3*a11-2*a21;
a41:=2*a31-0.5;
zs:=dynainfo(3)*0.95;
选1:=if(kk,c11*(1-(a41-a21)/40),0);
选2:=cross(c11,选1) and close/ref(close,1)<1.03;
选3:if(选2,zs*1.03,zs),colorgreen;
上一指标公式:四线开花选股公式下载 大智慧源码选股
下一指标公式:显示行业包括创业板公式下载 大智慧包括创业板
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文的分时主图 大智慧指标源码仅供学习研究。