飞狐超级双向成交副图指标
源码
成交:VOL,POINTDOT;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),POINTDOT,COLORRED LINETHICK0;
主动卖盘:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),COLORGREEN LINETHICK0;
换手率%:VOL/CAPITAL*100,POINTDOT,COLORYELLOW;
STICKLINE(主动买盘>0,0,VOL,6,0)colorgreen;
STICKLINE(主动买盘>0,0,主动买盘,6,1),COLORRED;
{STICKLINE(主动卖盘<0,0,主动卖盘,6,0),COLORGREEN;