多角度监测主力资金异动副图指标 通达信公式指标源码

{}

AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

买量:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED, LINETHICK0;

卖量:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),COLORGREEN,LINETHICK0;

进出量:买量+卖量,COLOR400080;

STICKLINE(进出量>0,0,进出量,3,0),COLOR0000CC;

STICKLINE(进出量>0,0,进出量,1.5,0),COLOR0000FF;

STICKLINE(进出量>0,0,进出量,0.5,0),COLORCC66FF;

NN:=5;

MM:=13;

N日内净流入:SUM(进出量,NN),LINETHICK2,COLORGREEN;

流入:IF(N日内净流入>REF(N日内净流入,1),N日内净流入,NN),COLORRED,LINETHICK2;

连红天:BARSCOUNT(进出量>0);

M日内翻红天:COUNT(进出量>0,MM),COLORRED;

走熊天:BARSCOUNT(N日内净流入<0),COLORCYAN;

走牛天:BARSCOUNT(N日内净流入>0),COLORRED;

强势天:BARSCOUNT((N日内净流入>REF(N日内净流入,1))>0 AND N日内净流入>0);

弱势天:BARSCOUNT((N日内净流入>REF(N日内净流入,1))<0 AND N日内净流入<0);

(0)

相关推荐