逐笔,逐单分时公式(源码 贴图)
首先声明,此公式为本人制作,如何其它同志相同,实属巧合,本人习惯这样的方式,喜欢的同志就下,看的源码放能理解图形的意义!
aa:=if(CAPITAL/1000000>10,10000000,1000000);
分钟数:IF(TIME0/60-570<=130,TIME0/60-570,TIME0/60-660),PRECIS0,linethick0;
总成交量:=SUM(VOL,分钟数+1)/100;
总成交额:=SUM(AMOUNT,分钟数+1)/10000;
0,POINTDOT,color990099;
逐笔主动总量:=SUM(TRANSACTVOL(1,0)-TRANSACTVOL(2,0),分钟数)/100;
逐笔主动总额:逐笔主动总量/总成交量*总成交额,Color00ffff,linethick0;
逐单主动总量:=SUM(ORDERVOL(1,2)-ORDERVOL(2,2),分钟数)/100;
逐单委托总额:逐单主动总量/总成交量*总成交额,Color0000ff,linethick0;
ZB:=(TRANSACTVOL(1,0)-TRANSACTVOL(1,2)-TRANSACTVOL(2,0)-TRANSACTVOL(2,2))/capital*1000000;
zc:=(TRANSACTVOL(1,2)-TRANSACTVOL(2,2))/capital*aa;
zz:=zb+zc;
STICKLINE(ZB>0,逐笔主动总额, ZB+逐笔主动总额,1,0),Color00ffff;
STICKLINE(ZB<0,逐笔主动总额, ZB+逐笔主动总额,1,0),ColorFF0000;
st:=if(ZB<0,abs(zb),zb);
sb:=if(ZB>0,zb,0);
STICKLINE(Zc>0,逐笔主动总额+sb, zc+sb+逐笔主动总额,1,1),ColorFF1FFF;
STICKLINE(Zc<0,逐笔主动总额+zb, zc+zb+逐笔主动总额,1,1),Color00ff00;
Zd:=(ORDERVOL(1,2)-ORDERVOL(2,2))/capital*aa;
STICKLINE(Zd>0,逐单委托总额,逐单委托总额+Zd,1,1),Color0000ff;
STICKLINE(Zd<0,逐单委托总额,逐单委托总额+Zd,1,1),Colorffff00;
PARTLINE(逐笔主动总额,zz>0,RGB(255,255,0),zz<0,RGB(0,0,255),zz=0,RGB(255,255,0)),LINETHICK1;
PARTLINE(逐单委托总额,zd>0,RGB(255,0,0),zd<0,RGB(0,255,0),zd=0,RGB(255,255,0)),LINETHICK1;
- 上一篇公式:首发自用主图公式源码,无加密,有未来,无限时
- 下一篇公式:DZH主图(源码 漂亮)