通达信指标源码
展开
上一篇文章里分享了选股方法,现分享方法里的各指标源码,通达信手机和电脑都可用,电脑的可以做成选股公式选股,自行多研究多思考,找灵感找方法!
牛股起爆点:VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,56),1,0);
VAR8:=EMA(IF(LOWREF(VAR8,1);
DR:=100;ZRQ:=3;
DJ:=REF(LLV(L,100),3);
ZD:=RE FDAT E(DJ, DATE );
XG:=L=ZD;
XGA:AA AND XG,COLORRED, LINE THICK2;
XG1:=XGA>REF(XGA,1);
牛股起爆点:=XG1>REF(XG1,1)COLORRED,LINETHICK2;
STICKLINE(FILTER(牛股起爆点>=1,5),45,0,4,0),COLORRED;
DRAWTEXT(FILTER(牛股起爆点=1,5),36,‘---牛股起爆点A‘),COLORRED;
STICKLINE(牛股起爆点,40,25,1,0),COLORY ELLO W;
STICKLINE(牛股起爆点,25,10,2,0),COLOR00FF00;
STICKLINE(牛股起爆点,10,0,2,0),COLOR BLUE ;
STICKLINE(牛股起爆点,25,15,0.5,0),COLORRED;
STICKLINE(牛股起爆点,15,6,1,0),COLOR00FF00;
STICKLINE(牛股起爆点,6,0,2,0),COLORBLUE;
VARA3:=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);{好股票WWW. GOOD GUPIAO.COM}
趋势:=EMA(VARA3,3)-10;
VARB7:=LLV(LOW,30);
VARA11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*20;
VARA12:=HHV(VARA11,30)*20;
火焰山:=EMA(IF(LOW0,0,火焰山,3,1);
今量:=火焰山;
STICKLINE(火焰山>0,0,今量*1.2,2,0),CO LORL IRED;
牛股起爆点:VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,56),1,0);
VAR8:=EMA(IF(LOWREF(VAR8,1);
DR:=100;ZRQ:=3;
DJ:=REF(LLV(L,100),3);
ZD:=RE FDAT E(DJ, DATE );
XG:=L=ZD;
XGA:AA AND XG,COLORRED, LINE THICK2;
XG1:=XGA>REF(XGA,1);
牛股起爆点:=XG1>REF(XG1,1)COLORRED,LINETHICK2;
STICKLINE(FILTER(牛股起爆点>=1,5),45,0,4,0),COLORRED;
DRAWTEXT(FILTER(牛股起爆点=1,5),36,‘---牛股起爆点A‘),COLORRED;
STICKLINE(牛股起爆点,40,25,1,0),COLORY ELLO W;
STICKLINE(牛股起爆点,25,10,2,0),COLOR00FF00;
STICKLINE(牛股起爆点,10,0,2,0),COLOR BLUE ;
STICKLINE(牛股起爆点,25,15,0.5,0),COLORRED;
STICKLINE(牛股起爆点,15,6,1,0),COLOR00FF00;
STICKLINE(牛股起爆点,6,0,2,0),COLORBLUE;
VARA3:=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);{好股票WWW. GOOD GUPIAO.COM}
趋势:=EMA(VARA3,3)-10;
VARB7:=LLV(LOW,30);
VARA11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*20;
VARA12:=HHV(VARA11,30)*20;
火焰山:=EMA(IF(LOW0,0,火焰山,3,1);
今量:=火焰山;
STICKLINE(火焰山>0,0,今量*1.2,2,0),CO LORL IRED;
话题与分类:
主题股票:
主题概念:
声明:遵守相关法律法规,所发内容承担法律责任,倡导理性交流,远离非法证券活动,共建和谐交流环境!
VID:=SUM(VOL,2)/((HHV( HIGH ,2)-LLV(LOW,2))*100);
RC:=(CLOSE-LC)*VID;
LONG :=SUM(RC,0);
DIFF:=SMA(LONG,10,1);
DEA:=SMA(LONG,20,1);
LON:=DIFF-DEA;
LLL:=MA(LON,10);
TDX STEP 134:IF(LLL>=REF(LLL,1),LLL,DRAWNULL),COLORRED;
V2:EMA(LON,1),COLOR GREE N;
V3:EMA(V2,3),COLORGREEN;
V4:EMA(V3,3),COLORGREEN;
V5:EMA(V4,3),COLORGREEN;
V6:EMA(V5,3),COLORGREEN;
T DXST EP135:IF(V2>=REF(V2,1),V2,DRAWNULL),COLORRED;
TDXSTEP136:IF(V3>=REF(V3,1),V3,DRAWNULL),COLORRED;
TDXSTEP137:IF(V4>=REF(V4,1),V4,DRAWNULL),COLORRED;
TDXSTEP138:IF(V5>=REF(V5,1),V5,DRAWNULL),COLORRED;
TDXSTEP139:IF(V6>=REF(V6,1),V6,DRAWNULL),COLORRED;
TDXSTEP140:0,COLORWHITE;
TDXSTEP141:STICK LINE (V2>REF(V2,1),V2,REF(V2,1),3,0),COLORRED;
TDXSTEP142:STICKLINE(V2100,100,VAR8Q);
TDXSTEP143:STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0,火焰山*1.2,3.5,0),COLOR4444FF;
TDXSTEP144:STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0,火焰山*1.2,2.5,0),COLOR5555FF;
TDXSTEP145:STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0,火焰山*1.2,1.5,0),COLOR7777FF;
TDXSTEP146:STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0,火焰山*1.2,0.5,0),COLOR9999FF;
逃顶:=C ROSS (82,RSI.RSI1);
TDXSTEP147:STICKLINE(逃顶,逃顶,10,3.5,0),COLORFF5500;
TDXSTEP148:STICKLINE(逃顶,逃顶,15,2.5,0),COLORFF8800;
TDXSTEP149:STICKLINE(逃顶,逃顶,20,1.5,0),COLORFFAA00;
TDXSTEP150:STICKLINE(逃顶,逃顶,25,0.5,0),COLO RFFC C00;
TDXSTEP151:STICKLINE(逃顶,逃顶,30,0.1,0),COLOR CYAN ;
强弱线:50,POINTDOT,COLORGREEN;
VARR1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
TDXSTEP152:DRAW ICON (CROSS(82,VARR1),10,15);
TDXSTEP153:DRAWTEXT(CROSS(82,VARR1),35,7),COLORY ELLO W;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR6:=(VAR3+VAR4+VAR5)/3; VAR7:=EMA(VAR6,5);
VAR8:=IF(VAR610;
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)=REF(ZIG(3,5),3));
STICK LINE ((VARC=1),(-14),0,4,0),COLOR0000FF; DRAWTEXT((VARC=1),(-14),‘买‘),COLOR0000FF; STICKLINE((VARD=1),14,0,4,0),COLOR00FF00;
DRAWTEXT((VARD=1),18,‘卖‘),COLOR00FF00;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV( HIGH ,34)-LLV(LOW,34)),5)-20;
VARF:=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);
VAR10:=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);
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13>=150 AND VAR13=150 AND VAR14-200 AND VAR14-200,-10,VAR15); VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17); VAR19:=IF(VAR180,VARE,0);
VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR1448 AND VAR1B>60 AND VAR1920 AND VAR3B=-0.25 AND VAR4550;
VAR51:=(HIGH+LOW+CLOSE)/3;
VAR52:=(VAR51-MA(VAR51,14))/(0.015*AVEDEV(VAR51,14));
VAR53:=(VAR51-MA(VAR51,70))/(0.015*AVEDEV(VAR51,70));
VAR54:=IF(VAR52>=150 AND VAR52=150 AND VAR53-200 AND VAR53-200,-10,VAR54);
VAR56:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR57:=RE VERS E(VAR56);
VAR58:=SMA(VAR56,3,1);
VARFF:=100-3*SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);
VAR199:=100-3*SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);
VAR20:=REF(VOL,1) AND CLOSE>REF(CLOSE,1);
VAR1:=(CLOSE*2+HIGH+LOW)/4*10;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR333:=EMA(VAR2,5);
VAR444:=2*(VAR2-VAR333)*5.5;
VAR555:=(HHV( INDE XH,8)-IN DEXC )/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
VAR666:=EMA(3*VAR55-2*SMA(VAR55,18,1),5);
VAR777:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
VAR888:=(INDEXC*2+INDEXH+INDEXL)/4;
VAR999:=EMA(VAR888,13)-EMA(VAR888,34);
VARAA:=EMA(VAR999,3);
V ARBB B:=(VAR999-VARAA)/2;
V AREE :=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAR100:=(HIGH+LOW+CLOSE)/3;
VAR11:=(VAR100-MA(VAR100,14))/(0.015*AVEDEV(VAR100,14));
VAR122:=(VAR100-MA(VAR100,70))/(0.015*AVEDEV(VAR100,70));VAR133:=IF(VAR11>=150 AND VAR11=150 AND VAR122-200 AND VAR122-200,-10,VAR133);
VAR155:=(CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*100;
VAR166:=100-ABS(VAR155);
VAR177:=IF(VAR1660,VAREE,0);
VAR1BB:=IF(VAR122>=200 AND VAR11>=150,15,IF(VAR12248 AND VAR1BB>60 AND VAR177 MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 =5) AND C ROSS (VARJ1,VARE1) AND (AA1>79);
VAR1AAA:=ZIG(3,10)>REF(ZIG(3,10),2);{ZIG 有未来}
VAR2AAA:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)= 1.099);
VAR1000:=((OPEN = LOW) AND (HIGH = CLOSE));
VAR101:=((VOL 65 AND ZYX1>REF(ZYX1,1);
ZYX4:=LLV(ZYX1,0);
ZYX5:=BARSLAST(ZYX4=ZYX1);
ZYX6:=(0-REF(ZYX2,4))/(ZYX4-REF(ZYX2,ZYX5))>2;
ZYX7:=ZYX1>REF(ZYX1,1);
ZYX8:=VOL>2*MA(VOL,30);
ZYX9:= DMI.ADX (12,6);
ZYXA:= DMI.ADXR (12,6);
ZYXB:=CLOSE>MA(CLOSE,30) AND CLOSEREF(MA(CLOSE,30),1);
ZYXD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))REF(EMA(CLOSE,30),2);
ZYX11:=IF(ZYXF=1,50,0);
ZYX12:=CROSS(ZYX2,ZYX1) AND CROSS(ZYXA,ZYX9);
ZYX13:=CROSS(ZYX2,ZYX1) AND CROSS(ZYX9,ZYXA);
ZYX14:=ZYXB AND ZYXC AND ZYXD AND ZYX10 AND ZYX6 AND ZYX7 AND ZYX8*50;
ZYX15:=BARSLAST(CROSS(ZYX2,ZYX1)=1);
ZYX16:=BARSLAST(CROSS(ZYX1,ZYX2)=1);
ZYX17:=HHV(ZYX1,ZYX16);
ZYX18:=BARSLAST(ZYX1=ZYX17);
STICKLINE(FILTER(ZYXF=1,5),50,0,10,0),COLORRED;
ZYX19:=ZYX3 OR ZYX12 OR ZYX13*100;
ZYX1A:=ZYX13*100;
DRAW ICON (FILTER(ZYXF=1,3),80,1);
DRAWTEXT(FILTER(ZYXF=1,3),60,‘黄金坑‘),COLORY ELLO W;
X5:=EXPMA(CLOSE,3);
X10:=EXPMA(CLOSE,7);
X20:=EXPMA(CLOSE,20);
五日斜率:=(X5-REF(X5,1))*100/REF(X5,1),LINETHICK2,COLOR YELL OW;
十日斜率:=(X10-REF(X10,1))*100/REF(X10,1),LINETHICK2,COLOR BLUE ;
二十斜率:=(X20-REF(X20,1))*100/REF(X20,1),LINETHICK2,COLORWHITE;
XX5:=XMA(五日斜率,4),LINETHICK2,COLORYELLOW;
XX10:=XMA(十日斜率,7),LINETHICK2,COLORBLUE;
XX200:=XMA(二十斜率,20);
AA11:=XX200>=0.7 AND REF(XX200,1) AND XX10>XX200 AND REF(XX5,2)=0.7 AND REF(XX200,1) AND XX10>XX202 AND REF(XX5,2)=0.7 AND REF(XX200,1) AND XX10>XX204 AND REF(XX5,2)=0.7 AND REF(XX200,1) AND XX10>XX206 AND REF(XX5,2)=0.7 AND REF(XX207,1)=0.7 AND REF(XX2071,1)=0.7 AND REF(XX2072,1)=0.7 AND REF(XX208,1)=0.7 AND REF(XX2081,1)=0.7 AND REF(XX2082,1)<XX2082 AND CROSS(XX5,XX2082);
AA1 OR AA2 OR AA3 OR AA4 OR AA7 OR AA71 OR AA72 OR AA8 OR AA81 OR AA82;
DRAWTEXT(AA1=1,H/2,‘AA1‘),COLORRED;
DRAWTEXT(AA2=1,H/2.5,‘AA2‘),COLORRED;
DRAWTEXT(AA3=1,H/3,‘AA3‘),COLORRED;
DRAWTEXT(AA4=1,H/3.5,‘AA4‘),COLORRED;
DRAWTEXT(AA7=1,H/4,‘AA7‘),COLORRED;
DRAWTEXT(AA71=1,H/1.88,‘AA71‘),COLORRED;
DRAWTEXT(AA72=1,H/2.98,‘AA72‘),COLORRED;
DRAWTEXT(AA8=1,H/3.18,‘AA8‘),COLORRED;
DRAWTEXT(AA81=1,H/1.58,‘AA81‘),COLORRED;
DRAWTEXT(AA82=1,H/2.78,‘AA82‘),COLORRED;DRAWTEXT(AA71=1,H/1.88,‘AA71‘),COLORRED;
DRAWTEXT(AA72=1,H/2.98,‘AA72‘),COLORRED;
DRAWTEXT(AA8=1,H/3.18,‘AA8‘),COLORRED;
DRAWTEXT(AA81=1,H/1.58,‘AA81‘),COLORRED;
DRAWTEXT(AA82=1,H/2.78,‘AA82‘),COLORRED;