通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信强势指标公式
AA:=MA(C,5);
AB:=MA(C,10);
CC:=MA(C,20);
CD:=MA(C,30);
DD:=MA(C,60);
EE:=C>AAANDAA>ABANDAB>CCANDC>DD;
ZF:=C/REF(C,1)>1.050ANDREF(C,1)/REF(C,2)<1.05ANDC/LLV(C,10)<1.4;
LB:=V/REF(V,1)>2ORV=HHV(V,15);
LT:=CAPITAL<10000000;
JD5:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*57.3>40;
JD10:=ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*57.3>30;
JD20:=ATAN((MA(C,20)/REF(MA(C,20),1)-1)*100)*57.3>20;
JD30:=ATAN((MA(C,30)/REF(MA(C,30),1)-1)*100)*57.3>10;
JD:=JD5ANDJD10ANDJD20ANDJD30;
MR:=EEANDZFANDLBANDLTANDJD;
抓妖:FILTER(MR,15);
ST:=EXIST((C/REF(C,1)-1)*100>5.6,60);
ZT:=C/REF(C,1)>1.095ANDC=H;
四连板:=REF(C,4)/REF(C,5)<1.095ANDCOUNT(ZT,4)=4ANDZTANDFINANCE(42)>60;
存在:=REF(EXIST(四连板,40),10);
超跌:=REF(HHV(H,50)/LLV(L,20),1)>1.5ANDC/LLV(L,20)<1.1;
缩量小星线:=EXIST(ABS(REF(O,1)-REF(C,1))/REF(C,1)<0.02,3);
超跌1:=ABS(LLV(L,20)-REF(LLV(L,30),HHV(H,40)))/LLV(L,20)<0.075ANDABS(LLV(L,3)-MA(C,144))/LLV(L,3)<1.05;
选股:=STAND存在AND超跌AND超跌1;
潜龙战法:REF(选股,1)ANDC>REF(C,1)*1.025ANDV>REF(V,1);
{备注:N的参数要根据前期高点时间来作相应的决定,例如个股经过大涨后到现在的时间是30天那就设定30如果是50那就设定为50,我根据现在个股的走势暂定为50}
XA_1:=MA(CLOSE,20);
XA_2:=XA_1>REF(XA_1,1);
XA_3:=EVERY(XA_2,10);
XA_4:=REF(HHV(CLOSE,10),2);
XA_5:=CLOSE<=XA_4ANDCLOSE>=XA_1AND(CLOSE-XA_1)/XA_1*100<=5AND(XA_4-XA_1)/XA_1*100<=10ANDCLOSE>OPEN;
潜伏金山:XA_3ANDXA_5ANDDYNAINFO(4)>0;
二、通达信强弱指标
弱势区:15,COLORGREEN;
弱势分水岭:20,COLORGREEN;
强势分水岭:40,COLORRED;
A:=LLV(DMA(CLOSE,VOL/CAPITAL),120);
强龙抬头:200*(CLOSE-A)/A,COLORRED,LINETHICK2;
XG:CROSS(强龙抬头,强势分水岭)*45,COLORYELLOW,LINETHICK3;
N:=45;
VAR2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR3:=SMA(VAR2,5,1);
VAR4:=SMA(VAR3,3,1);
个股波:SMA(VAR4,3,1),COLORWHITE,LINETHICK3;
VAR22:=(INDEXC-LLV(INDEXL,N))/(HHV(INDEXH,N)-LLV(INDEXL,N))*100;
VAR33:=SMA(VAR22,5,1);
VAR44:=SMA(VAR33,3,1);
指数波:SMA(VAR44,3,1),COLORRED,LINETHICK5;
AA:=("399300$CLOSE"-LLV("399300$LOW",N))/(HHV("399300$HIGH",N)-LLV("399300$LOW",N))*100;
AA1:=SMA(AA,5,1);
AA2:=SMA(AA1,3,1);
沪深300:SMA(AA2,3,1),COLORMAGENTA,LINETHICK2;
BB:=("399005$CLOSE"-LLV("399005$LOW",N))/(HHV("399005$HIGH",N)-LLV("399005$LOW",N))*100;
BB1:=SMA(BB,5,1);
BB2:=SMA(BB1,3,1);
中小板指:SMA(BB2,3,1),COLORYELLOW,LINETHICK1;
CC:=("399006$CLOSE"-LLV("399006$LOW",N))/(HHV("399006$HIGH",N)-LLV("399006$LOW",N))*100;
CC1:=SMA(CC,5,1);
CC2:=SMA(CC1,3,1);
创业板指:SMA(CC2,3,1),COLORCYAN,LINETHICK1;
DD:=("399305$CLOSE"-LLV("399305$LOW",N))/(HHV("399305$HIGH",N)-LLV("399305$LOW",N))*100;
DD1:=SMA(DD,5,1);
DD2:=SMA(DD1,3,1);
基金:SMA(DD2,3,1),COLORLICYAN,LINETHICK1;
EE:=("399190$CLOSE"-LLV("399190$LOW",N))/(HHV("399190$HIGH",N)-LLV("399190$LOW",N))*100;
EE1:=SMA(EE,5,1);
EE2:=SMA(EE1,3,1);
金融行业:SMA(EE2,3,1),COLORGREEN,LINETHICK2;
FF:=("399200$CLOSE"-LLV("399200$LOW",N))/(HHV("399200$HIGH",N)-LLV("399200$LOW",N))*100;
FF1:=SMA(FF,5,1);
FF2:=SMA(FF1,3,1);
地产:SMA(FF2,3,1),COLORLIGREEN,LINETHICK1;
GG:=("399110$CLOSE"-LLV("399110$LOW",N))/(HHV("399110$HIGH",N)-LLV("399110$LOW",N))*100;
GG1:=SMA(GG,5,1);
GG2:=SMA(GG1,3,1);
农林牧渔:SMA(GG2,3,1),COLORLIGRAY,LINETHICK1;
HH:=("399941$CLOSE"-LLV("399941$LOW",N))/(HHV("399941$HIGH",N)-LLV("399941$LOW",N))*100;
HH1:=SMA(HH,5,1);
HH2:=SMA(HH1,3,1);
新能源:SMA(HH2,3,1),COLORBROWN,LINETHICK1;
II:=("399137$CLOSE"-LLV("399137$LOW",N))/(HHV("399137$HIGH",N)-LLV("399137$LOW",N))*100;
II1:=SMA(II,5,1);
II2:=SMA(II1,3,1);
有色金属:SMA(II2,3,1),COLORLIRED,LINETHICK1;
JJ:=("399139$CLOSE"-LLV("399139$LOW",N))/(HHV("399139$HIGH",N)-LLV("399139$LOW",N))*100;
JJ1:=SMA(JJ,5,1);
JJ2:=SMA(JJ1,3,1);
医药:SMA(JJ2,3,1),COLORLIMAGENTA,LINETHICK1;
A:=EMA(FORCAST(EMA(REF(HIGH,1)/REF(CLOSE,2),5)*REF(CLOSE,1),5),5);
B:=EMA(C,5);
OBS:CROSS(B,A)ANDREF(C,1)>REF(C,2)*1.03ANDC<REF(C,1);
[源码注释]通达信公式动态翻译结果
输出主力潜伏: 100*以收盘价*0.9计算的获利盘比例,画红色
输出中线潜伏: 100*以收盘价*0.9*0.9计算的获利盘比例,画洋红色
输出长线潜伏: 100*以收盘价*0.9*0.9*0.9计算的获利盘比例,画青色
0,画绿色
输出预警:长线潜伏=0 AND 中线潜伏=0 AND 主力潜伏=0 ,画黄色,线宽为1
输出连涨天数:条件连续成立次数,NODRAW
输出连涨幅:如果收盘价>1日前的收盘价,返回(收盘价-连涨天数日前的收盘价)/连涨天数日前的收盘价*100,否则返回0,NODRAW
推荐阅读:通达信经典强弱指标公式
N:=5;M1:=3;M2:=3;
顶:100,COLORMAGENTA;
分界线:50,COLORGRAY;
底:0,COLORYELLOW;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
WW:=SMA(RSV,M1,1),COLORRED;
MM:=SMA(WW,M2,1),COLORGREEN;
操作线:3*WW-2*MM,COLORYELLOW,LINETHICK3;
NOTEX操作线:3*WW-2*MM,COLORRED,LINETHICK1;
VAR02:=(HIGH+LOW+CLOSE*10)/1;
VAR03:=EMA(VAR02,7);
VAR04:=STD(VAR02,7);
VAR05:=(VAR02-VAR03)*100/VAR04;
VAR06:=EMA(VAR05,5);
VAR07:=EMA(VAR06,13);
操盘线1:(EMA(VAR05,13)+116)/2-2,COLORLIBLUE,LINETHICK1;
操盘线2:HHV(操盘线1,3),COLORRED,LINETHICK1;
主力大单:EMA(IF(L<=LLV(L,55),SMA(ABS(L-REF(L,1)),55,2)/SMA(MAX(L-REF(L,1),0),13,1),0),5)*3,STICK,COLORMAGENTA,LINETHICK2;
K2:=EMA(C,3),COLORFFFF00;
K3:=EMA(C,17),COLORFFFF00;
K5:=EMA(C,21),COLORFFFF00;KK5:=EMA(INDEXC,34),COLORFFFF00;
K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6),COLORRED;
AA:="KDJ.K#WEEK";
BB:="KDJ.D#WEEK";
量能:STICKLINE(CROSS(K8,0)ANDCROSS(AA,BB),0,15,8,0),COLORRED;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORWHITE;
D:SMA(K,3,1),COLORYELLOW;
J:3*K-2*D,COLORYELLOW;
IF(K<REF(K,1),K,DRAWNULL),COLORGREEN,LINETHICK1;
IF(D<REF(D,1),D,DRAWNULL),COLORGREEN,LINETHICK1;
IF(J<REF(J,1),J,DRAWNULL),COLORFFFF00,LINETHICK1;
IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK1;
IF(D>REF(D,1),D,DRAWNULL),COLORRED,LINETHICK1;
IF(J>REF(J,1),J,DRAWNULL),COLORFF00FF,LINETHICK1;
N:=50;
ZS:=(INDEXC-REF(INDEXC,N))/REF(INDEXC,N)*100;
GG:=(CLOSE-REF(CLOSE,N))/REF(CLOSE,N)*100;
RPS:(GG-ZS),COLORRED;
ZX:0COLORGRAY;
WY1001:=(2*CLOSE+HIGH+LOW)/3;
WY1002:=EMA(WY1001,3);
WY1003:=EMA(WY1002,3);
WY1004:=EMA(WY1003,3);
XYS0:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
XYS1:=MA(XYS0,2),colorblue;
XYS2:=MA(XYS0,1),coloryellow;
捕:CROSS(XYS2,XYS1)ANDC/REF(C,1)>=1.02;
评论(0)