主力30分钟统计:主力30分超大户30分大户30分中户30分小股民30分
一共5个公式,主力30分 超大户30分 大户30分 中户30分 小股民30分
{主力30分}
input:n(1,1,2);
today:="分时ddx.ddx累积"<>0;{判断是否有正版数据}
today1:="lxddx.ddx#day"=0;{判断是否有雨杨数据}
drawtextabs(680,-12,ifs(today,'正版数据',ifs(today1,'引入数据','雨杨数据'))),linethick1,colorwhite;
drawtextabs(752,-12,ifs(n=1,'逐单','逐笔')),linethick1,colorwhite;
zt1:="wd.o12"{ordervol(1,2)};
yt1累积:="ddedata@bigorderscale"(1,2)*sum(vol,0);
yt1:=yt1累积-ref(yt1累积,1);
rt1累积:="wd.主单买#day"*sum(vol,0);
rt1:=rt1累积-ref(rt1累积,1);
t1:=if(today,zt1,if(today1,rt1,yt1));
t2:="wd.t12"{transactvol(1,2)};
zt3:="wd.o22"{ordervol(2,2)};
yt3累积:="ddedata@bigorderscale"(2,2)*sum(vol,0);
yt3:=yt3累积-ref(yt3累积,1);
rt3累积:="wd.主单卖#day"*sum(vol,0);
rt3:=rt3累积-ref(rt3累积,1);
t3:=if(today,zt3,if(today1,rt3,yt3));
t4:="wd.t22"{transactvol(2,2)};
zs1:="wd.d12"{ordernum(1,2)};
ys1:="ddedata@bigorderscale"(1,2);
rs1:="wd.主单买#day";
s1:=if(today,zs1,if(today1,rs1,ys1));
s2:="wd.l12"{transactnum(1,2)};
zs3:="wd.d22"{ordernum(2,2)};
ys3:="ddedata@bigorderscale"(2,2);
rs3:="wd.主单卖#day";
s3:=if(today,zs3,if(today1,rs3,ys3));
s4:="wd.l22"{transactnum(2,2)};
m1:=time<=100000;
m2:=time<=103000 and time>100000;
m3:=time<=110000 and time>103000;
m4:=time<=113000 and time>110000;
m5:=time<=133000 and time>130000;
m6:=time<=140000 and time>133000;
m7:=time<=143000 and time>140000;
m8:=time<=150000 and time>143000;
{数据1大买}
a1:=if(m1,s1,0);
a2:=if(m1,s2,0);
aa:=sum(if(n=1,a1,a2),0);
b1:=if(m2,s1,0);
b2:=if(m2,s2,0);
bb:=sum(if(n=1,b1,b2),0);
c1:=if(m3,s1,0);
c2:=if(m3,s2,0);
cc:=sum(if(n=1,c1,c2),0);
d1:=if(m4,s1,0);
d2:=if(m4,s2,0);
dd:=sum(if(n=1,d1,d2),0);
e1:=if(m5,s1,0);
e2:=if(m5,s2,0);
ee:=sum(if(n=1,e1,e2),0);
f1:=if(m6,s1,0);
f2:=if(m6,s2,0);
ff:=sum(if(n=1,f1,f2),0);
g1:=if(m7,s1,0);
g2:=if(m7,s2,0);
gg:=sum(if(n=1,g1,g2),0);
h1:=if(m8,s1,0);
h2:=if(m8,s2,0);
hh:=sum(if(n=1,h1,h2),0);
i1:=if(m1,t1,0);
i2:=if(m1,t2,0);
ii:=sum(if(n=1,i1,i2),0);
j1:=if(m2,t1,0);
j2:=if(m2,t2,0);
jj:=sum(if(n=1,j1,j2),0);
k1:=if(m3,t1,0);
k2:=if(m3,t2,0);
kk:=sum(if(n=1,k1,k2),0);
l1:=if(m4,t1,0);
l2:=if(m4,t2,0);
ll:=sum(if(n=1,l1,l2),0);
n1:=if(m5,t1,0);
n2:=if(m5,t2,0);
nn:=sum(if(n=1,n1,n2),0);
o1:=if(m6,t1,0);
o2:=if(m6,t2,0);
oo:=sum(if(n=1,o1,o2),0);
p1:=if(m7,t1,0);
p2:=if(m7,t2,0);
pp:=sum(if(n=1,p1,p2),0);
q1:=if(m8,t1,0);
q2:=if(m8,t2,0);
qq:=sum(if(n=1,q1,q2),0);
{数据2大卖}
a3:=if(m1,s3,0);
a4:=if(m1,s4,0);
aa1:=sum(if(n=1,a3,a4),0);
b3:=if(m2,s3,0);
b4:=if(m2,s4,0);
bb1:=sum(if(n=1,b3,b4),0);
c3:=if(m3,s3,0);
c4:=if(m3,s4,0);
cc1:=sum(if(n=1,c3,c4),0);
d3:=if(m4,s3,0);
d4:=if(m4,s4,0);
dd1:=sum(if(n=1,d3,d4),0);
e3:=if(m5,s3,0);
e4:=if(m5,s4,0);
ee1:=sum(if(n=1,e3,e4),0);
f3:=if(m6,s3,0);
f4:=if(m6,s4,0);
ff1:=sum(if(n=1,f3,f4),0);
g3:=if(m7,s3,0);
g4:=if(m7,s4,0);
gg1:=sum(if(n=1,g3,g4),0);
h3:=if(m8,s3,0);
h4:=if(m8,s4,0);
hh1:=sum(if(n=1,h3,h4),0);
i3:=if(m1,t3,0);
i4:=if(m1,t4,0);
ii1:=sum(if(n=1,i3,i4),0);
j3:=if(m2,t3,0);
j4:=if(m2,t4,0);
jj1:=sum(if(n=1,j3,j4),0);
k3:=if(m3,t3,0);
k4:=if(m3,t4,0);
kk1:=sum(if(n=1,k3,k4),0);
l3:=if(m4,t3,0);
l4:=if(m4,t4,0);
ll1:=sum(if(n=1,l3,l4),0);
n3:=if(m5,t3,0);
n4:=if(m5,t4,0);
nn1:=sum(if(n=1,n3,n4),0);
o3:=if(m6,t3,0);
o4:=if(m6,t4,0);
oo1:=sum(if(n=1,o3,o4),0);
p3:=if(m7,t3,0);
p4:=if(m7,t4,0);
pp1:=sum(if(n=1,p3,p4),0);
q3:=if(m8,t3,0);
q4:=if(m8,t4,0);
qq1:=sum(if(n=1,q3,q4),0);
{数据3总买总卖差}
mr:=if(n=1,sum(t1,0),sum(t2,0));
mc:=if(n=1,sum(t3,0),sum(t4,0));
mre:=mr*dynainfo(11)*100/10000;
mce:=mc*dynainfo(11)*100/10000;
流入资金:mre,color0000ff,linethick0,precis2;
流出资金:mce,colorffff00,linethick0,precis2;
mrb:=if(n=1,sum(s1,0),sum(s2,0));
mcb:=if(n=1,sum(s3,0),sum(s4,0));
rbg:=mr*100/mrb;
cbg:=mc*100/mcb;
js:=mr-mc;
je:=mre-mce;
净资金:je,color00ffff,linethick0,precis2;
jb:=mrb-mcb;
jc:=rbg-cbg;
rzb:=mr/dynainfo(8)*100;
czb:=mc/dynainfo(8)*100;
mr1:=if(n=1,t1,t2);
mc1:=if(n=1,t3,t4);
zmx:=(mr1-mc1)/dynainfo(8)*100;
cs:=ifs(n=1,'单','笔');
{表格}
drawrectabs(0,0,838,48,rgb(1,1,1)),color0000c0;
drawrectabs(0,0,696,13,rgb(210,150,0)),color0096d2;
drawrectabs(696,0,838,13,rgb(210,100,0)),color0064d2;
drawrectabs(0,0,87,48,0),color0000c0;
drawrectabs(0,0,174,48,0),color0000c0;
drawrectabs(0,0,261,48,0),color0000c0;
drawrectabs(0,0,348,48,0),color0000c0;
drawrectabs(0,0,435,48,0),color0000c0;
drawrectabs(0,0,522,48,0),color0000c0;
drawrectabs(0,0,609,48,0),color0000c0;
drawrectabs(0,0,696,48,0),color0000c0;
drawrectabs(0,0,838,48,0),color0000c0;
{显示文字数字}
drawtextabs(15,1,'9:30-10:00 10:00-10:30 10:30-11:00 11:00-11:30 13:00-13:30 13:30-14:00 14:00-14:30 14:30-15:00 '),colorffffff;
drawtextabs(36,13,numtostrn(aa,0)+cs),color0000ff,align2;
drawtextabs(36,24,numtostrn(aa1,0)+cs),colorffff00,align2;
drawtextabs(36,35,numtostrn(aa-aa1,0)+cs),color00ffff,align2;
drawtextabs(86,13,numtostrn(ii,0)+'手'),color0000ff,align2;
drawtextabs(86,24,numtostrn(ii1,0)+'手'),colorffff00,align2;
drawtextabs(86,35,numtostrn(ii-ii1,0)+'手'),color00ffff,align2;
drawtextabs(123,13,numtostrn(bb,0)+cs),color0000ff,align2;
drawtextabs(123,24,numtostrn(bb1,0)+cs),colorffff00,align2;
drawtextabs(123,35,numtostrn(bb-bb1,0)+cs),color00ffff,align2;
drawtextabs(173,13,numtostrn(jj,0)+'手'),color0000ff,align2;
drawtextabs(173,24,numtostrn(jj1,0)+'手'),colorffff00,align2;
drawtextabs(173,35,numtostrn(jj-jj1,0)+'手'),color00ffff,align2;
drawtextabs(210,13,numtostrn(cc,0)+cs),color0000ff,align2;
drawtextabs(210,24,numtostrn(cc1,0)+cs),colorffff00,align2;
drawtextabs(210,35,numtostrn(cc-cc1,0)+cs),color00ffff,align2;
drawtextabs(260,13,numtostrn(kk,0)+'手'),color0000ff,align2;
drawtextabs(260,24,numtostrn(kk1,0)+'手'),colorffff00,align2;
drawtextabs(260,35,numtostrn(kk-kk1,0)+'手'),color00ffff,align2;
drawtextabs(297,13,numtostrn(dd,0)+cs),color0000ff,align2;
drawtextabs(297,24,numtostrn(dd1,0)+cs),colorffff00,align2;
drawtextabs(297,35,numtostrn(dd-dd1,0)+cs),color00ffff,align2;
drawtextabs(347,13,numtostrn(ll,0)+'手'),color0000ff,align2;
drawtextabs(347,24,numtostrn(ll1,0)+'手'),colorffff00,align2;
drawtextabs(347,35,numtostrn(ll-ll1,0)+'手'),color00ffff,align2;
drawtextabs(384,13,numtostrn(ee,0)+cs),color0000ff,align2;
drawtextabs(384,24,numtostrn(ee1,0)+cs),colorffff00,align2;
drawtextabs(384,35,numtostrn(ee-ee1,0)+cs),color00ffff,align2;
drawtextabs(434,13,numtostrn(nn,0)+'手'),color0000ff,align2;
drawtextabs(434,24,numtostrn(nn1,0)+'手'),colorffff00,align2;
drawtextabs(434,35,numtostrn(nn-nn1,0)+'手'),color00ffff,align2;
drawtextabs(471,13,numtostrn(ff,0)+cs),color0000ff,align2;
drawtextabs(471,24,numtostrn(ff1,0)+cs),colorffff00,align2;
drawtextabs(471,35,numtostrn(ff-ff1,0)+cs),color00ffff,align2;
drawtextabs(521,13,numtostrn(oo,0)+'手'),color0000ff,align2;
drawtextabs(521,24,numtostrn(oo1,0)+'手'),colorffff00,align2;
drawtextabs(521,35,numtostrn(oo-oo1,0)+'手'),color00ffff,align2;
drawtextabs(558,13,numtostrn(gg,0)+cs),color0000ff,align2;
drawtextabs(558,24,numtostrn(gg1,0)+cs),colorffff00,align2;
drawtextabs(558,35,numtostrn(gg-gg1,0)+cs),color00ffff,align2;
drawtextabs(608,13,numtostrn(pp,0)+'手'),color0000ff,align2;
drawtextabs(608,24,numtostrn(pp1,0)+'手'),colorffff00,align2;
drawtextabs(608,35,numtostrn(pp-pp1,0)+'手'),color00ffff,align2;
drawtextabs(645,13,numtostrn(hh,0)+cs),color0000ff,align2;
drawtextabs(645,24,numtostrn(hh1,0)+cs),colorffff00,align2;
drawtextabs(645,35,numtostrn(hh-hh1,0)+cs),color00ffff,align2;
drawtextabs(695,13,numtostrn(qq,0)+'手'),color0000ff,align2;
drawtextabs(695,24,numtostrn(qq1,0)+'手'),colorffff00,align2;
drawtextabs(695,35,numtostrn(qq-qq1,0)+'手'),color00ffff,align2;
drawrectabs(767,2,767+rzb,12,rgb(255,30,30)),colorffffff;
drawrectabs(767,2,767-czb,12,rgb(30,30,255)),colorffffff;
drawtextabs(733,1,numtostrn(czb,2)+'%'),align2,color00ffff;
drawtextabs(837,1,numtostrn(rzb,2)+'%'),align2,color00ffff;
drawtextabs(740,13,numtostrn(mr,0)+'手'),color4848ff,align2;
drawtextabs(740,24,numtostrn(mc,0)+'手'),color48ff48,align2;
drawtextabs(740,35,numtostrn(js,0)+'手'),coloreeeeee,align2;
drawtextabs(773,13,numtostrn(mrb,0)+'笔'),color4848ff,align2;
drawtextabs(773,24,numtostrn(mcb,0)+'笔'),color48ff48,align2;
drawtextabs(773,35,numtostrn(jb,0)+'笔'),coloreeeeee,align2;
drawtextabs(837,13,numtostrn(rbg,0)+'股/笔'),color4848ff,align2;
drawtextabs(837,24,numtostrn(cbg,0)+'股/笔'),color48ff48,align2;
drawtextabs(837,35,numtostrn(jc,0)+'股/笔'),coloreeeeee,align2;
{超户30分}
input:n(1,1,2);
today:="分时ddx.ddx累积"<>0;{判断是否有正版数据}
today1:="lxddx.ddx#day"=0;{判断是否有雨杨数据}
drawtextabs(680,-12,ifs(today,'正版数据',ifs(today1,'引入数据','雨杨数据'))),linethick1,colorwhite;
drawtextabs(752,-12,ifs(n=1,'逐单','逐笔')),linethick1,colorwhite;
zt1:="wd.o13"{ordervol(1,3)};
yt1累积:="ddedata@bigorderscale"(1,3)*sum(vol,0);
yt1:=yt1累积-ref(yt1累积,1);
rt1累积:="wd.特单买#day"*sum(vol,0);
rt1:=rt1累积-ref(rt1累积,1);
t1:=if(today,zt1,if(today1,rt1,yt1));
t2:="wd.t13"{transactvol(1,3)};
zt3:="wd.o23"{ordervol(2,3)};
yt3累积:="ddedata@bigorderscale"(2,3)*sum(vol,0);
yt3:=yt3累积-ref(yt3累积,1);
rt3累积:="wd.特单卖#day"*sum(vol,0);
rt3:=rt3累积-ref(rt3累积,1);
t3:=if(today,zt3,if(today1,rt3,yt3));
t4:="wd.t23"{transactvol(2,3)};
zs1:="wd.d13"{ordernum(1,3)};
ys1:="ddedata@bigorderscale"(1,3);
rs1:="wd.特单买#day";
s1:=if(today,zs1,if(today1,rs1,ys1));
s2:="wd.l13"{transactnum(1,3)};
zs3:="wd.d23"{ordernum(2,3)};
ys3:="ddedata@bigorderscale"(2,3);
rs3:="wd.特单卖#day";
s3:=if(today,zs3,if(today1,rs3,ys3));
s4:="wd.l23"{transactnum(2,3)};
m1:=time<=100000;
m2:=time<=103000 and time>100000;
m3:=time<=110000 and time>103000;
m4:=time<=113000 and time>110000;
m5:=time<=133000 and time>130000;
m6:=time<=140000 and time>133000;
m7:=time<=143000 and time>140000;
m8:=time<=150000 and time>143000;
{数据1大买}
a1:=if(m1,s1,0);
a2:=if(m1,s2,0);
aa:=sum(if(n=1,a1,a2),0);
b1:=if(m2,s1,0);
b2:=if(m2,s2,0);
bb:=sum(if(n=1,b1,b2),0);
c1:=if(m3,s1,0);
c2:=if(m3,s2,0);
cc:=sum(if(n=1,c1,c2),0);
d1:=if(m4,s1,0);
d2:=if(m4,s2,0);
dd:=sum(if(n=1,d1,d2),0);
e1:=if(m5,s1,0);
e2:=if(m5,s2,0);
ee:=sum(if(n=1,e1,e2),0);
f1:=if(m6,s1,0);
f2:=if(m6,s2,0);
ff:=sum(if(n=1,f1,f2),0);
g1:=if(m7,s1,0);
g2:=if(m7,s2,0);
gg:=sum(if(n=1,g1,g2),0);
h1:=if(m8,s1,0);
h2:=if(m8,s2,0);
hh:=sum(if(n=1,h1,h2),0);
i1:=if(m1,t1,0);
i2:=if(m1,t2,0);
ii:=sum(if(n=1,i1,i2),0);
j1:=if(m2,t1,0);
j2:=if(m2,t2,0);
jj:=sum(if(n=1,j1,j2),0);
k1:=if(m3,t1,0);
k2:=if(m3,t2,0);
kk:=sum(if(n=1,k1,k2),0);
l1:=if(m4,t1,0);
l2:=if(m4,t2,0);
ll:=sum(if(n=1,l1,l2),0);
n1:=if(m5,t1,0);
n2:=if(m5,t2,0);
nn:=sum(if(n=1,n1,n2),0);
o1:=if(m6,t1,0);
o2:=if(m6,t2,0);
oo:=sum(if(n=1,o1,o2),0);
p1:=if(m7,t1,0);
p2:=if(m7,t2,0);
pp:=sum(if(n=1,p1,p2),0);
q1:=if(m8,t1,0);
q2:=if(m8,t2,0);
qq:=sum(if(n=1,q1,q2),0);
{数据2大卖}
a3:=if(m1,s3,0);
a4:=if(m1,s4,0);
aa1:=sum(if(n=1,a3,a4),0);
b3:=if(m2,s3,0);
b4:=if(m2,s4,0);
bb1:=sum(if(n=1,b3,b4),0);
c3:=if(m3,s3,0);
c4:=if(m3,s4,0);
cc1:=sum(if(n=1,c3,c4),0);
d3:=if(m4,s3,0);
d4:=if(m4,s4,0);
dd1:=sum(if(n=1,d3,d4),0);
e3:=if(m5,s3,0);
e4:=if(m5,s4,0);
ee1:=sum(if(n=1,e3,e4),0);
f3:=if(m6,s3,0);
f4:=if(m6,s4,0);
ff1:=sum(if(n=1,f3,f4),0);
g3:=if(m7,s3,0);
g4:=if(m7,s4,0);
gg1:=sum(if(n=1,g3,g4),0);
h3:=if(m8,s3,0);
h4:=if(m8,s4,0);
hh1:=sum(if(n=1,h3,h4),0);
i3:=if(m1,t3,0);
i4:=if(m1,t4,0);
ii1:=sum(if(n=1,i3,i4),0);
j3:=if(m2,t3,0);
j4:=if(m2,t4,0);
jj1:=sum(if(n=1,j3,j4),0);
k3:=if(m3,t3,0);
k4:=if(m3,t4,0);
kk1:=sum(if(n=1,k3,k4),0);
l3:=if(m4,t3,0);
l4:=if(m4,t4,0);
ll1:=sum(if(n=1,l3,l4),0);
n3:=if(m5,t3,0);
n4:=if(m5,t4,0);
nn1:=sum(if(n=1,n3,n4),0);
o3:=if(m6,t3,0);
o4:=if(m6,t4,0);
oo1:=sum(if(n=1,o3,o4),0);
p3:=if(m7,t3,0);
p4:=if(m7,t4,0);
pp1:=sum(if(n=1,p3,p4),0);
q3:=if(m8,t3,0);
q4:=if(m8,t4,0);
qq1:=sum(if(n=1,q3,q4),0);
{数据3总买总卖差}
mr:=if(n=1,sum(t1,0),sum(t2,0));
mc:=if(n=1,sum(t3,0),sum(t4,0));
mre:=mr*dynainfo(11)*100/10000;
mce:=mc*dynainfo(11)*100/10000;
流入资金:mre,color0000ff,linethick0,precis2;
流出资金:mce,colorffff00,linethick0,precis2;
mrb:=if(n=1,sum(s1,0),sum(s2,0));
mcb:=if(n=1,sum(s3,0),sum(s4,0));
rbg:=mr*100/mrb;
cbg:=mc*100/mcb;
js:=mr-mc;
je:=mre-mce;
净资金:je,color00ffff,linethick0,precis2;
jb:=mrb-mcb;
jc:=rbg-cbg;
rzb:=mr/dynainfo(8)*100;
czb:=mc/dynainfo(8)*100;
mr1:=if(n=1,t1,t2);
mc1:=if(n=1,t3,t4);
zmx:=(mr1-mc1)/dynainfo(8)*100;
cs:=ifs(n=1,'单','笔');
{表格}
drawrectabs(0,0,838,48,rgb(1,1,1)),color0000c0;
drawrectabs(0,0,696,13,rgb(210,150,0)),color0096d2;
drawrectabs(696,0,838,13,rgb(210,100,0)),color0064d2;
drawrectabs(0,0,87,48,0),color0000c0;
drawrectabs(0,0,174,48,0),color0000c0;
drawrectabs(0,0,261,48,0),color0000c0;
drawrectabs(0,0,348,48,0),color0000c0;
drawrectabs(0,0,435,48,0),color0000c0;
drawrectabs(0,0,522,48,0),color0000c0;
drawrectabs(0,0,609,48,0),color0000c0;
drawrectabs(0,0,696,48,0),color0000c0;
drawrectabs(0,0,838,48,0),color0000c0;
{显示文字数字}
drawtextabs(15,1,'9:30-10:00 10:00-10:30 10:30-11:00 11:00-11:30 13:00-13:30 13:30-14:00 14:00-14:30 14:30-15:00 '),colorffffff;
drawtextabs(36,13,numtostrn(aa,0)+cs),color0000ff,align2;
drawtextabs(36,24,numtostrn(aa1,0)+cs),colorffff00,align2;
drawtextabs(36,35,numtostrn(aa-aa1,0)+cs),color00ffff,align2;
drawtextabs(86,13,numtostrn(ii,0)+'手'),color0000ff,align2;
drawtextabs(86,24,numtostrn(ii1,0)+'手'),colorffff00,align2;
drawtextabs(86,35,numtostrn(ii-ii1,0)+'手'),color00ffff,align2;
drawtextabs(123,13,numtostrn(bb,0)+cs),color0000ff,align2;
drawtextabs(123,24,numtostrn(bb1,0)+cs),colorffff00,align2;
drawtextabs(123,35,numtostrn(bb-bb1,0)+cs),color00ffff,align2;
drawtextabs(173,13,numtostrn(jj,0)+'手'),color0000ff,align2;
drawtextabs(173,24,numtostrn(jj1,0)+'手'),colorffff00,align2;
drawtextabs(173,35,numtostrn(jj-jj1,0)+'手'),color00ffff,align2;
drawtextabs(210,13,numtostrn(cc,0)+cs),color0000ff,align2;
drawtextabs(210,24,numtostrn(cc1,0)+cs),colorffff00,align2;
drawtextabs(210,35,numtostrn(cc-cc1,0)+cs),color00ffff,align2;
drawtextabs(260,13,numtostrn(kk,0)+'手'),color0000ff,align2;
drawtextabs(260,24,numtostrn(kk1,0)+'手'),colorffff00,align2;
drawtextabs(260,35,numtostrn(kk-kk1,0)+'手'),color00ffff,align2;
drawtextabs(297,13,numtostrn(dd,0)+cs),color0000ff,align2;
drawtextabs(297,24,numtostrn(dd1,0)+cs),colorffff00,align2;
drawtextabs(297,35,numtostrn(dd-dd1,0)+cs),color00ffff,align2;
drawtextabs(347,13,numtostrn(ll,0)+'手'),color0000ff,align2;
drawtextabs(347,24,numtostrn(ll1,0)+'手'),colorffff00,align2;
drawtextabs(347,35,numtostrn(ll-ll1,0)+'手'),color00ffff,align2;
drawtextabs(384,13,numtostrn(ee,0)+cs),color0000ff,align2;
drawtextabs(384,24,numtostrn(ee1,0)+cs),colorffff00,align2;
drawtextabs(384,35,numtostrn(ee-ee1,0)+cs),color00ffff,align2;
drawtextabs(434,13,numtostrn(nn,0)+'手'),color0000ff,align2;
drawtextabs(434,24,numtostrn(nn1,0)+'手'),colorffff00,align2;
drawtextabs(434,35,numtostrn(nn-nn1,0)+'手'),color00ffff,align2;
drawtextabs(471,13,numtostrn(ff,0)+cs),color0000ff,align2;
drawtextabs(471,24,numtostrn(ff1,0)+cs),colorffff00,align2;
drawtextabs(471,35,numtostrn(ff-ff1,0)+cs),color00ffff,align2;
drawtextabs(521,13,numtostrn(oo,0)+'手'),color0000ff,align2;
drawtextabs(521,24,numtostrn(oo1,0)+'手'),colorffff00,align2;
drawtextabs(521,35,numtostrn(oo-oo1,0)+'手'),color00ffff,align2;
drawtextabs(558,13,numtostrn(gg,0)+cs),color0000ff,align2;
drawtextabs(558,24,numtostrn(gg1,0)+cs),colorffff00,align2;
drawtextabs(558,35,numtostrn(gg-gg1,0)+cs),color00ffff,align2;
drawtextabs(608,13,numtostrn(pp,0)+'手'),color0000ff,align2;
drawtextabs(608,24,numtostrn(pp1,0)+'手'),colorffff00,align2;
drawtextabs(608,35,numtostrn(pp-pp1,0)+'手'),color00ffff,align2;
drawtextabs(645,13,numtostrn(hh,0)+cs),color0000ff,align2;
drawtextabs(645,24,numtostrn(hh1,0)+cs),colorffff00,align2;
drawtextabs(645,35,numtostrn(hh-hh1,0)+cs),color00ffff,align2;
drawtextabs(695,13,numtostrn(qq,0)+'手'),color0000ff,align2;
drawtextabs(695,24,numtostrn(qq1,0)+'手'),colorffff00,align2;
drawtextabs(695,35,numtostrn(qq-qq1,0)+'手'),color00ffff,align2;
drawrectabs(767,2,767+rzb,12,rgb(255,30,30)),colorffffff;
drawrectabs(767,2,767-czb,12,rgb(30,30,255)),colorffffff;
drawtextabs(733,1,numtostrn(czb,2)+'%'),align2,color00ffff;
drawtextabs(837,1,numtostrn(rzb,2)+'%'),align2,color00ffff;
drawtextabs(740,13,numtostrn(mr,0)+'手'),color4848ff,align2;
drawtextabs(740,24,numtostrn(mc,0)+'手'),color48ff48,align2;
drawtextabs(740,35,numtostrn(js,0)+'手'),coloreeeeee,align2;
drawtextabs(773,13,numtostrn(mrb,0)+'笔'),color4848ff,align2;
drawtextabs(773,24,numtostrn(mcb,0)+'笔'),color48ff48,align2;
drawtextabs(773,35,numtostrn(jb,0)+'笔'),coloreeeeee,align2;
drawtextabs(837,13,numtostrn(rbg,0)+'股/笔'),color4848ff,align2;
drawtextabs(837,24,numtostrn(cbg,0)+'股/笔'),color48ff48,align2;
drawtextabs(837,35,numtostrn(jc,0)+'股/笔'),coloreeeeee,align2;
{大户30分}
input:n(1,1,2);
today:="分时ddx.ddx累积"<>0;{判断是否有正版数据}
today1:="lxddx.ddx#day"=0;{判断是否有雨杨数据}
drawtextabs(680,-12,ifs(today,'正版数据',ifs(today1,'引入数据','雨杨数据'))),linethick1,colorwhite;
drawtextabs(752,-12,ifs(n=1,'逐单','逐笔')),linethick1,colorwhite;
zt1:="wd.o12"-"wd.o13"{ordervol(1,2)-ordervol(1,3)};
yt1累积:=("ddedata@bigorderscale"(1,2)-"ddedata@bigorderscale"(1,3))*sum(vol,0);
yt1:=yt1累积-ref(yt1累积,1);
rt1累积:="wd.大单买#day"*sum(vol,0);
rt1:=rt1累积-ref(rt1累积,1);
t1:=if(today,zt1,if(today1,rt1,yt1));
t2:="wd.t12"-"wd.t13"{transactvol(1,2)-transactvol(1,3)};
zt3:="wd.o22"-"wd.o23"{ordervol(2,2)-ordervol(2,3)};
yt3累积:=("ddedata@bigorderscale"(2,2)-"ddedata@bigorderscale"(2,3))*sum(vol,0);
yt3:=yt3累积-ref(yt3累积,1);
rt3累积:="wd.大单卖#day"*sum(vol,0);
rt3:=rt3累积-ref(rt3累积,1);
t3:=if(today,zt3,if(today1,rt3,yt3));
t4:="wd.t22"-"wd.t23"{transactvol(2,2)-transactvol(2,3)};
zs1:="wd.d12"-"wd.d13"{ordernum(1,2)-ordernum(1,3)};
ys1:="ddedata@bigorderscale"(1,2)-"ddedata@bigorderscale"(1,3);
rs1:="wd.大单买#day";
s1:=if(today,zs1,if(today1,rs1,ys1));
s2:="wd.l12"-"wd.l13"{transactnum(1,2)-transactnum(1,3)};
zs3:="wd.d22"-"wd.d23"{ordernum(2,2)-ordernum(2,3)};
ys3:="ddedata@bigorderscale"(2,2)-"ddedata@bigorderscale"(2,3);
rs3:="wd.大单卖#day";
s3:=if(today,zs3,if(today1,rs3,ys3));
s4:="wd.l22"-"wd.l23"{transactnum(2,2)-transactnum(2,3)};
m1:=time<=100000;
m2:=time<=103000 and time>100000;
m3:=time<=110000 and time>103000;
m4:=time<=113000 and time>110000;
m5:=time<=133000 and time>130000;
m6:=time<=140000 and time>133000;
m7:=time<=143000 and time>140000;
m8:=time<=150000 and time>143000;
{数据1大买}
a1:=if(m1,s1,0);
a2:=if(m1,s2,0);
aa:=sum(if(n=1,a1,a2),0);
b1:=if(m2,s1,0);
b2:=if(m2,s2,0);
bb:=sum(if(n=1,b1,b2),0);
c1:=if(m3,s1,0);
c2:=if(m3,s2,0);
cc:=sum(if(n=1,c1,c2),0);
d1:=if(m4,s1,0);
d2:=if(m4,s2,0);
dd:=sum(if(n=1,d1,d2),0);
e1:=if(m5,s1,0);
e2:=if(m5,s2,0);
ee:=sum(if(n=1,e1,e2),0);
f1:=if(m6,s1,0);
f2:=if(m6,s2,0);
ff:=sum(if(n=1,f1,f2),0);
g1:=if(m7,s1,0);
g2:=if(m7,s2,0);
gg:=sum(if(n=1,g1,g2),0);
h1:=if(m8,s1,0);
h2:=if(m8,s2,0);
hh:=sum(if(n=1,h1,h2),0);
i1:=if(m1,t1,0);
i2:=if(m1,t2,0);
ii:=sum(if(n=1,i1,i2),0);
j1:=if(m2,t1,0);
j2:=if(m2,t2,0);
jj:=sum(if(n=1,j1,j2),0);
k1:=if(m3,t1,0);
k2:=if(m3,t2,0);
kk:=sum(if(n=1,k1,k2),0);
l1:=if(m4,t1,0);
l2:=if(m4,t2,0);
ll:=sum(if(n=1,l1,l2),0);
n1:=if(m5,t1,0);
n2:=if(m5,t2,0);
nn:=sum(if(n=1,n1,n2),0);
o1:=if(m6,t1,0);
o2:=if(m6,t2,0);
oo:=sum(if(n=1,o1,o2),0);
p1:=if(m7,t1,0);
p2:=if(m7,t2,0);
pp:=sum(if(n=1,p1,p2),0);
q1:=if(m8,t1,0);
q2:=if(m8,t2,0);
qq:=sum(if(n=1,q1,q2),0);
{数据2大卖}
a3:=if(m1,s3,0);
a4:=if(m1,s4,0);
aa1:=sum(if(n=1,a3,a4),0);
b3:=if(m2,s3,0);
b4:=if(m2,s4,0);
bb1:=sum(if(n=1,b3,b4),0);
c3:=if(m3,s3,0);
c4:=if(m3,s4,0);
cc1:=sum(if(n=1,c3,c4),0);
d3:=if(m4,s3,0);
d4:=if(m4,s4,0);
dd1:=sum(if(n=1,d3,d4),0);
e3:=if(m5,s3,0);
e4:=if(m5,s4,0);
ee1:=sum(if(n=1,e3,e4),0);
f3:=if(m6,s3,0);
f4:=if(m6,s4,0);
ff1:=sum(if(n=1,f3,f4),0);
g3:=if(m7,s3,0);
g4:=if(m7,s4,0);
gg1:=sum(if(n=1,g3,g4),0);
h3:=if(m8,s3,0);
h4:=if(m8,s4,0);
hh1:=sum(if(n=1,h3,h4),0);
i3:=if(m1,t3,0);
i4:=if(m1,t4,0);
ii1:=sum(if(n=1,i3,i4),0);
j3:=if(m2,t3,0);
j4:=if(m2,t4,0);
jj1:=sum(if(n=1,j3,j4),0);
k3:=if(m3,t3,0);
k4:=if(m3,t4,0);
kk1:=sum(if(n=1,k3,k4),0);
l3:=if(m4,t3,0);
l4:=if(m4,t4,0);
ll1:=sum(if(n=1,l3,l4),0);
n3:=if(m5,t3,0);
n4:=if(m5,t4,0);
nn1:=sum(if(n=1,n3,n4),0);
o3:=if(m6,t3,0);
o4:=if(m6,t4,0);
oo1:=sum(if(n=1,o3,o4),0);
p3:=if(m7,t3,0);
p4:=if(m7,t4,0);
pp1:=sum(if(n=1,p3,p4),0);
q3:=if(m8,t3,0);
q4:=if(m8,t4,0);
qq1:=sum(if(n=1,q3,q4),0);
{数据3总买总卖差}
mr:=if(n=1,sum(t1,0),sum(t2,0));
mc:=if(n=1,sum(t3,0),sum(t4,0));
mre:=mr*dynainfo(11)*100/10000;
mce:=mc*dynainfo(11)*100/10000;
流入资金:mre,color0000ff,linethick0,precis2;
流出资金:mce,colorffff00,linethick0,precis2;
mrb:=if(n=1,sum(s1,0),sum(s2,0));
mcb:=if(n=1,sum(s3,0),sum(s4,0));
rbg:=mr*100/mrb;
cbg:=mc*100/mcb;
js:=mr-mc;
je:=mre-mce;
净资金:je,color00ffff,linethick0,precis2;
jb:=mrb-mcb;
jc:=rbg-cbg;
rzb:=mr/dynainfo(8)*100;
czb:=mc/dynainfo(8)*100;
mr1:=if(n=1,t1,t2);
mc1:=if(n=1,t3,t4);
zmx:=(mr1-mc1)/dynainfo(8)*100;
cs:=ifs(n=1,'单','笔');
{表格}
drawrectabs(0,0,838,48,rgb(1,1,1)),color0000c0;
drawrectabs(0,0,696,13,rgb(210,150,0)),color0096d2;
drawrectabs(696,0,838,13,rgb(210,100,0)),color0064d2;
drawrectabs(0,0,87,48,0),color0000c0;
drawrectabs(0,0,174,48,0),color0000c0;
drawrectabs(0,0,261,48,0),color0000c0;
drawrectabs(0,0,348,48,0),color0000c0;
drawrectabs(0,0,435,48,0),color0000c0;
drawrectabs(0,0,522,48,0),color0000c0;
drawrectabs(0,0,609,48,0),color0000c0;
drawrectabs(0,0,696,48,0),color0000c0;
drawrectabs(0,0,838,48,0),color0000c0;
{显示文字数字}
drawtextabs(15,1,'9:30-10:00 10:00-10:30 10:30-11:00 11:00-11:30 13:00-13:30 13:30-14:00 14:00-14:30 14:30-15:00 '),colorffffff;
drawtextabs(36,13,numtostrn(aa,0)+cs),color0000ff,align2;
drawtextabs(36,24,numtostrn(aa1,0)+cs),colorffff00,align2;
drawtextabs(36,35,numtostrn(aa-aa1,0)+cs),color00ffff,align2;
drawtextabs(86,13,numtostrn(ii,0)+'手'),color0000ff,align2;
drawtextabs(86,24,numtostrn(ii1,0)+'手'),colorffff00,align2;
drawtextabs(86,35,numtostrn(ii-ii1,0)+'手'),color00ffff,align2;
drawtextabs(123,13,numtostrn(bb,0)+cs),color0000ff,align2;
drawtextabs(123,24,numtostrn(bb1,0)+cs),colorffff00,align2;
drawtextabs(123,35,numtostrn(bb-bb1,0)+cs),color00ffff,align2;
drawtextabs(173,13,numtostrn(jj,0)+'手'),color0000ff,align2;
drawtextabs(173,24,numtostrn(jj1,0)+'手'),colorffff00,align2;
drawtextabs(173,35,numtostrn(jj-jj1,0)+'手'),color00ffff,align2;
drawtextabs(210,13,numtostrn(cc,0)+cs),color0000ff,align2;
drawtextabs(210,24,numtostrn(cc1,0)+cs),colorffff00,align2;
drawtextabs(210,35,numtostrn(cc-cc1,0)+cs),color00ffff,align2;
drawtextabs(260,13,numtostrn(kk,0)+'手'),color0000ff,align2;
drawtextabs(260,24,numtostrn(kk1,0)+'手'),colorffff00,align2;
drawtextabs(260,35,numtostrn(kk-kk1,0)+'手'),color00ffff,align2;
drawtextabs(297,13,numtostrn(dd,0)+cs),color0000ff,align2;
drawtextabs(297,24,numtostrn(dd1,0)+cs),colorffff00,align2;
drawtextabs(297,35,numtostrn(dd-dd1,0)+cs),color00ffff,align2;
drawtextabs(347,13,numtostrn(ll,0)+'手'),color0000ff,align2;
drawtextabs(347,24,numtostrn(ll1,0)+'手'),colorffff00,align2;
drawtextabs(347,35,numtostrn(ll-ll1,0)+'手'),color00ffff,align2;
drawtextabs(384,13,numtostrn(ee,0)+cs),color0000ff,align2;
drawtextabs(384,24,numtostrn(ee1,0)+cs),colorffff00,align2;
drawtextabs(384,35,numtostrn(ee-ee1,0)+cs),color00ffff,align2;
drawtextabs(434,13,numtostrn(nn,0)+'手'),color0000ff,align2;
drawtextabs(434,24,numtostrn(nn1,0)+'手'),colorffff00,align2;
drawtextabs(434,35,numtostrn(nn-nn1,0)+'手'),color00ffff,align2;
drawtextabs(471,13,numtostrn(ff,0)+cs),color0000ff,align2;
drawtextabs(471,24,numtostrn(ff1,0)+cs),colorffff00,align2;
drawtextabs(471,35,numtostrn(ff-ff1,0)+cs),color00ffff,align2;
drawtextabs(521,13,numtostrn(oo,0)+'手'),color0000ff,align2;
drawtextabs(521,24,numtostrn(oo1,0)+'手'),colorffff00,align2;
drawtextabs(521,35,numtostrn(oo-oo1,0)+'手'),color00ffff,align2;
drawtextabs(558,13,numtostrn(gg,0)+cs),color0000ff,align2;
drawtextabs(558,24,numtostrn(gg1,0)+cs),colorffff00,align2;
drawtextabs(558,35,numtostrn(gg-gg1,0)+cs),color00ffff,align2;
drawtextabs(608,13,numtostrn(pp,0)+'手'),color0000ff,align2;
drawtextabs(608,24,numtostrn(pp1,0)+'手'),colorffff00,align2;
drawtextabs(608,35,numtostrn(pp-pp1,0)+'手'),color00ffff,align2;
drawtextabs(645,13,numtostrn(hh,0)+cs),color0000ff,align2;
drawtextabs(645,24,numtostrn(hh1,0)+cs),colorffff00,align2;
drawtextabs(645,35,numtostrn(hh-hh1,0)+cs),color00ffff,align2;
drawtextabs(695,13,numtostrn(qq,0)+'手'),color0000ff,align2;
drawtextabs(695,24,numtostrn(qq1,0)+'手'),colorffff00,align2;
drawtextabs(695,35,numtostrn(qq-qq1,0)+'手'),color00ffff,align2;
drawrectabs(767,2,767+rzb,12,rgb(255,30,30)),colorffffff;
drawrectabs(767,2,767-czb,12,rgb(30,30,255)),colorffffff;
drawtextabs(733,1,numtostrn(czb,2)+'%'),align2,color00ffff;
drawtextabs(837,1,numtostrn(rzb,2)+'%'),align2,color00ffff;
drawtextabs(740,13,numtostrn(mr,0)+'手'),color4848ff,align2;
drawtextabs(740,24,numtostrn(mc,0)+'手'),color48ff48,align2;
drawtextabs(740,35,numtostrn(js,0)+'手'),coloreeeeee,align2;
drawtextabs(773,13,numtostrn(mrb,0)+'笔'),color4848ff,align2;
drawtextabs(773,24,numtostrn(mcb,0)+'笔'),color48ff48,align2;
drawtextabs(773,35,numtostrn(jb,0)+'笔'),coloreeeeee,align2;
drawtextabs(837,13,numtostrn(rbg,0)+'股/笔'),color4848ff,align2;
drawtextabs(837,24,numtostrn(cbg,0)+'股/笔'),color48ff48,align2;
drawtextabs(837,35,numtostrn(jc,0)+'股/笔'),coloreeeeee,align2;
{中户30分}
input:n(1,1,2);
today:="分时ddx.ddx累积"<>0;{判断是否有正版数据}
today1:="lxddx.ddx#day"=0;{判断是否有雨杨数据}
drawtextabs(680,-12,ifs(today,'正版数据',ifs(today1,'引入数据','雨杨数据'))),linethick1,colorwhite;
drawtextabs(752,-12,ifs(n=1,'逐单','逐笔')),linethick1,colorwhite;
zt1:="wd.o11"-"wd.o12"{ordervol(1,1)-ordervol(1,2)};
yt1累积:=("ddedata@bigorderscale"(1,1)-"ddedata@bigorderscale"(1,2))*sum(vol,0);
yt1:=yt1累积-ref(yt1累积,1);
rt1累积:="wd.中单买#day"*sum(vol,0);
rt1:=rt1累积-ref(rt1累积,1);
t1:=if(today,zt1,if(today1,rt1,yt1));
t2:="wd.t11"-"wd.t12"{transactvol(1,1)-transactvol(1,2)};
zt3:="wd.o21"-"wd.o22"{ordervol(2,1)-ordervol(2,2)};
yt3累积:=("ddedata@bigorderscale"(2,1)-"ddedata@bigorderscale"(2,2))*sum(vol,0);
yt3:=yt3累积-ref(yt3累积,1);
rt3累积:="wd.中单卖#day"*sum(vol,0);
rt3:=rt3累积-ref(rt3累积,1);
t3:=if(today,zt3,if(today1,rt3,yt3));
t4:="wd.t21"-"wd.t22"{transactvol(2,1)-transactvol(2,2)};
zs1:="wd.d11"-"wd.d12"{ordernum(1,1)-ordernum(1,2)};
ys1:="ddedata@bigorderscale"(1,1)-"ddedata@bigorderscale"(1,2);
rs1:="wd.中单买#day";
s1:=if(today,zs1,if(today1,rs1,ys1));
s2:="wd.l11"-"wd.l12"{transactnum(1,1)-transactnum(1,2)};
zs3:="wd.d21"-"wd.d22"{ordernum(2,1)-ordernum(2,2)};
ys3:="ddedata@bigorderscale"(2,1)-"ddedata@bigorderscale"(2,2);
rs3:="wd.中单卖#day";
s3:=if(today,zs3,if(today1,rs3,ys3));
s4:="wd.l21"-"wd.l22"{transactnum(2,1)-transactnum(2,2)};
m1:=time<=100000;
m2:=time<=103000 and time>100000;
m3:=time<=110000 and time>103000;
m4:=time<=113000 and time>110000;
m5:=time<=133000 and time>130000;
m6:=time<=140000 and time>133000;
m7:=time<=143000 and time>140000;
m8:=time<=150000 and time>143000;
{数据1大买}
a1:=if(m1,s1,0);
a2:=if(m1,s2,0);
aa:=sum(if(n=1,a1,a2),0);
b1:=if(m2,s1,0);
b2:=if(m2,s2,0);
bb:=sum(if(n=1,b1,b2),0);
c1:=if(m3,s1,0);
c2:=if(m3,s2,0);
cc:=sum(if(n=1,c1,c2),0);
d1:=if(m4,s1,0);
d2:=if(m4,s2,0);
dd:=sum(if(n=1,d1,d2),0);
e1:=if(m5,s1,0);
e2:=if(m5,s2,0);
ee:=sum(if(n=1,e1,e2),0);
f1:=if(m6,s1,0);
f2:=if(m6,s2,0);
ff:=sum(if(n=1,f1,f2),0);
g1:=if(m7,s1,0);
g2:=if(m7,s2,0);
gg:=sum(if(n=1,g1,g2),0);
h1:=if(m8,s1,0);
h2:=if(m8,s2,0);
hh:=sum(if(n=1,h1,h2),0);
i1:=if(m1,t1,0);
i2:=if(m1,t2,0);
ii:=sum(if(n=1,i1,i2),0);
j1:=if(m2,t1,0);
j2:=if(m2,t2,0);
jj:=sum(if(n=1,j1,j2),0);
k1:=if(m3,t1,0);
k2:=if(m3,t2,0);
kk:=sum(if(n=1,k1,k2),0);
l1:=if(m4,t1,0);
l2:=if(m4,t2,0);
ll:=sum(if(n=1,l1,l2),0);
n1:=if(m5,t1,0);
n2:=if(m5,t2,0);
nn:=sum(if(n=1,n1,n2),0);
o1:=if(m6,t1,0);
o2:=if(m6,t2,0);
oo:=sum(if(n=1,o1,o2),0);
p1:=if(m7,t1,0);
p2:=if(m7,t2,0);
pp:=sum(if(n=1,p1,p2),0);
q1:=if(m8,t1,0);
q2:=if(m8,t2,0);
qq:=sum(if(n=1,q1,q2),0);
{数据2大卖}
a3:=if(m1,s3,0);
a4:=if(m1,s4,0);
aa1:=sum(if(n=1,a3,a4),0);
b3:=if(m2,s3,0);
b4:=if(m2,s4,0);
bb1:=sum(if(n=1,b3,b4),0);
c3:=if(m3,s3,0);
c4:=if(m3,s4,0);
cc1:=sum(if(n=1,c3,c4),0);
d3:=if(m4,s3,0);
d4:=if(m4,s4,0);
dd1:=sum(if(n=1,d3,d4),0);
e3:=if(m5,s3,0);
e4:=if(m5,s4,0);
ee1:=sum(if(n=1,e3,e4),0);
f3:=if(m6,s3,0);
f4:=if(m6,s4,0);
ff1:=sum(if(n=1,f3,f4),0);
g3:=if(m7,s3,0);
g4:=if(m7,s4,0);
gg1:=sum(if(n=1,g3,g4),0);
h3:=if(m8,s3,0);
h4:=if(m8,s4,0);
hh1:=sum(if(n=1,h3,h4),0);
i3:=if(m1,t3,0);
i4:=if(m1,t4,0);
ii1:=sum(if(n=1,i3,i4),0);
j3:=if(m2,t3,0);
j4:=if(m2,t4,0);
jj1:=sum(if(n=1,j3,j4),0);
k3:=if(m3,t3,0);
k4:=if(m3,t4,0);
kk1:=sum(if(n=1,k3,k4),0);
l3:=if(m4,t3,0);
l4:=if(m4,t4,0);
ll1:=sum(if(n=1,l3,l4),0);
n3:=if(m5,t3,0);
n4:=if(m5,t4,0);
nn1:=sum(if(n=1,n3,n4),0);
o3:=if(m6,t3,0);
o4:=if(m6,t4,0);
oo1:=sum(if(n=1,o3,o4),0);
p3:=if(m7,t3,0);
p4:=if(m7,t4,0);
pp1:=sum(if(n=1,p3,p4),0);
q3:=if(m8,t3,0);
q4:=if(m8,t4,0);
qq1:=sum(if(n=1,q3,q4),0);
{数据3总买总卖差}
mr:=if(n=1,sum(t1,0),sum(t2,0));
mc:=if(n=1,sum(t3,0),sum(t4,0));
mre:=mr*dynainfo(11)*100/10000;
mce:=mc*dynainfo(11)*100/10000;
流入资金:mre,color0000ff,linethick0,precis2;
流出资金:mce,colorffff00,linethick0,precis2;
mrb:=if(n=1,sum(s1,0),sum(s2,0));
mcb:=if(n=1,sum(s3,0),sum(s4,0));
rbg:=mr*100/mrb;
cbg:=mc*100/mcb;
js:=mr-mc;
je:=mre-mce;
净资金:je,color00ffff,linethick0,precis2;
jb:=mrb-mcb;
jc:=rbg-cbg;
rzb:=mr/dynainfo(8)*100;
czb:=mc/dynainfo(8)*100;
mr1:=if(n=1,t1,t2);
mc1:=if(n=1,t3,t4);
zmx:=(mr1-mc1)/dynainfo(8)*100;
cs:=ifs(n=1,'单','笔');
{表格}
drawrectabs(0,0,838,48,rgb(1,1,1)),color0000c0;
drawrectabs(0,0,696,13,rgb(210,150,0)),color0096d2;
drawrectabs(696,0,838,13,rgb(210,100,0)),color0064d2;
drawrectabs(0,0,87,48,0),color0000c0;
drawrectabs(0,0,174,48,0),color0000c0;
drawrectabs(0,0,261,48,0),color0000c0;
drawrectabs(0,0,348,48,0),color0000c0;
drawrectabs(0,0,435,48,0),color0000c0;
drawrectabs(0,0,522,48,0),color0000c0;
drawrectabs(0,0,609,48,0),color0000c0;
drawrectabs(0,0,696,48,0),color0000c0;
drawrectabs(0,0,838,48,0),color0000c0;
{显示文字数字}
drawtextabs(15,1,'9:30-10:00 10:00-10:30 10:30-11:00 11:00-11:30 13:00-13:30 13:30-14:00 14:00-14:30 14:30-15:00 '),colorffffff;
drawtextabs(36,13,numtostrn(aa,0)+cs),color0000ff,align2;
drawtextabs(36,24,numtostrn(aa1,0)+cs),colorffff00,align2;
drawtextabs(36,35,numtostrn(aa-aa1,0)+cs),color00ffff,align2;
drawtextabs(86,13,numtostrn(ii,0)+'手'),color0000ff,align2;
drawtextabs(86,24,numtostrn(ii1,0)+'手'),colorffff00,align2;
drawtextabs(86,35,numtostrn(ii-ii1,0)+'手'),color00ffff,align2;
drawtextabs(123,13,numtostrn(bb,0)+cs),color0000ff,align2;
drawtextabs(123,24,numtostrn(bb1,0)+cs),colorffff00,align2;
drawtextabs(123,35,numtostrn(bb-bb1,0)+cs),color00ffff,align2;
drawtextabs(173,13,numtostrn(jj,0)+'手'),color0000ff,align2;
drawtextabs(173,24,numtostrn(jj1,0)+'手'),colorffff00,align2;
drawtextabs(173,35,numtostrn(jj-jj1,0)+'手'),color00ffff,align2;
drawtextabs(210,13,numtostrn(cc,0)+cs),color0000ff,align2;
drawtextabs(210,24,numtostrn(cc1,0)+cs),colorffff00,align2;
drawtextabs(210,35,numtostrn(cc-cc1,0)+cs),color00ffff,align2;
drawtextabs(260,13,numtostrn(kk,0)+'手'),color0000ff,align2;
drawtextabs(260,24,numtostrn(kk1,0)+'手'),colorffff00,align2;
drawtextabs(260,35,numtostrn(kk-kk1,0)+'手'),color00ffff,align2;
drawtextabs(297,13,numtostrn(dd,0)+cs),color0000ff,align2;
drawtextabs(297,24,numtostrn(dd1,0)+cs),colorffff00,align2;
drawtextabs(297,35,numtostrn(dd-dd1,0)+cs),color00ffff,align2;
drawtextabs(347,13,numtostrn(ll,0)+'手'),color0000ff,align2;
drawtextabs(347,24,numtostrn(ll1,0)+'手'),colorffff00,align2;
drawtextabs(347,35,numtostrn(ll-ll1,0)+'手'),color00ffff,align2;
drawtextabs(384,13,numtostrn(ee,0)+cs),color0000ff,align2;
drawtextabs(384,24,numtostrn(ee1,0)+cs),colorffff00,align2;
drawtextabs(384,35,numtostrn(ee-ee1,0)+cs),color00ffff,align2;
drawtextabs(434,13,numtostrn(nn,0)+'手'),color0000ff,align2;
drawtextabs(434,24,numtostrn(nn1,0)+'手'),colorffff00,align2;
drawtextabs(434,35,numtostrn(nn-nn1,0)+'手'),color00ffff,align2;
drawtextabs(471,13,numtostrn(ff,0)+cs),color0000ff,align2;
drawtextabs(471,24,numtostrn(ff1,0)+cs),colorffff00,align2;
drawtextabs(471,35,numtostrn(ff-ff1,0)+cs),color00ffff,align2;
drawtextabs(521,13,numtostrn(oo,0)+'手'),color0000ff,align2;
drawtextabs(521,24,numtostrn(oo1,0)+'手'),colorffff00,align2;
drawtextabs(521,35,numtostrn(oo-oo1,0)+'手'),color00ffff,align2;
drawtextabs(558,13,numtostrn(gg,0)+cs),color0000ff,align2;
drawtextabs(558,24,numtostrn(gg1,0)+cs),colorffff00,align2;
drawtextabs(558,35,numtostrn(gg-gg1,0)+cs),color00ffff,align2;
drawtextabs(608,13,numtostrn(pp,0)+'手'),color0000ff,align2;
drawtextabs(608,24,numtostrn(pp1,0)+'手'),colorffff00,align2;
drawtextabs(608,35,numtostrn(pp-pp1,0)+'手'),color00ffff,align2;
drawtextabs(645,13,numtostrn(hh,0)+cs),color0000ff,align2;
drawtextabs(645,24,numtostrn(hh1,0)+cs),colorffff00,align2;
drawtextabs(645,35,numtostrn(hh-hh1,0)+cs),color00ffff,align2;
drawtextabs(695,13,numtostrn(qq,0)+'手'),color0000ff,align2;
drawtextabs(695,24,numtostrn(qq1,0)+'手'),colorffff00,align2;
drawtextabs(695,35,numtostrn(qq-qq1,0)+'手'),color00ffff,align2;
drawrectabs(767,2,767+rzb,12,rgb(255,30,30)),colorffffff;
drawrectabs(767,2,767-czb,12,rgb(30,30,255)),colorffffff;
drawtextabs(733,1,numtostrn(czb,2)+'%'),align2,color00ffff;
drawtextabs(837,1,numtostrn(rzb,2)+'%'),align2,color00ffff;
drawtextabs(740,13,numtostrn(mr,0)+'手'),color4848ff,align2;
drawtextabs(740,24,numtostrn(mc,0)+'手'),color48ff48,align2;
drawtextabs(740,35,numtostrn(js,0)+'手'),coloreeeeee,align2;
drawtextabs(773,13,numtostrn(mrb,0)+'笔'),color4848ff,align2;
drawtextabs(773,24,numtostrn(mcb,0)+'笔'),color48ff48,align2;
drawtextabs(773,35,numtostrn(jb,0)+'笔'),coloreeeeee,align2;
drawtextabs(837,13,numtostrn(rbg,0)+'股/笔'),color4848ff,align2;
drawtextabs(837,24,numtostrn(cbg,0)+'股/笔'),color48ff48,align2;
drawtextabs(837,35,numtostrn(jc,0)+'股/笔'),coloreeeeee,align2;
{小股民30分}
input:n(1,1,2);
today:="分时ddx.ddx累积"<>0;{判断是否有正版数据}
today1:="lxddx.ddx#day"=0;{判断是否有雨杨数据}
drawtextabs(680,-12,ifs(today,'正版数据',ifs(today1,'引入数据','雨杨数据'))),linethick1,colorwhite;
drawtextabs(752,-12,ifs(n=1,'逐单','逐笔')),linethick1,colorwhite;
zt1:="wd.o10"-"wd.o11"{ordervol(1,0)-ordervol(1,1)};
yt1累积:=("ddedata@bigorderscale"(1,0)-"ddedata@bigorderscale"(1,1))*sum(vol,0);
yt1:=yt1累积-ref(yt1累积,1);
rt1累积:="wd.散单买#day"*sum(vol,0);
rt1:=rt1累积-ref(rt1累积,1);
t1:=if(today,zt1,if(today1,rt1,yt1));
t2:="wd.t10"-"wd.t11"{transactvol(1,0)-transactvol(1,1)};
zt3:="wd.o20"-"wd.o21"{ordervol(2,0)-ordervol(2,1)};
yt3累积:=("ddedata@bigorderscale"(2,0)-"ddedata@bigorderscale"(2,1))*sum(vol,0);
yt3:=yt3累积-ref(yt3累积,1);
rt3累积:="wd.散单卖#day"*sum(vol,0);
rt3:=rt3累积-ref(rt3累积,1);
t3:=if(today,zt3,if(today1,rt3,yt3));
t4:="wd.t20"-"wd.t21"{transactvol(2,0)-transactvol(2,1)};
zs1:="wd.d10"-"wd.d11"{ordernum(1,0)-ordernum(1,1)};
ys1:="ddedata@bigorderscale"(1,0)-"ddedata@bigorderscale"(1,1);
rs1:="wd.散单买#day";
s1:=if(today,zs1,if(today1,rs1,ys1));
s2:="wd.l10"-"wd.l11"{transactnum(1,0)-transactnum(1,1)};
zs3:="wd.d20"-"wd.d21"{ordernum(2,0)-ordernum(2,1)};
ys3:="ddedata@bigorderscale"(2,0)-"ddedata@bigorderscale"(2,1);
rs3:="wd.散单卖#day";
s3:=if(today,zs3,if(today1,rs3,ys3));
s4:="wd.l20"-"wd.l21"{transactnum(2,0)-transactnum(2,1)};
m1:=time<=100000;
m2:=time<=103000 and time>100000;
m3:=time<=110000 and time>103000;
m4:=time<=113000 and time>110000;
m5:=time<=133000 and time>130000;
m6:=time<=140000 and time>133000;
m7:=time<=143000 and time>140000;
m8:=time<=150000 and time>143000;
{数据1大买}
a1:=if(m1,s1,0);
a2:=if(m1,s2,0);
aa:=sum(if(n=1,a1,a2),0);
b1:=if(m2,s1,0);
b2:=if(m2,s2,0);
bb:=sum(if(n=1,b1,b2),0);
c1:=if(m3,s1,0);
c2:=if(m3,s2,0);
cc:=sum(if(n=1,c1,c2),0);
d1:=if(m4,s1,0);
d2:=if(m4,s2,0);
dd:=sum(if(n=1,d1,d2),0);
e1:=if(m5,s1,0);
e2:=if(m5,s2,0);
ee:=sum(if(n=1,e1,e2),0);
f1:=if(m6,s1,0);
f2:=if(m6,s2,0);
ff:=sum(if(n=1,f1,f2),0);
g1:=if(m7,s1,0);
g2:=if(m7,s2,0);
gg:=sum(if(n=1,g1,g2),0);
h1:=if(m8,s1,0);
h2:=if(m8,s2,0);
hh:=sum(if(n=1,h1,h2),0);
i1:=if(m1,t1,0);
i2:=if(m1,t2,0);
ii:=sum(if(n=1,i1,i2),0);
j1:=if(m2,t1,0);
j2:=if(m2,t2,0);
jj:=sum(if(n=1,j1,j2),0);
k1:=if(m3,t1,0);
k2:=if(m3,t2,0);
kk:=sum(if(n=1,k1,k2),0);
l1:=if(m4,t1,0);
l2:=if(m4,t2,0);
ll:=sum(if(n=1,l1,l2),0);
n1:=if(m5,t1,0);
n2:=if(m5,t2,0);
nn:=sum(if(n=1,n1,n2),0);
o1:=if(m6,t1,0);
o2:=if(m6,t2,0);
oo:=sum(if(n=1,o1,o2),0);
p1:=if(m7,t1,0);
p2:=if(m7,t2,0);
pp:=sum(if(n=1,p1,p2),0);
q1:=if(m8,t1,0);
q2:=if(m8,t2,0);
qq:=sum(if(n=1,q1,q2),0);
{数据2大卖}
a3:=if(m1,s3,0);
a4:=if(m1,s4,0);
aa1:=sum(if(n=1,a3,a4),0);
b3:=if(m2,s3,0);
b4:=if(m2,s4,0);
bb1:=sum(if(n=1,b3,b4),0);
c3:=if(m3,s3,0);
c4:=if(m3,s4,0);
cc1:=sum(if(n=1,c3,c4),0);
d3:=if(m4,s3,0);
d4:=if(m4,s4,0);
dd1:=sum(if(n=1,d3,d4),0);
e3:=if(m5,s3,0);
e4:=if(m5,s4,0);
ee1:=sum(if(n=1,e3,e4),0);
f3:=if(m6,s3,0);
f4:=if(m6,s4,0);
ff1:=sum(if(n=1,f3,f4),0);
g3:=if(m7,s3,0);
g4:=if(m7,s4,0);
gg1:=sum(if(n=1,g3,g4),0);
h3:=if(m8,s3,0);
h4:=if(m8,s4,0);
hh1:=sum(if(n=1,h3,h4),0);
i3:=if(m1,t3,0);
i4:=if(m1,t4,0);
ii1:=sum(if(n=1,i3,i4),0);
j3:=if(m2,t3,0);
j4:=if(m2,t4,0);
jj1:=sum(if(n=1,j3,j4),0);
k3:=if(m3,t3,0);
k4:=if(m3,t4,0);
kk1:=sum(if(n=1,k3,k4),0);
l3:=if(m4,t3,0);
l4:=if(m4,t4,0);
ll1:=sum(if(n=1,l3,l4),0);
n3:=if(m5,t3,0);
n4:=if(m5,t4,0);
nn1:=sum(if(n=1,n3,n4),0);
o3:=if(m6,t3,0);
o4:=if(m6,t4,0);
oo1:=sum(if(n=1,o3,o4),0);
p3:=if(m7,t3,0);
p4:=if(m7,t4,0);
pp1:=sum(if(n=1,p3,p4),0);
q3:=if(m8,t3,0);
q4:=if(m8,t4,0);
qq1:=sum(if(n=1,q3,q4),0);
{数据3总买总卖差}
mr:=if(n=1,sum(t1,0),sum(t2,0));
mc:=if(n=1,sum(t3,0),sum(t4,0));
mre:=mr*dynainfo(11)*100/10000;
mce:=mc*dynainfo(11)*100/10000;
流入资金:mre,color0000ff,linethick0,precis2;
流出资金:mce,colorffff00,linethick0,precis2;
mrb:=if(n=1,sum(s1,0),sum(s2,0));
mcb:=if(n=1,sum(s3,0),sum(s4,0));
rbg:=mr*100/mrb;
cbg:=mc*100/mcb;
js:=mr-mc;
je:=mre-mce;
净资金:je,color00ffff,linethick0,precis2;
jb:=mrb-mcb;
jc:=rbg-cbg;
rzb:=mr/dynainfo(8)*100;
czb:=mc/dynainfo(8)*100;
mr1:=if(n=1,t1,t2);
mc1:=if(n=1,t3,t4);
zmx:=(mr1-mc1)/dynainfo(8)*100;
cs:=ifs(n=1,'单','笔');
{表格}
drawrectabs(0,0,838,48,rgb(1,1,1)),color0000c0;
drawrectabs(0,0,696,13,rgb(210,150,0)),color0096d2;
drawrectabs(696,0,838,13,rgb(210,100,0)),color0064d2;
drawrectabs(0,0,87,48,0),color0000c0;
drawrectabs(0,0,174,48,0),color0000c0;
drawrectabs(0,0,261,48,0),color0000c0;
drawrectabs(0,0,348,48,0),color0000c0;
drawrectabs(0,0,435,48,0),color0000c0;
drawrectabs(0,0,522,48,0),color0000c0;
drawrectabs(0,0,609,48,0),color0000c0;
drawrectabs(0,0,696,48,0),color0000c0;
drawrectabs(0,0,838,48,0),color0000c0;
{显示文字数字}
drawtextabs(15,1,'9:30-10:00 10:00-10:30 10:30-11:00 11:00-11:30 13:00-13:30 13:30-14:00 14:00-14:30 14:30-15:00 '),colorffffff;
drawtextabs(36,13,numtostrn(aa,0)+cs),color0000ff,align2;
drawtextabs(36,24,numtostrn(aa1,0)+cs),colorffff00,align2;
drawtextabs(36,35,numtostrn(aa-aa1,0)+cs),color00ffff,align2;
drawtextabs(86,13,numtostrn(ii,0)+'手'),color0000ff,align2;
drawtextabs(86,24,numtostrn(ii1,0)+'手'),colorffff00,align2;
drawtextabs(86,35,numtostrn(ii-ii1,0)+'手'),color00ffff,align2;
drawtextabs(123,13,numtostrn(bb,0)+cs),color0000ff,align2;
drawtextabs(123,24,numtostrn(bb1,0)+cs),colorffff00,align2;
drawtextabs(123,35,numtostrn(bb-bb1,0)+cs),color00ffff,align2;
drawtextabs(173,13,numtostrn(jj,0)+'手'),color0000ff,align2;
drawtextabs(173,24,numtostrn(jj1,0)+'手'),colorffff00,align2;
drawtextabs(173,35,numtostrn(jj-jj1,0)+'手'),color00ffff,align2;
drawtextabs(210,13,numtostrn(cc,0)+cs),color0000ff,align2;
drawtextabs(210,24,numtostrn(cc1,0)+cs),colorffff00,align2;
drawtextabs(210,35,numtostrn(cc-cc1,0)+cs),color00ffff,align2;
drawtextabs(260,13,numtostrn(kk,0)+'手'),color0000ff,align2;
drawtextabs(260,24,numtostrn(kk1,0)+'手'),colorffff00,align2;
drawtextabs(260,35,numtostrn(kk-kk1,0)+'手'),color00ffff,align2;
drawtextabs(297,13,numtostrn(dd,0)+cs),color0000ff,align2;
drawtextabs(297,24,numtostrn(dd1,0)+cs),colorffff00,align2;
drawtextabs(297,35,numtostrn(dd-dd1,0)+cs),color00ffff,align2;
drawtextabs(347,13,numtostrn(ll,0)+'手'),color0000ff,align2;
drawtextabs(347,24,numtostrn(ll1,0)+'手'),colorffff00,align2;
drawtextabs(347,35,numtostrn(ll-ll1,0)+'手'),color00ffff,align2;
drawtextabs(384,13,numtostrn(ee,0)+cs),color0000ff,align2;
drawtextabs(384,24,numtostrn(ee1,0)+cs),colorffff00,align2;
drawtextabs(384,35,numtostrn(ee-ee1,0)+cs),color00ffff,align2;
drawtextabs(434,13,numtostrn(nn,0)+'手'),color0000ff,align2;
drawtextabs(434,24,numtostrn(nn1,0)+'手'),colorffff00,align2;
drawtextabs(434,35,numtostrn(nn-nn1,0)+'手'),color00ffff,align2;
drawtextabs(471,13,numtostrn(ff,0)+cs),color0000ff,align2;
drawtextabs(471,24,numtostrn(ff1,0)+cs),colorffff00,align2;
drawtextabs(471,35,numtostrn(ff-ff1,0)+cs),color00ffff,align2;
drawtextabs(521,13,numtostrn(oo,0)+'手'),color0000ff,align2;
drawtextabs(521,24,numtostrn(oo1,0)+'手'),colorffff00,align2;
drawtextabs(521,35,numtostrn(oo-oo1,0)+'手'),color00ffff,align2;
drawtextabs(558,13,numtostrn(gg,0)+cs),color0000ff,align2;
drawtextabs(558,24,numtostrn(gg1,0)+cs),colorffff00,align2;
drawtextabs(558,35,numtostrn(gg-gg1,0)+cs),color00ffff,align2;
drawtextabs(608,13,numtostrn(pp,0)+'手'),color0000ff,align2;
drawtextabs(608,24,numtostrn(pp1,0)+'手'),colorffff00,align2;
drawtextabs(608,35,numtostrn(pp-pp1,0)+'手'),color00ffff,align2;
drawtextabs(645,13,numtostrn(hh,0)+cs),color0000ff,align2;
drawtextabs(645,24,numtostrn(hh1,0)+cs),colorffff00,align2;
drawtextabs(645,35,numtostrn(hh-hh1,0)+cs),color00ffff,align2;
drawtextabs(695,13,numtostrn(qq,0)+'手'),color0000ff,align2;
drawtextabs(695,24,numtostrn(qq1,0)+'手'),colorffff00,align2;
drawtextabs(695,35,numtostrn(qq-qq1,0)+'手'),color00ffff,align2;
drawrectabs(767,2,767+rzb,12,rgb(255,30,30)),colorffffff;
drawrectabs(767,2,767-czb,12,rgb(30,30,255)),colorffffff;
drawtextabs(733,1,numtostrn(czb,2)+'%'),align2,color00ffff;
drawtextabs(837,1,numtostrn(rzb,2)+'%'),align2,color00ffff;
drawtextabs(740,13,numtostrn(mr,0)+'手'),color4848ff,align2;
drawtextabs(740,24,numtostrn(mc,0)+'手'),color48ff48,align2;
drawtextabs(740,35,numtostrn(js,0)+'手'),coloreeeeee,align2;
drawtextabs(773,13,numtostrn(mrb,0)+'笔'),color4848ff,align2;
drawtextabs(773,24,numtostrn(mcb,0)+'笔'),color48ff48,align2;
drawtextabs(773,35,numtostrn(jb,0)+'笔'),coloreeeeee,align2;
drawtextabs(837,13,numtostrn(rbg,0)+'股/笔'),color4848ff,align2;
drawtextabs(837,24,numtostrn(cbg,0)+'股/笔'),color48ff48,align2;
drawtextabs(837,35,numtostrn(jc,0)+'股/笔'),coloreeeeee,align2;
上一指标公式:涨停家数副图公式下载 大智慧涨停
下一指标公式:成交量红柱选股准副图公式下载 大智慧源码选股
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文主力30分钟统计:主力30分超大户30分大户30分中户30分小股民30分公式下载 大智慧统计主力仅供学习研究。