通达信供求资金副图公式
{供求资金仿}
N:=5;
JGV:=(L2_VOL(0,0) - L2_VOL(0,1))*VOL/10000000000;
DHV:=(L2_VOL(1,0) - L2_VOL(1,1))*VOL/10000000000;
ZHV:=(L2_VOL(2,0) - L2_VOL(2,1))*VOL/10000000000;
SHV:=(L2_VOL(3,0) - L2_VOL(3,1))*VOL/10000000000;
A:=JGV+DHV;
B:=SHV+ZHV;
{NOTEXT供资金:EMA(A,N)*N,COLORRED;
NOTEXT求资金:EMA(B,N)*N,COLORGREEN;
供求资金:NOTEXT供资金-NOTEXT求资金,NODRAW;}
NOTEXT供资金:EMA(A,N)*N,NODRAW;
NOTEXT求资金:EMA(B,N)*N,NODRAW;
供求资金:NOTEXT供资金-NOTEXT求资金;
IF(供求资金>=0,供求资金,DRAWNULL),COLORRED;
IF(供求资金<0,供求资金,DRAWNULL),COLORGREEN;
DRAWBAND(供求资金,RGB(255,32,32),0,RGB(0,224,224));