以下是一些常见的主力介入副图指标公式:
主力进场指标
plaintextGZB1:=IF(C>REF(C,1),V,0)/100; GZB2:=IF(C<REF(C,1),V,0)/100; 主力:EMA(MA(GZB1,3),3),COLORWHITE,LINETHICK2; 散户:EMA(MA(GZB2,3),10),COLORGREEN,LINETHICK2; 比值:主力/散户,NODRAW; 差值:主力-散户,NODRAW; GZB3:=FORCAST(EMA(C,16),7); 总资金:AMOUNT/100000000,COLORFF00FF,NODRAW; GZB4:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); GZB5:=IF(CLOSE>OPEN,GZB4*(HIGH-LOW),IF(CLOSE<OPEN,GZB4*((HIGH-OPEN)+ (CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED; GZB6:=IF(CLOSE>OPEN,0-GZB4*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-GZB4*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00; 净比:净入/C*100000; 净值:ABS(净比/差值); STICKLINE(差值>0 AND 比值>=0 AND 比值<1.2,差值,0,9,0),COLORBROWN; STICKLINE(差值>0 AND 比值>=0 AND 比值<1.2 AND 净入>0 AND 净值>0.05,差值,差值+净比,9,0),COLORDB70DB; STICKLINE(比值>1.2,差值,0,9,0),COLORRED; STICKLINE(比值>1.2 AND 净入>0 AND 净值>0.05,差值,差值+净比,9,0),COLORDB70DB; STICKLINE(比值>1.2 AND 净入<0 AND 净值>0.05,差值,差值+净比,9,0),COLORGREEN; STICKLINE(差值<0 AND 比值>=0.8 AND 比值<1,差值,0,9,0),COLORBROWN; STICKLINE(差值<0 AND 比值>=0.8 AND 比值<1 AND 净入<0 AND 净值>0.05,差值,差值+净比,9,0),COLORYELLOW; STICKLINE(差值<0 AND 比值<0.8,差值,0,9,0),COLORGREEN; STICKLINE(差值<0 AND 比值<0.8 AND 净入<0 AND 净值>0.05,差值,差值+净比,9,0),COLORYELLOW; STICKLINE(差值<0 AND 比值<0.8 AND 净入>0 AND 净值>0.05,差值,差值+净比,9,0),COLORRED; 卖出:=比值>1.2 AND C<O AND 净入<0; 买入:=比值>1.2 AND (差值+净比)>=REF((差值+净比),1) AND C>=REF(C,1) AND MA(净入,3)>=0 AND 卖出=0; plaintext991234567891011121314151617181920212223242526›GZB1:=IF(C>REF(C,1),V,0)/100;GZB2:=IF(C<REF(C,1),V,0)/100;主力:EMA(MA(GZB1,3),3),COLORWHITE,LINETHICK2;散户:EMA(MA(GZB2,3),10),COLORGREEN,LINETHICK2;比值:主力/散户,NODRAW;差值:主力-散户,NODRAW;GZB3:=FORCAST(EMA(C,16),7);总资金:AMOUNT/100000000,COLORFF00FF,NODRAW;GZB4:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));GZB5:=IF(CLOSE>OPEN,GZB4*(HIGH-LOW),IF(CLOSE<OPEN,GZB4*((HIGH-OPEN)+ (CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED;GZB6:=IF(CLOSE>OPEN,0-GZB4*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-GZB4*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00;净比:净入/C*100000;净值:ABS(净比/差值);STICKLINE(差值>0 AND 比值>=0 AND 比值<1.2,差值,0,9,0),COLORBROWN;STICKLINE(差值>0 AND 比值>=0 AND 比值<1.2 AND 净入>0 AND 净值>0.05,差值,差值+净比,9,0),COLORDB70DB;STICKLINE(比值>1.2,差值,0,9,0),COLORRED;STICKLINE(比值>1.2 AND 净入>0 AND 净值>0.05,差值,差值+净比,9,0),COLORDB70DB;STICKLINE(比值>1.2 AND 净入<0 AND 净值>0.05,差值,差值+净比,9,0),COLORGREEN;STICKLINE(差值<0 AND 比值>=0.8 AND 比值<1,差值,0,9,0),COLORBROWN;STICKLINE(差值<0 AND 比值>=0.8 AND 比值<1 AND 净入<0 AND 净值>0.05,差值,差值+净比,9,0),COLORYELLOW;STICKLINE(差值<0 AND 比值<0.8,差值,0,9,0),COLORGREEN;STICKLINE(差值<0 AND 比值<0.8 AND 净入<0 AND 净值>0.05,差值,差值+净比,9,0),COLORYELLOW;STICKLINE(差值<0 AND 比值<0.8 AND 净入>0 AND 净值>0.05,差值,差值+净比,9,0),COLORRED;卖出:=比值>1.2 AND C<O AND 净入<0;买入:=比值>1.2 AND (差值+净比)>=REF((差值+净比),1) AND C>=REF(C,1) AND MA(净入,3)>=0 AND 卖出=0;
主力异动介入指标
plaintext异动:=VOL/REF(MA(VOL,5),1); 主力:=HHV(REF(异动,1),10)<=异动; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; 多头:=MACD>0; ININF:=主力; MA5:=MA(C,3); MA10:=MA(C,5); MA20:=MA(C,10); AA:=C>MA(C,60); DDT:=MA5>MA10 AND MA10>MA20; CC:=STICKLINE(ININF AND C>O AND O/REF(C,1)<=1.05 AND 多头 AND AA,0,1,2,0),COLORYELLOW; 内幕:=BARSLASTCOUNT(CC)=1; STICKLINE(内幕,0,1,2,1),COLORYELLOW; STICKLINE(内幕,0,1,0.6,0),COLORRED; DRAWTEXT(内幕,0.8,' ★异动'),COLORRED; DRAWICON(内幕,1,9);
游资主力机构资金介入指标
plaintext量比:=2; 上涨:=30; 换手:=30; 低价:=5; 高价:=20; 离线:=4; 深度:=50; SHORT:=12; LONG:=26; MID:=9; DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); DEA:=EMA(DIF,MID); MACD:=(DIF-DEA)*2; N:=9; M1:=3; M2:=3; RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,M1,1); D:=SMA(K,M2,1); J:=3*K-2*D; 换手率:=VOL/CAPITAL*100; A:=(3*C+L+O+H)/6; X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210; 中线:=EMA(X,13); AAA:=(3*C+L+O+H)/6; C2:=EMA(AAA,6); C3:=EMA(AAA,5); 短线:=EMA(CLOSE,17); 上涨天数:=BARSLAST(短线 < 中线); N1:=5; N4:=34; CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4)); SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4)); 饱和度:=IF(SAT > 1,1,SAT)*100; W1:=C=HHV(C,20); W2:=BARSLAST(W1); W3:=IF(W2 > 0,REF(C,W2),REF(C,W2)); W4:=CROSS(C,REF(W3,1)); 突破:=W4 AND COUNT(W4,5)=1; 峰顶:=饱和度 >=97 AND CQ > 90; 短期:=100*(C-LLV(L,N1))/(HHV(C,N1)-LLV(L,N1)); KAAAA:=EXIST(CROSS(C2,C3),2); KAAAB:=EXIST(MACD > 0,4) AND MACD < 0; KAAAC:=MA(VOL,10) > MA(VOL,5); KBBB:=EVERY(C > 中线 AND O > 中线,5); KCCC:=HHV(VOL,30)/VOL > 量比; KDDD:=上涨天数 < 上涨; KEEE:=SUM(换手率,30) > 换手; KFFF:=C > 低价 AND C < 高价; KHHH:=EXIST(峰顶,30) OR EXIST(突破,30); KJJJ:=C/中线 < 1+0.01*离线; KIII:=短期 < 深度; 游资资金:IF(KAAAA AND KBBB AND KCCC AND KDDD AND KEEE AND KFFF AND KHHH,100,0),COLORYELLOW,LINETHICK2; 主力资金:IF(KAAAB AND KBBB AND KCCC AND KDDD AND KEEE AND KFFF AND KHHH,80,0),COLORGREEN,LINETHICK2; 机构资金:IF(KAAAC AND KBBB AND KCCC AND KDDD AND KEEE AND KFFF AND KHHH AND KJJJ AND KIII,60,0),COLORRED,LINETHICK2; STICKLINE(游资资金,0,40,5,0),COLORYELLOW; STICKLINE(主力资金,0,30,5,0),COLORGREEN; STICKLINE(机构资金,0,20,5,0),COLORRED;
以上公式可用于通达信等股票分析软件中,帮助投资者分析主力资金的介入情况,但请注意,指标公式仅供参考,不能作为唯一的投资依据。