cc:=(h*3+c*2+o)/6;
c0:=(l*3+c*2+o)/6;
var1j:=ref(ma(c,20),10);
开:=o-var1j;
高11:=h-var1j;
低11:=l-var1j;
收:=c-var1j;
nx:=13;{}
bcj:=(高11*0.382+低11*0.618+开*0.382+收*0.618)/2;
ljj:=(bcj+amount/(v*100)-var1j)/2;
htj:=ref((hhv(ljj,nx*0.691)+hhv(ljj,nx)+hhv(ljj,nx*1.309))/3,1);
ltj:=ref((llv(ljj,nx*0.691)+llv(ljj,nx)+llv(ljj,nx*1.309))/3,1);
ztj:=(htj+ltj)/2;
stickline(ljj<ztj,ref(c0,barslast(cross(ztj,ljj))),ref(cc,barslast(cross(ztj,ljj))),4,0),colorgray;
yo:=o#day;
yc:=c#day;
yh:=h#day;
yl:=l#day;
yt:=barslast(day!=ref(day,1));
yt1:=cross(backset(yt=0,2),0.5);
stickline(if(islastbar,yt1=1,yc>=yo and yt>0 and yt1=0 ),yh,yh,8,0),colorred;
stickline(if(islastbar,yt1=1,yc>=yo and yt>0 and yt1=0 ),yl,yl,8,0),colorred;
stickline(yc>=yo and (yt=0 or yt1=1 or islastbar),yh,yl,0,0),colorred;
stickline(if(islastbar,yt1=1,yc<yo and yt>0 and yt1=0),yh,yh,8,0),colorgreen;
stickline(if(islastbar,yt1=1,yc<yo and yt>0 and yt1=0),yl,yl,8,0),colorgreen;
stickline(yc<yo and (yt=0 or yt1=1 or islastbar),yh,yl,0,0),colorgreen;
ff1:=(yh+yl)/2;
半分位:ff1,colorlimagenta;
as1:=c>=ref(c,4);
a:=c<ref(c,4);
aaa:=c<ref(c,4) and ref(as1,1);
t:=barslast(aaa)nodraw;
m:=(t=0 and refx(t=1 and not(a),1)) or (refx(t=2 and not(a),2)) or (refx(t=3 and not(a),3)) or (refx(t=4 and not(a),4)) or (refx(t=5 and not(a),5))
or (refx(t=6 and not(a),6)) or (refx(t=7 and not(a),7)) or (refx(t=8 and not(a),8));
m1:=t=1 and refx(t=2 and not(a),1) or (refx(t=3 and not(a),2)) or (refx(t=4 and not(a),3)) or (refx(t=5 and not(a),4)) or (refx(t=6 and not(a),5))
or (refx(t=7 and not(a),6)) or (refx(t=8 and not(a),7));
m2:=t=2 and refx(t=3 and not(a),1) or (refx(t=4 and not(a),2)) or (refx(t=5 and not(a),3)) or (refx(t=6 and not(a),4)) or (refx(t=7 and not(a),5)) or (refx(t=8 and not(a),6));
m3:=t=3 and refx(t=4 and not(a),1)or (refx(t=5 and not(a),2)) or (refx(t=6 and not(a),3)) or (refx(t=7 and not(a),4)) or (refx(t=8 and not(a),5));
m4:=t=4 and refx(t=5 and not(a),1) or (refx(t=6 and not(a),2)) or (refx(t=7 and not(a),3)) or (refx(t=8 and not(a),4));
m5s:=t=5 and refx(t=6 and not(a),1) or (refx(t=7 and not(a),2)) or (refx(t=8 and not(a),3));
m6:=t=6 and refx(t=7 and not(a),1) or (refx(t=8 and not(a),2));
m7:=t=7 and refx(t=8 and not(a),1);
n:=t=1 and ref(t=0 and aaa,1) and a;
n1:=t=2 and ref(n,1) and a;
n2:=t=3 and ref(n1,1) and a;
n3:=t=4 and ref(n2,1) and a;
n4:=t=5 and ref(n3,1) and a;
n5:=t=6 and ref(n4,1) and a;
n6:=t=7 and ref(n5,1) and a;
n7:=t=8 and ref(n6,1) and a;
drawtext(t=0,h*1.02,'1')colorgreen;
drawtext(n,h*1.02,'2')colorgreen;
drawtext(n1,h*1.02,'3')colorgreen;
drawtext(n2,h*1.02,'4')colorgreen;
drawtext(n3,h*1.02,'5')colorgreen;
drawtext(n4,h*1.02,'6')colorgreen;
drawtext(n5,h*1.02,'7')colorgreen;
drawtext(n6,h*1.02,'8')colorgreen;
drawtext(n7,h*1.02,'9')colorgreen;
drawicon(n7,h*1.02,34)colorgreen;
drawtext(m,h*1.02,'1')colorblack;
drawtext(m1,h*1.02,'2')colorblack;
drawtext(m2,h*1.02,'3')colorblack;
drawtext(m3,h*1.02,'4')colorblack;
drawtext(m4,h*1.02,'5')colorblack;
drawtext(m5s,h*1.02,'6')colorblack;
drawtext(m6,h*1.02,'7')colorblack;
drawtext(m7,h*1.02,'8')colorblack;
b1:=c<=ref(c,4);
b:=c>ref(c,4);
bbb:=c>ref(c,4) and ref(b1,1);
t1:=barslast(bbb)nodraw;
m111:=(t1=0 and refx(t1=1 and not(b),1)) or (refx(t1=2 and not(b),2)) or (refx(t1=3 and not(b),3)) or (refx(t1=4 and not(b),4)) or (refx(t1=5 and not(b),5))
or (refx(t1=6 and not(b),6)) or (refx(t1=7 and not(b),7)) or (refx(t1=8 and not(b),8));
m11:=t1=1 and refx(t1=2 and not(b),1) or (refx(t1=3 and not(b),2)) or (refx(t1=4 and not(b),3)) or (refx(t1=5 and not(b),4)) or (refx(t1=6 and not(b),5))
or (refx(t1=7 and not(b),6)) or (refx(t1=8 and not(b),7));
m22:=t1=2 and refx(t1=3 and not(b),1) or (refx(t1=4 and not(b),2)) or (refx(t1=5 and not(b),3)) or (refx(t1=6 and not(b),4)) or (refx(t1=7 and not(b),5)) or (refx(t1=8 and not(b),6));{www.goodgupiao.com}
m33:=t1=3 and refx(t1=4 and not(b),1)or (refx(t1=5 and not(b),2)) or (refx(t1=6 and not(b),3)) or (refx(t1=7 and not(b),4)) or (refx(t1=8 and not(b),5));
m44:=t1=4 and refx(t1=5 and not(b),1) or (refx(t1=6 and not(b),2)) or (refx(t1=7 and not(b),7)) or (refx(t1=8 and not(b),4));
m55:=t1=5 and refx(t1=6 and not(b),1) or (refx(t1=7 and not(b),2)) or (refx(t1=8 and not(b),3));
m66:=t1=6 and refx(t1=7 and not(b),1) or (refx(t1=8 and not(b),2));
m77:=t1=7 and refx(t1=8 and not(b),1);
n111:=t1=1 and ref(t1=0 and bb,1) and b;
n11:=t1=2 and ref(n111,1) and b;
n22:=t1=3 and ref(n11,1) and b;
n33:=t1=4 and ref(n22,1) and b;
n44:=t1=5 and ref(n33,1) and b;
n55:=t1=6 and ref(n44,1) and b;
n66:=t1=7 and ref(n55,1) and b;
n77:=t1=8 and ref(n66,1) and b;
drawtext(t1=0,h*1.02,'1')color9900cc;
drawtext(n111,h*1.02,'2')color9900cc;
drawtext(n11,h*1.02,'3')color9900cc;
drawtext(n22,h*1.02,'4')color9900cc;
drawtext(n33,h*1.02,'5')color9900cc;
drawtext(n44,h*1.02,'6')color9900cc;
drawtext(n55,h*1.02,'7')color9900cc;
drawtext(n66,h*1.02,'8')color9900cc;
drawtext(n77,h*1.02,'9')color9900cc;
drawtext(m111,h*1.02,'1')colorblack;
drawtext(m11,h*1.02,'2')colorblack;
drawtext(m22,h*1.02,'3')colorblack;
drawtext(m33,h*1.02,'4')colorblack;
drawtext(m44,h*1.02,'5')colorblack;
drawtext(m55,h*1.02,'6')colorblack;
drawtext(m66,h*1.02,'7')colorblack;
drawtext(m77,h*1.02,'8')colorblack;
z01:=strcat(hyblock,' ');
z02:=strcat(z01,fgblock);
z03:=strcat(z02,dyblock);
z04:=strcat(z03,' ');
drawtext_fix(islastbar,0,0,0,strcat(z04,gnblock)),colorcyan;
yf_ddi:=(amount / vol);
yf_jj:=((open + close) / 2);
yf_dding:=ema(close,6),linethick2;
yf_mmd:=ma(yf_dding,1);
yf_xxd:=ema(close,18);
yf_yyz:=ref(yf_mmd,1);
yf_xxd1:=ref(yf_xxd,1);
yf_yyz1:=barscount(close);
yf_tdcg:=if((yf_yyz1 = 1),0,(((yf_mmd - yf_yyz) / yf_yyz) * 100));
yf_zfd:=if((yf_yyz1 = 1),0,(((yf_xxd - yf_xxd1) / yf_xxd1) * 100));
yf_jsd2:=ref(close,1);
close1:=if((yf_yyz1 = 1),0,(((close - yf_jsd2) / yf_jsd2) * 100));
yf_jzdf:=if((yf_yyz1 = 1),((close + open) / 2),yf_yyz);
yf_dcgj:=yf_mmd;
jj0:=yf_yyz;
jj1:=ref(yf_mmd,2);
jj2:=(((yf_dcgj + jj0) + jj1) / 3);
jj02:=(((abs((yf_dcgj - jj2)) + abs((jj0 - jj2))) + abs((jj1 - jj2))) / 3);
ss:=ref(yf_tdcg,1);
yf_zfd1:=ref(yf_tdcg,2);
yf_zfd2:=if((yf_yyz1 < 3),0,((jj02 / yf_dcgj) * 100));
yf_dhpxs:=if((yf_yyz1 < 3),0,if((((yf_tdcg < 0) and (ss < 0)) and (yf_zfd1 < 0)),(0 - 1),1));
yf_yzfz:=if((((yf_yyz1 > 11) and (ss < 0)) and (yf_tdcg > 0)),1,0);
yf_jsd21:=barslast((yf_yzfz = 1));
yf_jsd:=ref(yf_jsd21,1);
aa:=if((((yf_yyz1 > 11) and (ss < 0)) and (yf_tdcg > 0)),(yf_jsd + 1),yf_jsd);
yf_pjj:=if((((yf_yyz1 > 11) and (ss > 0)) and (yf_tdcg < 0)),1,0);
yf_jsd11:=yf_jzdf;
dmrj:=yf_jzdf;
dmcj:=if(((yf_yyz1 > 11) and (yf_jsd11 < open)),open,yf_jzdf);
yf_dmrj:=if(((yf_yyz1 > 11) and (dmrj > open)),open,yf_jzdf);
yf_dmcj:=0;
yf_dcg1:=ref(yf_jzdf,1);
yf_bdf5:=if(((((yf_tdcg > 0.5) and ((yf_zfd2 > 0.215) or (low > yf_jzdf))) and (close >= open)) and ((close >= 200) or ((close < 200) and (close1 < 11)))),1,0);
yf_dmr_old:=if((((yf_tdcg < (0 - 0.3)) and ((yf_zfd2 > 0.2) or (high < yf_jzdf))) and ((open >= close) or (close1 < (0 - 1)))),1,0);
yf_dks1:=barssince(yf_bdf5);
yf_tdmr:=barssince(yf_dmr_old);
yf_dmr:=(yf_dmr_old or (barscount(close) = 1));
yf_dcgj1:=((count(yf_bdf5,barslast(yf_dmr)) = 1) and yf_bdf5);
yf_dmrbuy:=((count(yf_dmr,barslast(yf_bdf5)) = 1) and yf_dmr);
yf_dmcsell:=barslast(yf_dmrbuy);
yf_dcg10:=barslast(yf_dcgj1);
yf_dcg11:=((sum(yf_dmrbuy,yf_dcg10) = 0) * yf_dcg10);
yf_dcgreal:=ref(dmcj,yf_dcg11);
yf_dmrj11:=ref(yf_dcgreal,1);
yf_dmrj1:=if((yf_dcgj1 = 1),(((close - dmcj) / dmcj) * 100),(((yf_dmrj - yf_dmrj11) / yf_dmrj11) * 100));
yf_dcg:=if((((yf_dcg11 = 0) and (yf_dcgj1 = 0)) and (yf_dmrbuy = 0)),0,yf_dmrj1);
短买入:=yf_dcgj1;
短卖出:=yf_dmrbuy;
短持股:=yf_dcg11;
短持股1:=yf_dcg;
短本次收益:=if((短买入 = 1),yf_dcgreal,if(((短持股 != 0) or (短卖出 = 1)),yf_dmrj11,0));
短买价:=if((短卖出 = 1),yf_dmrj,0);
stickline((短买入 = 1),open,close,3.2,0),colorred;
stickline((短买入 = 1),open,close,2.7,0),colorred;
stickline((短买入 = 1),open,close,1.5,0),colorred;
stickline((短买入 = 1),open,close,0.9,0),colorred;
stickline((短持股 > 0),open,close,3.2,1),colorffbbff;
stickline((短持股 > 0),open,close,2.7,0),colorff11ff;
stickline((短持股 > 0),open,close,2.1,0),colorff33ff;
stickline((短持股 > 0),open,close,1.5,0),colorff55ff;
stickline((短持股 > 0),open,close,1.2,0),colorff77ff;
stickline((短持股 > 0),open,close,0.9,0),colorff99ff;
stickline((短持股 > 0),open,close,0.3,0),colorffaaff;
stickline((短持股 > 0),open,close,0,0),colorffccff;
stickline((短持股 > 0),open,close,0,1),colorffeeff;
stickline((短卖出 = 1),open,close,3,0),color00dd00;
stickline((短卖出 = 1),open,close,2.7,0),color00dd00;
stickline((短卖出 = 1),open,close,2.5,0),color00dd00;
stickline((短卖出 = 1),open,close,2.1,0),color00dd00;
stickline((短卖出 = 1),open,close,1.8,0),color00dd00;
stickline((短卖出 = 1),open,close,1.5,0),color00dd00;
stickline((短卖出 = 1),open,close,0.9,0),color00dd00;
stickline((短卖出 = 1),open,close,0.3,0),color00dd00;
stickline((短卖出 = 1),open,close,1,0),color00dd00;
drawicon((短买入 = 1),l*0.97,5);
drawicon((短卖出 = 1),h*1.021,6);
短操盘状态:=if((短买入 = 1),1,if((短持股 > 0),2,if((短卖出 = 1),9,0))),linethick0;
明日趋势买卖点:ema(close,6),linethick0,colormagenta;
今日趋势买卖点:ref(明日趋势买卖点,1),linethick2;
乾坤线89:ma(close,89),colorgreen,linethick2;
乾坤线450:ma(close,450),colorblue,linethick3;
drawtext(close>0 and islastbar,明日趋势买卖点,'━明日趋势买卖点1'),colorgreen;
drawtext(close>0 and islastbar,今日趋势买卖点,'━今日趋势买卖点1'),colorred;
ta:=max(max((high-low),abs(ref(close,1)-high)),abs(ref(close,1)-low));
atr:=ema(ta,13);{}
var8a:=ref(close,1)-ref(atr,1);
永不套牢线:hhv(var8a,13), colorcyan,linethick2;
drawtext(islastbar,永不套牢线,' 永不套牢线'), colorwhite;
ab:=ema(((2*c+h+l)/4-llv(low,30))/(hhv(high,30)-llv(low,30))*100,8);
ba:=ema(ab,5);
a1{高}:=refdate(ref(hhv(h,96),5),date);
bb1{低}:=refdate(ref(llv(l,96),5),date);
箱顶:if(ab>0 and ab-ba<=0,a1,a1),colorgreen,dotline;
箱底:if(ab>0 and ab-ba<=0,bb1,bb1),colorred,dotline;
aa1:=hhv(h,7);
ab1:=llv(l,7);
c1:=(aa1+ab1)/2;
七k线半分位:c1,colorlimagenta,nodraw;
stickline(islastbar,c1,c1,133,1),colormagenta;
a15:=hhv(h,89);
d15:=llv(l,89);
c15:=(a15+d15)/2,linethick4;
stickline(islastbar,c15,c15,280,1),linethick4,colorwhite;
乾坤20线3:ma(close,20),colorred,linethick3;
ma144:ma(close,144),dotline;
ma250:ma(close,250),dotline;
ma610:ma(close,610),dotline;
周线1:="扣抵引用.a1#week";
周线2:="扣抵引用.a2#week";
周线3:="扣抵引用.a3#week";
月线1:="扣抵引用.a1#month";
月线2:="扣抵引用.a2#month";
月线3:="扣抵引用.a3#month";
周线:=(周线1+周线2+周线3)/3;
月线:=(月线1+月线2+月线3)/3;
周关键区域:if(currbarscount<=8,周线,drawnull),colorwhite,linethick2;
月关键区域:if(currbarscount<=20,月线,drawnull),colorffff00,linethick2;
周扣低:="扣抵引用.扣抵7#week";
月扣低:="扣抵引用.扣抵3#month";
月关键区域2:if(currbarscount<=10,月扣低,drawnull),dotline;
周关键区域2:if(currbarscount<=8,周扣低,drawnull),dotline;
hhh:=hhv(vol,10);
tt:=barslast(hhh=vol);
跌穿高量顶:=cross(ref(max(c,o),tt),c) ;
stickline(跌穿高量顶 ,(o+c)/2,(o+c)/2,10,0),colorwhite;
a198:=ema(ema(close,366),5);
a398:=(a198-ref(a198,1))*800/ref(a198,1);
b119:=peakbars(3,15,1)<10;
b229:=if(b119=1,2,0);
顶1:=if(b229=2,2,0);
顶:=(顶1>ref(顶1,1))and(a398>0);
峰顶:=ref(顶,1) and c/ref(c,1)<=0.99 ;
drawtext(峰顶 ,low*0.95,'顶'),colorwhite;
ee:=if(h<ref(l,1),ref(c,1),h);
ff:=if(l>ref(h,1),ref(c,1),l);
k线重心:(ff+ee)/2,nodraw;
zzdf:=(c-ref(c,1))/ref(c,1)*100;
bk:=abs(zzdf) >= 4;
sqk:=l>ref(c,1);
xqk:=h<ref(c,1);
tt1:=barslast(bk);
上限:if(ref(h,tt1)<ref(l,tt1+1),ref(c,tt1+1),ref(h,tt1)),nodraw,coloryellow;
下限:if(ref(l,tt1)>ref(h,tt1+1),ref(c,tt1+1),ref(l,tt1)),nodraw,coloryellow;
重心:(上限+下限)/2,nodraw,colorff8000;
线宽调整:=if(c<1.5,0.003,if(c<3,0.01,if(c<10,0.02,if(c<16,0.03,if(c<30,0.05,0.06)))))*(5/10);
线条长度:=3;
stickline(islastbar,上限+线宽调整,上限,tt1*8,0),coloryellow;
stickline(islastbar,下限+线宽调整,下限,tt1*8,0),coloryellow;
stickline(islastbar,重心+线宽调整,重心,tt1*8,0),colorblue;
hh:=(6*h+5*ref(h,1)+4*ref(h,2)+3*ref(h,3)+2*ref(h,4)+ref(h,5))/21;
ll:=(6*l+5*ref(l,1)+4*ref(l,2)+3*ref(l,3)+2*ref(l,4)+ref(l,5))/21;
aaa1:=if(c>ref(expmema(h,6),1),1,0);
aa2:=if(c<ref(expmema(l,6),1),-1,0);
aa3:=aaa1+aa2;
aa4:=if(aa3=0,ref(aa3,barslast(not(aa3=0))),aa3);
转折线:if(aa4=-1,ma(high,6),ma(low,6))linethick2,colorffffff;
上一指标公式:天地量 通达信天地指标
下一指标公式:布林宝塔变色主图副图 通达信公式变色
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文五域买卖 荆州量学金融终端主图八 通达信买卖终端仅供学习研究。