1、主力建仓红绿柱指标公式 2、主力持仓副图指标 3、通达信只战主升浪指标公式(附选股公式) 4、通达信超级资金公式 5、同花顺资金持仓指标公式
1、主力建仓红绿柱指标公式 VAR1:=HHV(HIGH,9)-LLV(LOW,9); VAR2:=HHV(HIGH,9)-CLOSE; VAR3:=CLOSE-LLV(LOW,9); VAR4:=((VAR2)/(VAR1))*(100)-70; VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4); VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1); VAR8:=LLV(LOW,34); VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1); VAR10:=IF((VAR9>100),VAR9-100,0); VAR11:=HHV(HIGH,34); B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8); 机构趋势:=EMA(B1,13); STICKLINE(B1-机构趋势>0,B1,机构趋势,3,1),COLOR0000FF; STICKLINE(B1-机构趋势<0,B1,机构趋势,3,0),COLOR00FF00; V1:=(C*2+H+L)/4*10; V2:=EMA(V1,13)-EMA(V1,34); V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5; V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1); V12:=(EMA(V11,3)-REF(EMA(V11,3),1))/REF(EMA(V11,3),1)*100; STICKLINE(EMA(V11,3)<=13 AND V12>13,0,50,3,0),COLORRED; BBO:= (EMA(V11,3)<=13 AND V12>13) AND FILTER((EMA(V11,3)<=13 AND V12>13),10); DRAWTEXT (BBO,60,'主力进'),COLORWHITE; STICKLINE(EMA(V11,3)>60 AND EMA(V11,3)>REF(EMA(V11,3),1),100,95,15,1),COLORGREEN; CCO:=(EMA(V11,3)>=90 AND V12) AND FILTER((EMA(V11,3)>=90 AND V12),10); AA:=(O+H+L+C)/4; BB:=MA(AA,3); CC:=SUM(IF(AA>REF(AA,1),AA*VOL,0),4)/SUM(IF(AA DD:=REF(100-(100/(1+CC)),1); A1N:=HHV(AA,10); A2N:=LLV(AA,30); A3N:=A1N-A2N; A4N:=EMA((AA-A2N)/A3N,1)*100; B1N:=HHV(AA,16); B2N:=LLV(AA,90); B3N:=B1N-B2N; B4N:=EMA((AA-B2N)/B3N,1)*100; STICKLINE(A4N>90 AND B4N>70,86,94,3,0),COLORYELLOW; DRAWICON(A4N>90 AND B4N>70,90,1); VARE:=REF(LOW,1)*0.9; VARF:=LOW*0.9; VAR12:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL; VAR13:=EMA(VAR12,30); VAR14:=CLOSE-REF(CLOSE,1); VAR15:=MAX(VAR14,0); VAR16:=ABS(VAR14); VAR17:=SMA(VAR15,7,1)/SMA(VAR16,7,1)*100; VAR18:=SMA(VAR15,13,1)/SMA(VAR16,13,1)*100; VAR19:=BARSCOUNT(CLOSE); VAR20:=SMA(MAX(VAR14,0),6,1)/SMA(ABS(VAR14),6,1)*100; VAR21:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1); VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; VAR1D:=SMA(VAR1C,4,1); VAR1E:=SMA(VAR1D,3,1); VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; VAR22:=VAR20<=25 AND VAR21<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR17<22 AND VAR18<28 AND VAR19>50; STICKLINE(VAR22,0,70,3,0),COLORMAGENTA; DRAWTEXT(CROSS(VAR22,0.5) AND COUNT(VAR22=1,10)=1,80,'超级主力建仓!') , COLORMAGENTA; VAREX:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VARFX:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR10X:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR11X:=VARFREF(VOL,1) AND CLOSE>REF(CLOSE,1);
2、主力持仓副图指标 VAR1:=HHV(HIGH,9)-LLV(LOW,9); VAR4:=((VAR2)/(VAR1))*(100)-70; VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100); VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4); VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1); VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1); VAR10:=IF((VAR9 > 100),VAR9-100,0); B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8); 资金趋势:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORYELLOW,LINETHICK2; 主力持仓:EMA(B1,13),POINTDOT,COLORRED; STICKLINE(B1-主力持仓 > 0,B1,主力持仓,5,0),COLOR0000FF; STICKLINE(B1-主力持仓 < 0,B1,主力持仓,5,0),COLOR00FF00; 主力进场:IF(VAR5 > REF(VAR5,1),VAR5,0),COLORRED,NODRAW; STICKLINE(VAR5 > REF(VAR5,1),0,VAR5,3,0 ),COLORRED; 洗盘:IF(VAR5 < REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW; STICKLINE(VAR5 < REF(VAR5,1),0,VAR5,3,0),COLORGREEN;
3、通达信只战主升浪指标公式(附选股公式)顶:=85; 中:=50; 底:=20; VAR1:=HHV(HIGH,9)-LLV(LOW,9); VAR2:=HHV(HIGH,9)-CLOSE; VAR3:=CLOSE-LLV(LOW,9); VAR4:=VAR2/VAR1*100-70; VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; VAR6:=(2*CLOSE+HIGH+LOW)/4; VAR7:=SMA(VAR3/VAR1*100,3,1); VAR8:=LLV(LOW,34); VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1); VARA:=IF(VAR9>100,VAR9-100,0); VARB:=HHV(HIGH,34); AA:= VARA*2; BB:= EMA((VAR6-VAR8)/(VARB-VAR8)*100,13); VARC:=EMA(0.667*REF(BB,1)+0.333*BB,2); CC:SMA(VAR5,20,1),COLORRED; CC1:SMA(CC,5,1),COLORGREEN; STICKLINE(CC>CC1,CC,CC1,1,0),COLORRED; STICKLINE(CC1>CC,CC,CC1,1,0),COLORGREEN; 出击:IF((CROSS(CC,CC1) AND (CC1 < 顶) ),80,0),COLORRED; {跑} DRAWICON(CC < REF(CC,1) AND REF(CC,1) < REF(CC,2) AND CC > CC1,100,2); DRAWICON(CROSS(CC1,CC),100,15); 选股公式 顶:=85; 中:=50; 底:=20; VAR1:=HHV(HIGH,9)-LLV(LOW,9); VAR2:=HHV(HIGH,9)-CLOSE; VAR3:=CLOSE-LLV(LOW,9); VAR4:=VAR2/VAR1*100-70; VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; VAR6:=(2*CLOSE+HIGH+LOW)/4; VAR7:=SMA(VAR3/VAR1*100,3,1); VAR8:=LLV(LOW,34); VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1); VARA:=IF(VAR9>100,VAR9-100,0); VARB:=HHV(HIGH,34); AA:= VARA*2; BB:= EMA((VAR6-VAR8)/(VARB-VAR8)*100,13); VARC:=EMA(0.667*REF(BB,1)+0.333*BB,2); CC:=SMA(VAR5,20,1),COLORRED; CC1:=SMA(CC,5,1),COLORGREEN;
xg:IF((CROSS(CC,CC1) AND (CC1 < 顶) ),80,0);
4、超级资金源码 VAR1:=HHV(HIGH,9)-LLV(LOW,9); VAR2:=HHV(HIGH,9)-CLOSE; VAR3:=CLOSE-LLV(LOW,9); VAR4:=((VAR2)/(VAR1))*(100)-70; VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4); VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1); VAR8:=LLV(LOW,34); VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1); VAR10:=IF((VAR9>100),VAR9-100,0); VAR11:=HHV(HIGH,34); B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8); 机构趋势:=EMA(B1,13); STICKLINE(B1-机构趋势>0,B1,机构趋势,3,1),COLOR0000FF; STICKLINE(B1-机构趋势<0,B1,机构趋势,3,0),COLOR00FF00; V1:=(C*2+H+L)/4*10; V2:=EMA(V1,13)-EMA(V1,34); V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5; V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1); V12:=(EMA(V11,3)-REF(EMA(V11,3),1))/REF(EMA(V11,3),1)*100; STICKLINE(EMA(V11,3)<=13 AND V12>13,0,50,3,0),COLORRED; BBO:= (EMA(V11,3)<=13 AND V12>13) AND FILTER((EMA(V11,3)<=13 AND V12>13),10); DRAWTEXT (BBO,60,'主力进'),COLORWHITE; STICKLINE(EMA(V11,3)>60 AND EMA(V11,3)>REF(EMA(V11,3),1),100,95,15,1),COLORGREEN; CCO:=(EMA(V11,3)>=90 AND V12) AND FILTER((EMA(V11,3)>=90 AND V12),10); AA:=(O+H+L+C)/4; BB:=MA(AA,3); CC:=SUM(IF(AA>REF(AA,1),AA*VOL,0),4)/SUM(IF(AA<REF(AA,1),AA*VOL,0),4); DD:=REF(100-(100/(1+CC)),1); A1N:=HHV(AA,10); A2N:=LLV(AA,30); A3N:=A1N-A2N; A4N:=EMA((AA-A2N)/A3N,1)*100; B1N:=HHV(AA,16); B2N:=LLV(AA,90); B3N:=B1N-B2N; B4N:=EMA((AA-B2N)/B3N,1)*100; STICKLINE(A4N>90 AND B4N>70,86,94,3,0),COLORYELLOW; DRAWICON(A4N>90 AND B4N>70,90,1); VARE:=REF(LOW,1)*0.9; VARF:=LOW*0.9; VAR12:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL; VAR13:=EMA(VAR12,30); VAR14:=CLOSE-REF(CLOSE,1); VAR15:=MAX(VAR14,0); VAR16:=ABS(VAR14); VAR17:=SMA(VAR15,7,1)/SMA(VAR16,7,1)*100; VAR18:=SMA(VAR15,13,1)/SMA(VAR16,13,1)*100; VAR19:=BARSCOUNT(CLOSE); VAR20:=SMA(MAX(VAR14,0),6,1)/SMA(ABS(VAR14),6,1)*100; VAR21:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1); VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; VAR1D:=SMA(VAR1C,4,1); VAR1E:=SMA(VAR1D,3,1); VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; VAR22:=VAR20<=25 AND VAR21<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR17<22 AND VAR18<28 AND VAR19>50; STICKLINE(VAR22,0,70,3,0),COLORMAGENTA; DRAWTEXT(CROSS(VAR22,0.5) AND COUNT(VAR22=1,10)=1,80,'超级主力建仓!') , COLORMAGENTA; VAREX:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VARFX:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR10X:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR11X:=VARF<REF(VAR10X,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(VAR11X AND COUNT(VAR11X,30)=1,70,'大资金进场'),LINETHICK1,COLORYELLOW; STICKLINE(VAR11X AND COUNT(VAR11X,30)=1,1,60,3,0),COLORYELLOW; DRAWTEXT (CCO,95,' ←分批减仓'),COLORFFFFFF; DRAWTEXT(EMA(V11,3)<=13 AND V12>13>REF(EMA(V11,3)<=13 AND V12>13,1) AND REF(EMA(V11,3)<=13 AND V12>13,1)<REF(EMA(V11,3)<=13 AND V12>13,2),45,'↖买入股票'),COLORFFFFFF; DRAWTEXT(EMA(V11,3)>60 AND EMA(V11,3)>REF(EMA(V11,3),1)>REF(EMA(V11,3)>60 AND EMA(V11,3)>REF(EMA(V11,3),1),1) AND REF(EMA(V11,3)>60 AND EMA(V11,3)>REF(EMA(V11,3),1),1)<REF(EMA(V11,3)>60 AND EMA(V11,3)>REF(EMA(V11,3),1),2),96,' ←卖临界'),COLORFFFFFF; 5、同花顺资金持仓指标公式VAR1:=HHV(HIGH,9)-LLV(LOW,9); VAR2:=HHV(HIGH,9)-CLOSE; VAR3:=CLOSE-LLV(LOW,9); VAR4:=((VAR2)/(VAR1))*(100)-70; VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100); VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4); VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1); VAR8:=LLV(LOW,34); VAR9:=Sma(VAR7,3,1)-SMA(VAR4,9,1); VAR10:=IF((VAR9>100),VAR9-100,0); VAR11:=HHV(HIGH,34); B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8); 机构持仓:EMA(B1,13),POINTDOT,colorred,LINETHICK2; stICKLINE(B1-机构持仓>0,B1,机构持仓,5,0),COLOR0000FF; STICKLINE(B1-机构持仓<0,B1,机构持仓,5,0),COLOR00FF00; 长线主力:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),colorlimagenta,LINETHICK2; 筹码集中:100*(1-WINNER(CLOSE)),colorligray,LINETHICK1; 强弱分界线:50,colorgreen; 爆发线:80,coloryellow; 筹码集中线:100,colorred,LINETHICK1; V1:=EMA(CLOSE,60)-EMA(CLOSE,300); V2:=EMA(V1,300); V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; V6:=CLOSE/REF(CLOSE,3)>=1.1; V7:=BacKSET(V6,3); 大涨买:IF((V7 AND COUNT(V7,3)=1),50,0),colormagenta,LINETHICK2; DRAWTEXT(大涨买,50,'大涨买 '),colormagenta; V10:=PEAKBARS(3,15,1)<10; V12:=IF(V10=1,50,0); 头部:= IF(V12=50,100,0); 卖:IF(头部>REF(头部,1),50,0),colorgreen,LINETHICK2;DRAWTEXT(卖,50,'拉高出货' ),LINETHICK2; V9:=TROUGHBARS(3,15,1)<10; V11:=IF(V9=1,50,0); 底部:= IF(V11=50,50,0); 买:IF( 底部>REF(底部,1),40,0),colorred,LINETHICK2; DRAWTEXT(买,40,'主力建仓 '),colorred; VAR8:=vol>2*MA(VOL,30); VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04; VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1); VARD:=BArslAST(crOSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5))); VARE:=0-"macd.DIFF"(7,21,3); VARF:=TROUGHBARS(3,15,1)<4; VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2); VAR11:=IF(VARF=1,50,0); 多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),coloryellow; 0,colorred; STICKLINE(FILTER(VARF=1,5) AND 多空<-10,50,0,15,0),colorf00ff0; STICKLINE(FILTER(VARF=1,5),50,0,8,0),coloryellow; DRAWTEXT(FILTER(VARF=1,3),60,'★大黑马'),coloryellow ; STICKLINE(多空<-10,0,多空,0.85,0),coloryellow; STICKLINE(多空>10,0,多空,0.95,0),colorred; B:=zig(3,50/5)*1; G:=MA(B,2); D:=CROSS(B,G)*10; W:=CROSS(G,B)*10; DRAWTEXT(W=10,0.1,'跌趋势确立' ),colorgreen; DRAWTEXT(D=10,0.1,'涨趋势确立'),colorred; IF(CODETYPE<1 OR CODETYPE>2) { a="该指标只用于个股。"; 换手:a; RETURN 0; } ELSE { 换手:VOL/SHGZG*100; }
|