您现在的位置:好股网 >> 股票公式 >> 飞狐股票公式 >> 一键转帖:精准分时辅助看盘指标-资金MACD (飞狐分时主图、源码、贴图、说明、公式文件)

精准分时辅助看盘指标-资金MACD (飞狐分时主图、源码、贴图、说明、公式文件)


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2011-12-01 08:30:00
公式简介:

分时辅助看盘指标-资金MACD是我以前编用的,今早在地主会里发出,为使大家都分享,特在此发贴。分时主图在飞狐里的设置很简单,点右键点公式编辑,勾主图叠加,进入分时图,双击此指标就在分时图里显示了。分时图会因买卖的意愿变换背景颜色,

源码如下: N=403 (N 403 1 1000)
买卖意愿:=(SUM(BUYVOL,0)-SUM(SELLVOL,0))/DYNAINFO(8)*100;
DRAWGBK(买卖意愿>0,COLORRGB(25,15,0),COLORRGB(10,160,0),0);
DRAWGBK(买卖意愿<=0,COLORRGB(20,10,0) ,COLORRGB(50,90,50),0);

a1:="macd.diff";
a2:="macd.dea";
a3:="macd.macd";
rc:=DYNAINFO( 3);
s2:=sma(c,2,1);
s6:=sma(c,6,1);
dk:=2*(s2-s6);
STICKLINE(dk>0,rc,rc+dk,0,1),COLORRED;
STICKLINE(dk<0,rc,rc+dk,0,1),COLORCYAN;

HS:=VOL/SUM(VOL,BARSCOUNT(C));
FBMAX:dma(c,hs),linethick2,COLORgreen;
LC:=REF(CLOSE,1);
RSI1:=((SMA(MAX((CLOSE - LC),0),14,1) / SMA(ABS((CLOSE - LC)),14,1)) * 100);
DD:=BARSLAST(CROSS(RSI1,50));
SS:=BARSLAST(CROSS(50,RSI1));
HH1:=REF(HIGH,DD);
HH2:=REF(HIGH,(DD - 1));
LL1:=REF(LOW,SS);
LL2:=REF(LOW,(SS - 1));
压力线:=MAX(HH1,HH2),LINETHICK2,color0000;
支撑线:=MIN(LL1,LL2),LINETHICK2,colorFF0000;

A:=REF(HHV(HIGH,240),1);
AA:=A[DATACOUNT];
B:=REF(LLV(LOW,240),1);
BB:=B[DATACOUNT];
ZJ1:=(((HIGH + LOW) + (2 * CLOSE)) / 4);
ZJ2:=(((ZJ1 - EMA(ZJ1,21)) / STD(ZJ1,21)) * 100);
ZJ3:=EMA(ZJ2,5);
ZJ4:=EMA(ZJ3,2);
ZJ5:=EMA(ZJ4,2);
ZJ6:=(((3 * ZJ4) - (2 * ZJ5)) / 2);
IF((ZJ6 > 90),(AA * 0.995),AA),LINETHICK2,colorAAEE33;
IF((ZJ6 < (0 - 95)),(BB * 1.005),BB),LINETHICK2,colorDD66AA;

{技术指标}

Var41:=IF(DYNAINFO( 7)<REF(ASKPRICE(1),1) AND REF(BIDVOL(1),1)>0 AND REF(ASKVOL(1),1)>0,BUYVOL,0);
Var42:=IF((BUYVOL>REF(ASKVOL(1),1) AND DYNAINFO( 7)=REF(ASKPRICE(1),1) AND REF(BIDVOL(1),1)>0),BUYVOL,0);
Var42a:=IF(Var42>0,Var42-REF(ASKVOL(1),1),0);
Var4b:=Var41+Var42a;
Var51:=IF(BUYVOL>REF(ASKVOL(1),1) AND DYNAINFO( 7)>REF(ASKPRICE(1),1) AND DYNAINFO( 7)<REF(ASKPRICE(2),1),BUYVOL,0);
Var52:=IF(BUYVOL>(REF(ASKVOL(1),1)+REF(ASKVOL(2),1)) AND DYNAINFO( 7)=REF(ASKPRICE(2),1) AND REF(BIDVOL(1),1)>0,BUYVOL,0);
Var52a:=IF(Var52>0,Var52-(REF(ASKVOL(1),1)+REF(ASKVOL(2),1)),0);
Var5b:=Var51+Var52a;
Var61:=IF(BUYVOL>REF(ASKVOL(1),1)+REF(ASKVOL(2),1) AND DYNAINFO( 7)>REF(ASKPRICE(2),1) AND DYNAINFO( 7)<REF(ASKPRICE(3),1),BUYVOL,0);
Var62:=IF(BUYVOL>(REF(ASKVOL(1),1)+REF(ASKVOL(2),1)+REF(ASKVOL(3),1)) AND DYNAINFO( 7)=REF(ASKPRICE(3),1) AND REF(BIDVOL(1),1)>0,BUYVOL,0);
Var62a:=IF( Var62>0,Var62-(REF(ASKVOL(1),1)+REF(ASKVOL(2),1)+REF(ASKVOL(3),1)),0);
Var6b:=Var61+Var62a;
VarA2:=IF(SELLVOL>REF(BIDVOL(1),1) AND DYNAINFO( 7)=REF(BIDPRICE(1),1) AND REF(ASKVOL(1),1)>0,SELLVOL,0);
VarAa:=IF(VarA2>0,SELLVOL-REF(BIDVOL(1),1),0);
VarB1:=IF(SELLVOL>REF(BIDVOL(1),1) AND DYNAINFO( 7)<REF(BIDPRICE(1),1) AND DYNAINFO( 7)>REF(BIDPRICE(2),1),SELLVOL,0);
VarB2:=IF(SELLVOL>(REF(BIDVOL(1),1)+REF(BIDVOL(2),1)) AND DYNAINFO( 7)=REF(BIDPRICE(2),1) AND REF(ASKVOL(1),1)>0,SELLVOL,0);
VarBa:=if(VarB2>0,SELLVOL-(REF(BIDVOL(1),1)+REF(BIDVOL(2),1)),0);
VarAb:=VarB1+VarBa;{技术指标}
VarC1:=IF(SELLVOL>REF(BIDVOL(1),1)+REF(BIDVOL(2),1) AND DYNAINFO( 7)<REF(BIDPRICE(2),1) AND DYNAINFO( 7)>REF(BIDPRICE(3),1),SELLVOL,0);
VarC2:=IF(SELLVOL>(REF(BIDVOL(1),1)+REF(BIDVOL(2),1)+REF(BIDVOL(3),1)) AND DYNAINFO( 7)=REF(BIDPRICE(3),1) AND REF(ASKVOL(1),1)>0,SELLVOL,0);
VarCa:=if(VarC2>0,SELLVOL-(REF(BIDVOL(1),1)+REF(BIDVOL(2),1)+REF(BIDVOL(3),1)),0);
VarAc:=VarC1+VarCa;{技术指标}
VarF:=IF(ASKVOL(1)<REF(ASKVOL(1),1) AND ASKPRICE(1)=REF(ASKPRICE(1),1) AND DYNAINFO( 7)<REF(ASKPRICE(1),1) AND (REF(ASKVOL(1),1)-ASKVOL(1))<>SELLVOL,REF(ASKVOL(1),1)-ASKVOL(1),0);
Var10:=IF(ASKVOL(3)<REF(ASKVOL(3),1) AND ASKPRICE(3)=REF(ASKPRICE(3),1) AND DYNAINFO( 7)<REF(ASKPRICE(3),1),REF(ASKVOL(3),1)-ASKVOL(3),0);
Var11:=IF((REF(BIDVOL(1),1)+REF(BIDVOL(2),1)+REF(BIDVOL(3),1))=0 AND REF(ASKVOL(1),1)>0 AND (REF(ASKVOL(1),1)-ASKVOL(1))<SELLVOL AND ASKVOL(1)<REF(ASKVOL(1),1) AND ASKPRICE(1)=REF(ASKPRICE(1),1) AND DYNAINFO( 7)<REF(ASKPRICE(1),1),REF(ASKVOL(1),1)-ASKVOL(1),0);
Var12:=IF(ASKVOL(2)<REF(ASKVOL(3),1) AND ASKPRICE(2)=REF(ASKPRICE(3),1) AND DYNAINFO( 7)<REF(ASKPRICE(3),1),REF(ASKVOL(3),1)-ASKVOL(2),0);
Var13:=IF(ASKVOL(3)<REF(ASKVOL(2),1) AND ASKPRICE(3)=REF(ASKPRICE(2),1) AND DYNAINFO( 7)<REF(ASKPRICE(2),1),REF(ASKVOL(2),1)-ASKVOL(3),0);
Var14:=IF(BIDVOL(1)<REF(BIDVOL(1),1) AND BIDPRICE(1)=REF(BIDPRICE(1),1) AND DYNAINFO( 7)>REF(BIDPRICE(1),1) AND REF(BIDVOL(1),1)-BIDVOL(1)<>BUYVOL,REF(BIDVOL(1),1)-BIDVOL(1),0);
Var15:=IF(BIDVOL(3)<REF(BIDVOL(3),1) AND BIDPRICE(3)=REF(BIDPRICE(3),1) AND DYNAINFO( 7)>REF(BIDPRICE(3),1),REF(BIDVOL(3),1)-BIDVOL(3),0);
Var16:=IF(REF(ASKVOL(1),1)+REF(ASKVOL(2),1)+REF(ASKVOL(3),1)=0 AND REF(BIDVOL(1),1)>0 AND REF(BIDVOL(1),1)-BIDVOL(1)<BUYVOL AND BIDVOL(1)<REF(BIDVOL(1),1) AND BIDPRICE(1)=REF(BIDPRICE(1),1) AND DYNAINFO( 7)=REF(BIDPRICE(1),1),REF(BIDVOL(1),1)-BIDVOL(1),0);
Var17:=IF(BIDVOL(2)<REF(BIDVOL(3),1) AND BIDPRICE(2)=REF(BIDPRICE(3),1) AND DYNAINFO( 7)>REF(BIDPRICE(3),1),REF(BIDVOL(3),1)-BIDVOL(2),0); {技术指标}
Var18:=IF(BIDVOL(3)<REF(BIDVOL(2),1) AND BIDPRICE(3)=REF(BIDPRICE(2),1) AND DYNAINFO( 7)>REF(BIDPRICE(2),1),REF(BIDVOL(2),1)-BIDVOL(3),0);
委买:=BIDVOL(1)+BIDVOL(2)+BIDVOL(3);
委卖:=ASKVOL(1)+ASKVOL(2)+ASKVOL(3);
委买总量:=SUM(委买,0);
委卖总量:=SUM(委卖,0);
www1:=SUM(BUYVOL,0)-SUM(SELLVOL,0);
买卖存量:=REF(www1,1)+www1;
总成交:=DYNAINFO(8)*100;
流通:=FINANCE(7)/10000;
市值:=DYNAINFO(7)*FINANCE(7)/10000;
老杨1:=1.0; 老杨2:=1.25; 老杨3:=1.55; 老杨4:=1.85; 老杨5:=2.0; 老杨6:=2.15; 老杨7:=2.45; 老杨8:=2.75;{技术指标}
系数:=IF(流通<1.0,老杨1,IF(流通>=1.0 AND 流通<5.0,老杨2,IF(流通>=5.0 AND 流通<10,老杨3,IF(流通>=10 AND 流通<20,老杨4,IF(流通>=20 AND 流通<50,老杨5,IF(流通>=50 AND 流通<100,老杨6,IF(流通>=100 AND 流通<300,老杨7,IF(流通>=300,老杨8,0))))))));
门限:=(CAPITAL*系数)/3000;
特门限:=门限*3.35;
XS:=门限;
特大买:=IF(BUYVOL>=特门限,BUYVOL,0);
特大卖:=IF(SELLVOL>=特门限,SELLVOL,0);
大单买:=IF((BUYVOL>=门限 and BUYVOL<特门限),BUYVOL,0);
大单卖:=IF((SELLVOL>=门限 and SELLVOL<特门限),SELLVOL,0);
小单买:=IF(BUYVOL<门限,BUYVOL,0);
小单卖:=IF(SELLVOL<门限,SELLVOL,0);
特大买入:=SUM(特大买,0);
特大卖出:=SUM(特大卖,0);
大单买入:=SUM(大单买,0);{技术指标}
大单卖出:=SUM(大单卖,0);
小单买入:=SUM(小单买,0);
小单卖出:=SUM(小单卖,0);
特买金:=SUM(IF(BUYVOL>=特门限,BUYVOL,0)*c,0);
特卖金:=SUM(IF(SELLVOL>=特门限,SELLVOL,0)*c,0);
大买金:=SUM(IF((BUYVOL>=门限 and BUYVOL<特门限),BUYVOL,0)*c,0);
大卖金:=SUM(IF((SELLVOL>门限 and SELLVOL<特门限),SELLVOL,0)*c,0);
小买金:=SUM(IF(BUYVOL<门限,BUYVOL,0)*c,0);
小卖金:=SUM(IF(SELLVOL<门限,SELLVOL,0)*c,0);
特买均价:=特买金/特大买入;
特卖均价:=特卖金/特大卖出;
大单买均价:=大买金/大单买入;
大单卖均价:=大卖金/大单卖出;
小单买均价:=小买金/小单买入;
小单卖均价:=小卖金/小单卖出;
大单净量:=大单买入-大单卖出;{技术指标}
总成交:=(特大买入+特大卖出+大单买入+大单卖出+小单买入+小单卖出);
大单标准:=门限*100/10000;
特单标准:=特门限*100/10000;
千钧剑:=大单净量/CAPITAL;
资金大单进量:=特大买入+大单买入;
资金大单出量:=特大卖出+大单卖出;
筹码量差:=资金大单进量-资金大单出量;
买入:=BUYVOL;
卖出:=SELLVOL;{技术指标}
撤卖:=IF((VarF+Var10+Var11+Var12+Var13)>BUYVOL,VarF+Var10+Var11+Var12+Var13-BUYVOL,0);
撤买:=IF((Var14+Var15+Var16+Var17+Var18)>SELLVOL,Var14+Var15+Var16+Var17+Var18-SELLVOL,0);
总撤买:=sum(撤买,0);
总撤卖:=sum(撤卖,0);
对敲买:=(Var4b+Var5b+Var6b);
对敲卖:=(VarAa+VarAb+VarAc);
大对买:=if(对敲买>=XS,对敲买,0);
大对卖:=if(对敲卖>=XS,对敲卖,0);
大对敲买:=sum(大对买,0);
大对敲卖:=sum(大对卖,0);
zqm:=对敲买+大对买;
zqm0:=对敲卖+大对卖;
总敲买:=sum(zqm,0);
总敲卖:=sum(zqm0,0);
VarA:=IF(BUYVOL<=REF(ASKVOL(1),1)+REF(ASKVOL(2),1)+REF(ASKVOL(3),1) AND CLOSE>=REF(ASKPRICE(3),1),BUYVOL,0);
上扫:=sum(INTPART(IF(((VarA>100 AND VarA<500) or VarA>=500),BUYVOL,0)),0),LINETHICK;
VarB:=IF(SELLVOL<=REF(BIDVOL(1),1)+REF(BIDVOL(2),1)+REF(BIDVOL(3),1) AND CLOSE<=REF(BIDPRICE(3),1),SELLVOL,0);
下扫:=sum(INTPART(IF(((VarB>100 AND VarA<500) or VarB>=500),SELLVOL,0)),0),LINETHICK;
总上扫:=sum(上扫,0);
总下扫:=sum(下扫,0);
每笔均额:=AMOUNT/DYNAINFO(51);
大单笔数:=COUNT(大单买入+大单卖出>门限,0);
人均持股:=(FINANCE(7)/FINANCE(50))*10000;
散户跟风系数:=(小单买入/总成交)*100;
主力买卖比:=(大买金/大卖金);
DRAWTEXTEX(c,1,20,20,'特大买入:'+NUMTOSTR(特大买入,0)+' 占:'+NUMTOSTR(FLOOR(特大买入/总成交*100),1)+'%'),LINETHICK2,Color00FFFF;
DRAWTEXTEX(c,1,20,60,'特大卖出:'+NUMTOSTR(特大卖出,0)+' 占:'+NUMTOSTR(FLOOR(特大卖出/总成交*100),1)+'%'),Color00FF00;
DRAWTEXTEX(c,1,20,100,'特大净量:'+NUMTOSTR((特大买入-特大卖出),0)),ColorFFFFAF;
DRAWTEXTEX(c,1,20,140,'大单净量:'+NUMTOSTR(+(大单买入-大单卖出),0)),ColorFFFFAF;
DRAWTEXTEX(c,1,440,20,'大单买入:'+NUMTOSTR(大单买入,0)+' 占:'+NUMTOSTR(FLOOR(大单买入/总成交*100),0)+'%'),Color0000FF;
DRAWTEXTEX(c,1,440,60,'大单卖出:'+NUMTOSTR(大单卖出,0)+' 占:'+NUMTOSTR(FLOOR(大单卖出/总成交*100),0)+'%'),Color00FF00;
DRAWTEXTEX(c,1,440,100,'小单买入:'+NUMTOSTR(小单买入,0)+' 占:'+NUMTOSTR(FLOOR(小单买入/总成交*100),0)+'%'),ColorFFFFAF;
DRAWTEXTEX(c,1,440,140,'小单卖出:'+NUMTOSTR(小单卖出,0)+' 占:'+NUMTOSTR(FLOOR(小单卖出/总成交*100),0)+'%'),ColorFFFFAF;

DRAWTEXTEX(c,1,20,1050,'买入:'+NUMTOSTR(买入,0)),Color0000FF;
DRAWTEXTEX(c,1,20,1100,'卖出:'+NUMTOSTR(卖出,0)),Color00FF00;
DRAWTEXTEX(c,1,20,1150,'撤买:'+NUMTOSTR(撤买,0)),Color0000FF;
DRAWTEXTEX(c,1,20,1200,'撤卖:'+NUMTOSTR(撤卖,0)),Color00FF00;
DRAWTEXTEX(c,1,20,1250,'总撤买:'+NUMTOSTR(总撤买,0)),ColorFFFFAF;
DRAWTEXTEX(c,1,20,1300,'总撤卖:'+NUMTOSTR(总撤卖,0)),ColorFFFFAF;
DRAWTEXTEX(c,1,20,1350,'主力进场筹码:'+NUMTOSTR(资金大单进量,0)),ColorFFFFFF;
DRAWTEXTEX(c,1,20,1400,'当前上五档:'+NUMTOSTR(委买总量,0)),ColorFFFFFF;

DRAWTEXTEX(c,1,190,1250,'总对敲买:'+NUMTOSTR(总敲买,0)),ColorFFFFAF;
DRAWTEXTEX(c,1,190,1300,'总对敲卖:'+NUMTOSTR(总敲卖,0)),ColorFFFFAF;
DRAWTEXTEX(c,1,190,1050,'对敲买:'+NUMTOSTR(对敲买,0)),Color0000FF;
DRAWTEXTEX(c,1,190,1100,'对敲卖:'+NUMTOSTR(对敲卖,0)),Color00FF00;
DRAWTEXTEX(C,1,190,1150,'大对敲买:'+NUMTOSTR(大对敲买,0)+''),Color0000FF;
DRAWTEXTEX(C,1,190,1200,'大对敲卖:'+NUMTOSTR(大对敲卖,0)+''),Color00FF00;
DRAWTEXTEX(c,1,320,1350,'主力出场筹码:'+NUMTOSTR(资金大单出量,0)),Color00FF00;
DRAWTEXTEX(c,1,320,1400,'当前下五档:'+NUMTOSTR(委卖总量,0)),ColorFFFFFF;

DRAWTEXTEX(c,1,220,100,'特大买均价:'+NUMTOSTR(特买均价,2)),Color0000FF;
DRAWTEXTEX(c,1,220,140,'特大卖均价:'+NUMTOSTR(特卖均价,2)),Color00FF00;
DRAWTEXTEX(c,1,780,20,'大单买均价:'+NUMTOSTR(大单买均价,2)),Color0000FF;
DRAWTEXTEX(c,1,780,60,'大单卖均价:'+NUMTOSTR(大单卖均价,2)),Color00FF00;
DRAWTEXTEX(c,1,780,100,'小单买均价:'+NUMTOSTR(小单买均价,2)),ColorFFFFAF;
DRAWTEXTEX(c,1,780,140,'小单卖均价:'+NUMTOSTR(小单卖均价,2)),ColorFFFFAF;

DRAWTEXTEX(c,1,420,1050,'上扫单:'+NUMTOSTR(上扫,0)),Color0000FF;
DRAWTEXTEX(c,1,420,1100,'下扫单:'+NUMTOSTR(下扫,0)),Color00FF00;
DRAWTEXTEX(c,1,420,1150,'上扫总计:'+NUMTOSTR(总上扫,0)),Color0000FF;
DRAWTEXTEX(c,1,420,1200,'下扫总计:'+NUMTOSTR(总下扫,0)),Color00FF00;
DRAWTEXTEX(c,1,420,1250,'笔均额:'+NUMTOSTR(每笔均额,0)),ColorFFFFAF;
DRAWTEXTEX(c,1,420,1300,'特大单笔数:'+NUMTOSTR(大单笔数,0)),ColorFFFFAF;

DRAWTEXTEX(c,1,630,1050,'人均持股:'+NUMTOSTR(人均持股,0)+'【万股】'),ColorFFFF00;
DRAWTEXTEX(c,1,630,1100,'特大标准:'+NUMTOSTR(特单标准,2)+'万元/单笔'),ColorFFFF00;
DRAWTEXTEX(c,1,630,1150,'大单标准:'+NUMTOSTR(大单标准,2)+'万元/单笔'),ColorFFFF00;
DRAWTEXTEX(c,1,630,1200,'散户跟风系数:'+NUMTOSTR(FLOOR(散户跟风系数),2)+'%'),ColorFFFF00;
DRAWTEXTEX(c,1,630,1250,'今日成交股数:'+NUMTOSTR(总成交,0)+'(股)'),ColorFFFFAF;
DRAWTEXTEX(c,1,630,1300,'今日成交金额:'+NUMTOSTR((总成交*DYNAINFO(7))/10000,2)+'(万元)'),ColorFFFFAF;
DRAWTEXTEX(c,1,630,1350,'筹码量差:'+NUMTOSTR(筹码量差,0)),Color00FFFF;
DRAWTEXTEX(c,1,630,1400,'五档买卖差:'+NUMTOSTR(买卖存量,0)),ColorFFFFFF;

DRAWTEXTEX(c,1,20,180,'大单买卖比:'+NUMTOSTR(主力买卖比,1)),ColorFFFFAF;


input:n(403,1,10000);
a:=BUYVOL*c/100;
bz:=sum(a,0);
b:=c*SELLVOL/100;
sz:=sum(b,0);{指标公式}
z:=bz+sz;
cz:=bz-sz;
xb5:=if(a<=5 ,a,0);b5:=sum(xb5,0);
xs5:=if(b<=5 ,b,0);s5:=sum(xs5,0);
xb10:=if(a<=10 and a>=5 ,a,0);b10:=sum(xb10,0);
xs10:=if(b<=10 and b>=5,b,0);s10:=sum(xs10,0);
xb30:=if(a<=30 and a>=10 ,a,0);b30:=sum(xb30,0);
xs30:=if(b<=30 and b>=10 ,b,0);s30:=sum(xs30,0);
xb50:=if(a<=50 and a>=30 ,a,0);b50:=sum(xb50,0);
xs50:=if(b<=50 and b>=30 ,b,0);s50:=sum(xs50,0);
xb70:=if(a<=70 and a>=50 ,a,0);b70:=sum(xb70,0);
xs70:=if(b<=70 and b>=50 ,b,0);s70:=sum(xs70,0);
xb100:=if(a<=100 and a>=70,a,0);b100:=sum(xb100,0);
xs100:=if(b<=100 and b>=70,b,0);s100:=sum(xs100,0);
xb150:=if(a>=100 ,a,0);b150:=sum(xb150,0);
xs150:=if(b>=100 ,b,0);s150:=sum(xs150,0);
j5:=b5-s5;
j10:=b10-s10;
j30:=b30-s30;
j50:=b50-s50;
j70:=b70-s70;
j100:=b100-s100;
j150:=b150-s150;
dd:=LN(FINANCE(7)/(n*10))*ATAN(FINANCE(7))*100;
主动买入:=SUM(BUYVOL,0);
主动卖出:=SUM(SELLVOL,0);
大单买:=if(BUYVOL>=dd,BUYVOL,0);
大单卖:=if(SELLVOL>dd,SELLVOL,0);
大单买入:=SUM(大单买,0);
大单卖出:=SUM(大单卖,0);
小单买入:=主动买入-大单买入;
小单卖出:=主动卖出-大单卖出;
大买金:=sum(if(BUYVOL>=dd,BUYVOL,0)*c,0);
大单买均价:=大买金/大单买入;
大卖金:=sum(if(SELLVOL>dd,SELLVOL,0)*c,0);
大单卖均价:=大卖金/大单卖出;
成交笔数:=sum(if(BUYVOL>0,1,0),0)+sum(if(SELLVOL>0,1,0),0);
大单净量:=大单买入-大单卖出;{技术指标}
EXPLAIN(1=1,'◆代码:'+stklabel+' '+STKNAME),Color4080FF;
EXPLAIN(1,'------------------------------------'),COLORccff00;
EXPLAIN(1,'总成金额(万元):'+NUMTOSTR(z,2)),COLOR00ffff;
EXPLAIN(1,'买入:'+NUMTOSTR(bz,2)+' 卖出: '+NUMTOSTR(sz,2)),COLORwhite;
EXPLAIN(1,'分 类 买 入 卖 出 买卖比例'),color336699;
EXPLAIN(1,' 5万大单 '+NUMTOSTR(b5,2)+ ' '+NUMTOSTR(s5,2)+' '+NUMTOSTR(j5,2)),COLORred;
EXPLAIN(1,' 10万大单 '+NUMTOSTR(b10,2)+' '+NUMTOSTR(s10,2)+' '+NUMTOSTR(j10,2)),COLORred;
EXPLAIN(1,' 30万大单 '+NUMTOSTR(b30,2)+' '+NUMTOSTR(s30,2)+' '+NUMTOSTR(j30,2)),COLORred;
EXPLAIN(1,' 50万大单 '+NUMTOSTR(b50,2)+' '+NUMTOSTR(s50,2)+' '+NUMTOSTR(j50,2)),COLORred;
EXPLAIN(1,' 70万大单 '+NUMTOSTR(b70,2)+' '+NUMTOSTR(s70,2)+' '+NUMTOSTR(j70,2)),COLORred;
EXPLAIN(1,'100万大单 '+NUMTOSTR(b100,2)+' '+NUMTOSTR(s100,2)+' '+NUMTOSTR(j100,2)),COLORred;
EXPLAIN(1,'150万大单 '+NUMTOSTR(b150,2)+' '+NUMTOSTR(s150,2)+' '+NUMTOSTR(j150,2)),COLORred;
EXPLAIN(1,'■■■■总净买入:'+NUMTOSTR(cz,2)),LINETHICK1,COLORccff00;
EXPLAIN(1,'--------------龙虎盯盘---------------'),COLORccff00;
EXPLAIN(1,'■ 大单净量: '+NUMTOSTR(大单净量,0)+' 占'+NUMTOSTR(FLOOR(大单净量/(主动买入+主动卖出)*100),0)+'%'),COLOR00FFFF;
EXPLAIN(1,'■ 大单买入: '+NUMTOSTR(大单买入,0)+' 占'+NUMTOSTR(FLOOR(大单买入/(主动买入+主动卖出)*100),0)+'%'),COLOR8000FF;
EXPLAIN(1,'■ 大单卖出: '+NUMTOSTR(大单卖出,0)+' 占'+NUMTOSTR(FLOOR(大单卖出/(主动买入+主动卖出)*100),0)+'%'),COLOR00FF00;
EXPLAIN(1,'■ 小单买入: '+NUMTOSTR(小单买入,0)+' 占'+NUMTOSTR(FLOOR(小单买入/(主动买入+主动卖出)*100),0)+'%'),COLOR2F73FF;
EXPLAIN(1,'■ 小单卖出: '+NUMTOSTR(小单卖出,0)+' 占'+NUMTOSTR(FLOOR(小单卖出/(主动买入+主动卖出)*100),0)+'%'),COLORB4B043;
EXPLAIN(1,'------------------------------------'),COLORccff00;
EXPLAIN(1,'大单买均价: '+NUMTOSTR(大单买均价,2)+' 大单卖均价: '+NUMTOSTR(大单卖均价,2)),COLOR00FF00;
EXPLAIN(1,'总成交笔数: '+NUMTOSTR(成交笔数,0)+' 每笔成交手: '+NUMTOSTR(INTPART((主动买入+主动卖出)/成交笔数),0)),ColorFFFFFF;
 


 


 


[url=http://www.goodgupiao.com/gupiaogongshi/16677.html][B]精准分时辅助看盘指标-资金MACD (飞狐分时主图、源码、贴图、说明、公式文件)[/B][/url]