相关简介: 通达信20个抄底指标公式
通达信指标公式源码概况:
指标类别:通达信指标公式
授权方式:免费版
指标评级:★★★★★
指标分类:策略
画线方法:副图
通达信指标公式源码:
{抄底选股}
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K1:=SMA(RSV,3,1);
D1:=SMA(K1,3,1);
KK:=INTPART(K1);
DD1:=INTPART(D1);
TFXXS:=KK+DD1;{变异KD风险系数}
TGLXS:=(TFXXS-REF(TFXXS,1));{变异KD乖离系数:资金流向}
ZLCM:=EMA(WINNER(CLOSE)*70,3);{主力筹码估算}
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{散户筹码估算}
ZSHTL:=SHCM/(ZLCM+SHCM)*100;{散户套牢筹码系数}
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{主力控盘筹码系数}
粉色:=ZZLKP>REF(ZZLKP,1) AND ZZLKP>20;
红:=TGLXS>0 AND TGLXS>REF(TGLXS,1) AND 粉色;
亮红:=ZZLKP>REF(ZZLKP,1) AND ZZLKP<20;
深蓝:=ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20;
实体:=MAX(OPEN,CLOSE)-MIN(OPEN,CLOSE);
攻防价位:=REF(实体*0.618+MIN(OPEN,CLOSE),1);
{通达信去掉*、S、ST}
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
{通达信去掉停牌}
S4:=DYNAINFO(17)>0;
S5:=REF(C,1)<40;
SS:=C>攻防价位 AND S2 AND S3 AND S4 AND S5;
FILTER(COUNT(深蓝,3)>0 AND 红 AND SS,3),COLORRED;
{抄底拉升}
M:=55;
N:=21;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
庄现身:IF(VAR9>-120,VAR9,0),colormagenta,NODRAW;
STICKLINE(VAR9>-120,0,VAR9,8,1),colormagenta;
VAR1:=REF((L+O+C+H)/4,1);
VAR12:=SMA(ABS(VAR1-H),13,1)/SMA(MAX(VAR1-H,0),10,1);
VAR13:=EMA(VAR12,10);
VAR14:=HHV(H,30);
VAR15:=EMA(IF(H>=VAR14,VAR13,0),3);
庄撤退:IF(VAR15<REF(VAR15,1),VAR15,0),COLOR00FF00,NODRAW;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,8,1 ),COLOR00FF00;
散户:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORFFFF00,LINESTICK;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
庄家:EMA(J,5),COLORFF00FF,COLORSTICK;
ZJ1:EMA(庄家,1);
ZJ5:EMA(庄家,5);
RR8:=MA(CLOSE,27);
RR9:=(CLOSE-RR8)/RR8*100;
RRA:=MA(RR9,2);
RRB:=BARSLAST(CROSS(-10,RRA)=1);
RRD:=RRA<-10 AND RRB>3;
STICKLINE(IF(RRD,-120,0),50,0,8,1),coloryellow;
【黄金坑】:IF(RRD,-120,0),coloryellow,LINETHICK2,NODRAW;
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : =EMA(DIFF,9);
MACD : =2*(DIFF-DEA);
STICKLINE( ZJ5>20,20,20,10,1),colorred,linethick1;
STICKLINE(MACD>0,100,100,8,1),colorred,linethick1;
STICKLINE(ZJ1>REF(ZJ1,1),0,ZJ1,2.5,0),COLOR7800FF;
STICKLINE(ZJ1<REF(ZJ1,1),0,ZJ1,2.5,0),COLORFF7800;
{私募抄底选股}
XA_1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
XA_2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
XA_3:=SMA(XA_2,13,8);
XA_4:=SMA(XA_1,21,8);
XA_5:=CEILING(SMA(XA_3,13,8));
XA_6:=XA_5-XA_4;
XA_7:=XA_5-XA_4<(-80);
XA_8:=REF(CLOSE,1);
XA_9:=REF(VOL,1);
XA_10:=(CLOSE-XA_8)/(CLOSE+XA_8);
XA_11:=(VOL-XA_9)/(VOL+XA_9);
XA_12:=SUM(ABS(XA_11),12)/SUM(ABS(XA_10),12);
XA_13:=SMA(MAX(CLOSE-XA_8,0),12,1)/SMA(ABS(CLOSE-XA_8),12,1)*100;
XA_14:=XA_12<6 AND XA_13<25;
XA_15:=XA_12<7 AND XA_13<30;
XA_16:=XA_12<8 AND XA_13<31;
XA_17:=XA_14 OR XA_15 OR XA_16 AND BARSCOUNT(CLOSE)>60;
XA_18:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100<(-25);
XA_19:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<(-27);
XA_20:=XA_18 AND XA_19;
XA_21:=XA_20 AND (CLOSE>OPEN*1.06 OR CLOSE>REF(CLOSE,1)*1.038) AND VOL<REF(VOL,1)*2.8 OR CLOSE<MA(CLOSE,48)*0.7 AND (COUNT(CLOSE<OPEN*0.97,2)=2 AND DPO>(-3.7) OR COUNT(HIGH/LOW>1.065,5)>3);
XA_22:=CLOSE/(EMA(EMA((CLOSE+LOW+HIGH)/3,3),26)*0.9)<0.95;
XA_23:=(CLOSE-MA(CLOSE,58))/MA(CLOSE,58)<(-0.2245);
XG:XA_7 AND XA_17 AND XA_21 AND XA_22 AND XA_23;
{抄底选股}
N:=13;
M:=5;
DIVE:=0.01*EMA(AMOUNT,N)/EMA(VOL,N);
CYR:=(DIVE/REF(DIVE,1)-1)*100;
MACYR:=MA(CYR,M);
XG1:=CYR<-1.1 AND MACYR<-1.1;
XG2:=CROSS(CYR,MACYR);
XG3:=XG1 AND XG2;
N1:=9;
MTM:=C-REF(C,1);
VAR1:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
VAR2:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
LC := REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
EEA:=(C-REF(C,26))/REF(C,26)*10;
抄底:CROSS(RSI,20) AND VAR1<-45 AND VAR2<12 AND EEA<-2 AND XG3;
{尖头抄底}
VARC:=LOW;
VARD:=REF(LOW,1);
VARE:=SMA(ABS(VARC-VARD),3,1)/SMA(MAX(VARC-VARD,0),3,1)*100;
VARF:=MA(VARE/10,3);
VAR10:=LLV(LOW,30);
VAR11:=HHV(VARF,30);
光头就买:MA(IF(LOW<=VAR10,(VARF+VAR11*2)/2,0),3);
VAR1B:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2B:=SMA(ABS(LOW-VAR1B),13,1)/SMA(MAX(LOW-VAR1B,0),10,1);
VAR3B:=EMA(VAR2B,10);
VAR4B:=LLV(LOW,33);
VAR5B:=EMA(IF(LOW<=VAR4B,VAR3B,0),3)*3;
主力进场:IF(VAR5B>REF(VAR5B,1),VAR5B,0),colorred,LINETHICK6;
STICKLINE(VAR5B>REF(VAR5B,1),0,VAR5B,3,0 ),colorred;
洗盘:IF(VAR5B<REF(VAR5B,1),VAR5B,0),colorgreen;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,6,0 ),colorgreen;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,6,0),colorred;
找主力吸筹提款:(VAR5>REF(VAR5,4))AND C>REF(C,1),COLORFFFF00;
VAR2C:=(HIGH+LOW+CLOSE*2)/4;
VAR3C:=EMA(VAR2C,7);
VAR4C:=STD(VAR2C,7);
VAR5C:=(VAR2C-VAR3C)*100/VAR4;
VAR6C:=EMA(VAR5C,3);
WW:(EMA(VAR6C,5)+100)/2-3,COLORFF00FF;
MM:HHV(WW,3),COLORFF3333;
AAA:=AMOUNT/VOL/100;
{抄底大波段副图}
AA:=CLOSE>REF(CLOSE,1)*1.035;
AA1:=(H-C)/C*100<1;
AA2:=V<=LLV(V,4)ORV>=HHV(V,4);
BB:=(REF(H,3)-REF(L,1))/C*100>8;
BB1:=(REF(L,1)-L)/C*100>0;
BB2:=REF(C<O,1)ANDC>O;
大波段:BBANDBB1ANDBB2ANDAAANDAA1ANDAA2;
{抄底主图无未来}
VARAB:=1;
A:MA(CLOSE,20)*VARAB,COLORBLUE;
B:MA(CLOSE,10)*VARAB,COLORRED;
CC:=LLV(LOW,36)*VARAB;
DD:=HHV(HIGH,30)*VARAB;
EE:=(EMA(((CLOSE-CC)/(DD-CC))*(4),4))*(25);
STICKLINE(C>=AANDC>=O,C,O,7,1),COLORRED;
STICKLINE(C>=AANDC>=O,H,L,0,1),COLORRED;
STICKLINE(C>=AANDC<O,C,O,7,1),COLORRED;
STICKLINE(C>=AANDC<O,O,H,0,1),COLORRED;
STICKLINE(C>=AANDC<O,C,L,0,1),COLORRED;
DRAWTEXT(CROSS(B,A),B,''),COLOR00FF00,LINETHICK2;
DRAWTEXT(CROSS(A,B),A,''),COLORWHITE,LINETHICK2;
STICKLINE(C<AANDC>O,C,O,7,1),COLORYELLOW;
STICKLINE(C<AANDC<=O,C,O,7,1),COLORYELLOW;
STICKLINE(C<AANDC<=O,H,L,0,1),COLORYELLOW;
STICKLINE(C<AANDC>O,C,H,0,1),COLORYELLOW;
STICKLINE(C<AANDC>O,O,L,0,1),COLORYELLOW;
山水:=(((EE-LLV(EE,21))/(HHV(EE,21)-LLV(EE,21)))*(4))*(25);
DRAWICON(CROSS(山水,90)AND(EE<40),C,1);
买线:EMA(C,2),COLORRED;
卖线:EMA(SLOPE(C,21)*20+C,42),COLORYELLOW;
买:=CROSS(买线,卖线);
卖:=CROSS(卖线,买线);
DRAWTEXT(CROSS(山水,90)AND(EE<20),C,'抄底'),LINETHICK2,COLORWHITE;
{红底抄进副图}
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0),COLORRED;
{CYS抄底副图}
N:=-10;
N,DOTLINE;
N+5,DOTLINE;
CYC13:=0.01*EMA(AMOUNT,13)/EMA(VOL,13);
CYS:(CLOSE-CYC13)/CYC13*100,COLORWHITE;
STICKLINE(CYS<N,CYS,N,2,0),COLORRED;
STICKLINE(CYS>NANDCYS<N+5,CYS,N+5,2,0),COLORMAGENTA;
XG:CROSS(CYS,N),NODRAW,COLORRED;
{抄底神器主力进场副图}
VAR11:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR22:=SMA(ABS(LOW-VAR11),13,1)/SMA(MAX(LOW-VAR11,0),10,1);
VAR33:=EMA(VAR22,10);
VAR44:=LLV(LOW,33);
VAR55:=EMA(IF(LOW<=VAR44,VAR33,0),3);
主力进场:STICKLINE(VAR55>REF(VAR55,1),0,VAR55,3,0),COLORFF00FF;
洗盘:STICKLINE(VAR55<REF(VAR55,1),0,VAR55,3,0),COLORGREEN;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)