通達信倍量資金指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 成交量
- 畫線方法: 副圖
- 日期:2022-11-08 來源:互聯網
通達信倍量資金指標公式:
預量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,預量,0,3,-1),COLORFFFFFF;
量_價:=1;CTKG:=1;
W:=量_價;
EPSL:=0.0001;
ZZ:=(C+H+L)/3;
TJA:=ZZ>=MAX(C,O) AND CTKG=1;{倒錘頭};
TJB:=ZZ<=MIN(C,O) AND CTKG=1;{正錘頭};
ZF:=IF(TJA,1,IF(TJB,-1,0));{正負數};
TJ0:=TJA OR TJB;
TJ1:=H=L AND C>REF(C,1);{一字漲停};
TJ2:=H=L AND C<REF(C,1);{一字跌停};
TJ3:=H=L AND C=REF(C,1);{連續一字漲、跌停};
量_價:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE;{平盤量,白色}
{以下4句組合屬核心公式,版權屬于JIPGEMLING.見凌見}
EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));
ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE));
JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;
買賣差:JGL_DX*量_價,COLOR13AADD,NODRAW;
DX%:JGL_DX*100,NODRAW;
買盤:量_價*(1+JGL_DX)/2,COLOR1133AA,NODRAW;
賣盤:量_價*(1-JGL_DX)/2,COLORFFFF00,NODRAW;
{加入成交量移動平均線}
M5:MA(V,5),COLORRED;M10:MA(V,10);
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主動買盤:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;
主動賣盤:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;
{因為可能會出現賣出量為0的BUG,所以放在最后參考}
凈量:主動買盤+主動賣盤,NODRAW;
STICKLINE(C<O ,0,VOL,3.2,0),COLORFF1100;
STICKLINE(C<O ,0,VOL,2.7,0),COLORFF3300;
STICKLINE(C<O ,0,VOL,2.1,0),COLORFF5500;
STICKLINE(C<O ,0,VOL,1.5,0),COLORFF7700;
STICKLINE(C<O ,0,VOL,0.9,0),COLORFF9900;
STICKLINE(C<O ,0,VOL,0.3,0),COLORFFBB00;
STICKLINE(C=O AND C<REF(C,1),0,VOL,3.2,0),COLOR006000;
STICKLINE(C=O AND C<REF(C,1),0,VOL,2.7,0),COLOR007500;
STICKLINE(C=O AND C<REF(C,1),0,VOL,2.1,0),COLOR009100;
STICKLINE(C=O AND C<REF(C,1),0,VOL,1.5,0),COLOR00A600;
STICKLINE(C=O AND C<REF(C,1),0,VOL,0.9,0),COLOR00BB00;
STICKLINE(C=O AND C<REF(C,1),0,VOL,0.3,0),COLOR00CC00;
STICKLINE(C=O AND C>REF(C,1),0,VOL,3.2,0),COLOR555555;
STICKLINE(C=O AND C>REF(C,1),0,VOL,2.7,0),COLOR777777;
STICKLINE(C=O AND C>REF(C,1),0,VOL,2.1,0),COLOR999999;
STICKLINE(C=O AND C>REF(C,1),0,VOL,1.5,0),COLORBBBBBB;
STICKLINE(C=O AND C>REF(C,1),0,VOL,0.9,0),COLORDDDDDD;
STICKLINE(C=O AND C>REF(C,1),0,VOL,0.3,0),COLORFFFFFF;
STICKLINE(C>O,0,VOL,3.2,0),COLORFF11FF;
STICKLINE(C>O,0,VOL,2.7,0),COLORFF33FF;
STICKLINE(C>O,0,VOL,2.1,0),COLORFF55FF;
STICKLINE(C>O,0,VOL,1.5,0),COLORFF77FF;
STICKLINE(C>O,0,VOL,0.9,0),COLORFF99FF;
STICKLINE(C>O,0,VOL,0.3,0),COLORFFBBFF;
{這一句很好,也就是中間出現黃色,為活躍資金}
資金異動:VOL/MA(VOL,55)*100,COLORYELLOW;
STICKLINE(主動買盤>0,0,主動買盤,3.2,0),COLOR000055;
STICKLINE(主動買盤>0,0,主動買盤,2.7,0),COLOR000077;
STICKLINE(主動買盤>0,0,主動買盤,2.1,0),COLOR000099;
STICKLINE(主動買盤>0,0,主動買盤,1.5,0),COLOR0000BB;
STICKLINE(主動買盤>0,0,主動買盤,0.9,0),COLOR0000DD;
STICKLINE(主動買盤>0,0,主動買盤,0.3,0),COLOR0000FF;
STICKLINE(主動賣盤<0,0,主動賣盤,3.2,0),COLOR006000;
STICKLINE(主動賣盤<0,0,主動賣盤,2.7,0),COLOR007500;
STICKLINE(主動賣盤<0,0,主動賣盤,2.1,0),COLOR009100;
STICKLINE(主動賣盤<0,0,主動賣盤,1.5,0),COLOR00A600;
STICKLINE(主動賣盤<0,0,主動賣盤,0.9,0),COLOR00BB00;
STICKLINE(主動賣盤<0,0,主動賣盤,0.3,0),COLOR00CC00;
STICKLINE(資金異動>100 ,0,VOL,0.6,0),COLORYELLOW;
{這兩句為放量,如果低位,當然要關注了,柱子中畫一白一藍兩線,用于提示}
STICKLINE(V>=3*REF(V,1),V/3,V/3,5.9,0),COLORBLUE,LINETHICK2;
STICKLINE(V>=2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW,LINETHICK2;
通達信倍量資金指標公式實例圖解:
通達信倍量資金指標公式