飞狐多空成交量公式
源码
n:1 999 20
APP:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
DEMAND:IF(CLOSE>OPEN,APP*(HIGH-LOW),IF(CLOSE<OPEN,APP*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
SUPLY:IF(CLOSE>OPEN,0-APP*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-APP*(HIGH-LOW),0-VOL/2));
DMA1:MA(DEMAND,n);
SMA1:MA(SUPLY,n);