以下是一些通达信主力资金监控副图指标公式:
主力监控副图指标公式 1
plaintextM:=13;N:=30; A01:=(C+O+L+H)/4; A02:=(WINNER((A01 * 1.04)) * 100.000); A03:=(WINNER((A01 * 0.96)) * 100.000); 主力资金:A03,NODRAW; 场外资金:A02 - A03,NODRAW; 散户资金:(100.000 - A02),NODRAW; STICKLINE(1.000,0,主力资金,2,0),COLORRED; STICKLINE(1.000,100.000,A02,2,0),COLORLIBLUE; STICKLINE(1.000,主力资金,(100 -散户资金),2,0),COLORWHITE; A0A:=(((((HHV(主力资金,15.000) - A03) / A03) * 100.000) > N) AND (HHV(主力资金,15.000) > 50.000)); STICKLINE(A0A,(0 - 2.000),2.000,4,0),COLORYELLOW; STICKLINE(NOT(A0A),(0 - 2.000),2.000,4,0),COLORMAGENTA; 主力成本:MA(A03,M),COLORFF00AA,LINETHICK3; 50,LINETHICK3; plaintext9912345678910111213141516›M:=13;N:=30;A01:=(C+O+L+H)/4;A02:=(WINNER((A01 * 1.04)) * 100.000);A03:=(WINNER((A01 * 0.96)) * 100.000);主力资金:A03,NODRAW;场外资金:A02 - A03,NODRAW;散户资金:(100.000 - A02),NODRAW;STICKLINE(1.000,0,主力资金,2,0),COLORRED;STICKLINE(1.000,100.000,A02,2,0),COLORLIBLUE;STICKLINE(1.000,主力资金,(100 -散户资金),2,0),COLORWHITE;A0A:=(((((HHV(主力资金,15.000) - A03) / A03) * 100.000) > N) AND (HHV(主力资金,15.000) > 50.000));STICKLINE(A0A,(0 - 2.000),2.000,4,0),COLORYELLOW;STICKLINE(NOT(A0A),(0 - 2.000),2.000,4,0),COLORMAGENTA;主力成本:MA(A03,M),COLORFF00AA,LINETHICK3;,LINETHICK3;
主力监控副图指标公式 2
plaintextAA:=VOL/((HIGH - LOW)*2 - ABS(CLOSE - OPEN)); 买量:=IF(CLOSE>OPEN,AA*(HIGH - LOW),IF(CLOSE<OPEN,AA*((HIGH - OPEN)+(CLOSE - LOW)),VOL/2)),LINETHICK0,COLORRED; 卖量:=IF(CLOSE>OPEN,0 - AA*((HIGH - CLOSE)+(OPEN - LOW)),IF(CLOSE<OPEN,0 - AA*(HIGH - LOW),0 - VOL/2)),LINETHICK0,COLORGREEN; 进出量:=买量 + 卖量,COLOR00FFFF; STICKLINE(进出量<0,0,进出量,1,0),COLORFF6600; STICKLINE(进出量<0,0,进出量,3,0),COLORFF9900; STICKLINE(进出量<0,0,进出量,1.5,0),COLORFFCC00; STICKLINE(进出量<0,0,进出量,0.5,0),COLORCYAN; STICKLINE(进出量>0,0,进出量,3,0),COLOR000099; STICKLINE(进出量>0,0,进出量,3,0),COLOR0000CC; STICKLINE(进出量>0,0,进出量,1.0,0),COLOR0000FF; STICKLINE(进出量>0,0,进出量,0.5,0),COLORCC66FF; N:=1; QJ0:=(HIGH + LOW + CLOSE)/3; QJ1:=IF(HIGH=LOW,1,HIGH - MAX(OPEN,CLOSE)); QJ2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN) - QJ0); QJ3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE) - LOW); QJ4:=IF(HIGH=LOW,1,QJ0 - MIN(CLOSE,OPEN)); QJ5:=VOL/(IF(HIGH=LOW,4,HIGH - LOW)); QJ6:="MACD.DIF">"MACD.DEA" AND "MACD.DEA"<0; QJ7:="KDJ.K">"KDJ.D" AND "KDJ.D"<30; QJ8:="MACD.DIF"<"MACD.DEA"; QJ9:="KDJ.K"<"KDJ.D" AND "KDJ.K">80; 特大:QJ4*QJ5,NODRAW; 大单:QJ3*QJ5,NODRAW; 中单:QJ1*QJ5,NODRAW; 小单:QJ2*QJ5,NODRAW; W1:=SUM(大单,N)+SUM(特大,N); W2:=SUM(小单,N)+SUM(中单,N); 量振1:=特大>大单 AND 大单>小单; 量振2:=特大<小单 AND 大单<小单; 标振1:=QJ6 AND QJ7; 标振2:=QJ8 AND QJ9; A:=W1 - W2; A0:=IF(A>0,A,0); B0:=IF(A<0,A,0); STICKLINE(A0,0,A0,1,0),COLOR000044; 主力持仓:EMA(100*(CLOSE - LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF; 主力筹码集中度:WINNER(C)*100,COLORRED;
主力机构资金副图公式
plaintext机构:(L2_VOL(0,0) - L2_VOL(0,1))*10000/FINANCE(7),NODRAW,COLORRED; 大户:(L2_VOL(1,0) - L2_VOL(1,1))*10000/FINANCE(7),NODRAW,COLORMAGENTA; 主力:机构 + 大户,NODRAW,COLORYELLOW; STICKLINE(主力>0,0,主力,3,-1),COLORYELLOW; STICKLINE(主力<0,0,主力,3,-1),COLORFF8800; STICKLINE(大户>0,0,大户,1,0),COLORMAGENTA; STICKLINE(大户<0,0,大户,1,0),COLORCYAN; STICKLINE(机构>0,0,机构,1,0),COLORRED; STICKLINE(机构<0,0,机构,1,0),COLORGREEN; 累计:SUM(主力,5),LINETHICK1,COLORLIRED; 均值:EMA(累计,5),LINETHICK2,COLORWHITE; IF(累计>=均值,均值,DRAWNULL),COLORRED,LINETHICK2;
这些公式可以帮助监控主力资金的动向,但请注意,不同的公式有不同的计算方法和侧重点,投资者可以根据自己的需求和偏好进行选择和调整。同时,指标公式只是一种辅助工具,不能完全依赖它们来进行投资决策。