大智慧反DDX指标公式

REFLINE:0;成交量:vol,PRECIS2,LINETHICK0;

AAA:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));{系数=成交量/((最高价-最低价)*2-绝对值(收盘价-开盘价))}

主买:=IF(CLOSE>OPEN,AAA*(HIGH-LOW),IF(CLOSE<OPEN,AAA*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2));

主卖:=-IF(CLOSE>OPEN,0-AAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE< OPEN,0-AAA*(HIGH-LOW),0-成交量/2));

净额:主买-主卖,linethick0;;