通达信——金色提示主力成交量指标公式源码...

通达信——金色提示主力成交量指标公式

源码:

主力成交量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交量:主力成交量,VOLSTICK;
主力指标公式:=IF(CLOSE>OPEN,主力成交量*(HIGH-LOW),IF(CLOSE<OPEN,主力成交量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
ffdd1:=(IF(CLOSE>OPEN,0-主力成交量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-主力成交量*(HIGH-LOW),0-VOL/2)))*-1;
ffdd2:=(主力指标公式+ffdd1),VOLSTICK;
ffdd3:=主力指标公式-ffdd1>0;
ffdd4:=主力成交量-ffdd2>0;
STICKLINE(主力指标公式,0,VOL,0.8,0),COLORRED;
STICKLINE(ffdd3,0,VOL,0.8,0),COLORYELLOW;
STICKLINE(ffdd4,0,VOL,0.8,0),COLORMAGENTA;
ffdd5:0,COLORYELLOW;ffdd6:0,COLORRED;短主力指标公式:0,COLORMAGENTA;

(0)

相关推荐