股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信分时综合副图指标


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2023-10-9 12:01:03

以下是通达信分时综合副图指标

通达信分时综合副图指标

源码

T0:=IF(TIME>093000 AND TIME<095500 ,1,0);
T1:=IF(TIME>093100 AND TIME<145500 ,1,0);
T2:=IF(TIME>100000 AND TIME<145500 ,1,0);
T3:=IF(TIME>142500 AND TIME<145500 ,1,0);
T4:=IF(TIME>143000 AND TIME<145500 ,1,0);
T5:=IF(TIME>110000 AND TIME<145500 ,1,0);
T6:=IF(TIME>104200 AND TIME<145500 ,1,0);
涨幅:=DYNAINFO(14)*100;
STS:=FINANCE(32)>=0 AND FINANCE(34)>0 AND DYNAINFO(7)>0 ;
CK:=IF(STS=0 AND 涨幅<4.95 OR STS=1 AND 涨幅<9.95,1,0);
CCT:=DYNAINFO(8);
PPP:= FILTER(CCT=0,500) ;
DRAWTEXT(PPP,45,'★未开盘★'),COLORFF00FF;

VM1:=(C*2+H+L)/4*10;
VM2:=EMA(VM1,13)-EMA(VM1,34);
VM3:=EMA(VM2,5);
VM4:=2*(VM2-VM3)*5.5;
A:=EMA(WINNER(CLOSE),10);
B:=EMA(WINNER(CLOSE),34);
BA:=100*(CLOSE-REF(CLOSE,12))/REF(CLOSE,12);
BD:=MA(ROC,6)*100;
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));
VAR67:=(LOW+HIGH+CLOSE)/3;
VAR80:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,3,0);
VAR81:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR83:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR82:=ZIG(3,6)=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR84:=ZIG(3,22)=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR85:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR87:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VARF:=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);
VAR9A:=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);
VAR86:=ZIG(3,51)=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR88:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VARX1:=(MA(CLOSE,80)-MA(CLOSE,13)/3);
VARX2:=( MA((CLOSE-VARX1)/VARX1,1));
NN1:=VAR80;
VARM1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VARM2:=SMA(VARM1,3,1);
RSVR:=(((CLOSE - LLV(LOW,65)) / (HHV(HIGH,65) - LLV(LOW,65))) * 100);
NN2:=(VAR81+VAR83+VAR85+VAR87);
MM1:=(VAR82+VAR84+VAR86+VAR88);
MM2:= IF(MM1>0,-500,0);
MM:= IF(C>1000,MM2*100,MM2),COLORRED,LINETHICK3;
CT:SUM(MM,0) AND T1=1;{统计}
五指山:EMA((CLOSE-LLV(CLOSE,55))/(HHV(CLOSE,55)-LLV(LOW,55))*100,5),LINETHICK1,COLORFF00FF;
AAD:=MA(CLOSE,32);
BAD:=MA(CLOSE,12);
DDD:=CROSS(B,A);
万泉河: (7*SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*30,4,1),3,1),2,1)),COLORFF9933;
WH:=五指山;
WL:=万泉河;
VARM3:=SMA(VARM2,3,1);
VARM4:=SMA(VARM3,3,1);
AAC:=MA(C,1);
BBB:=MA(AAD,2);
VAR51:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
BB:=SMA(VAR51,7,1);
SMX:=EMA(C,65)/EMA(REF(C,65),65)*10;
CC:=EMA(C,13)/EMA(REF(C,13),13)*10;
VAR68:=(VAR67-MA(VAR67,14))/(0.015*AVEDEV(VAR67,14));
WR30:=100*(HHV(HIGH,79)-CLOSE)/(HHV(HIGH,79)-LLV(LOW,79));
VAR21:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR22:=LLV(LOW,34);
VAR23:=HHV(HIGH,34);
W1:=WL/10;
W2:=REF(WL,1)/10;
SK1:=EMA((VAR21-VAR22)/(VAR23-VAR22)*100,13);
WR31:=IF(WR30=0 OR SK1>=90 OR VAR68>-250,100,WR30);
舟:IF(NN1>0 OR NN2>0,35,DRAWNULL)*2,STICK,COLORMAGENTA,LINETHICK3;
花:EMA(IF(WL<35 AND T3=1 AND L<= LLV(L,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1),0),3)*25,STICK,COLORYELLOW,LINETHICK3;
叶:=(CT=0 AND (CLOSE / COST(9)) <=1 ) * 100,COLORYELLOW,LINETHICK1;
STICKLINE(FILTER(叶=100,32)=1,0,100,10,0),LINETHICK1,COLORYELLOW;
DRAWTEXT(FILTER(叶=100,32)=1,25,'←买进?'),LINETHICK1,COLORYELLOW;
NC2:=WL>25 AND WL<55 AND WL > MA(REF(WL,5),5) AND CT=0 AND T2=1 AND 涨幅<7;
STICKLINE(FILTER(NC2=1,250)=1,0,70,10,0),COLORMAGENTA,LINETHICK1;
DRAWTEXT(FILTER(NC2=1,250)=1,53,'←加仓?'),COLORMAGENTA,LINETHICK1;
VARSA1:=REF(CLOSE,1);
VARSA2:=SMA(MAX(CLOSE-VARSA1,0),7,1)/SMA(ABS(CLOSE-VARSA1),7,1)*100;
VARSA3:=SMA(MAX(CLOSE-VARSA1,0),13,1)/SMA(ABS(CLOSE-VARSA1),13,1)*100;
看涨:CT=0 AND VARC=1;
CH:=SUM(看涨,0) AND T1=1;{统计}
P1:= FILTER(看涨=1,16) ;
DRAWTEXT(P1,45,'←短线看涨!'),COLORYELLOW,LINETHICK2;
EE:=EMA(C,150)/EMA(REF(C,150),150)*10;
HH:=IF(EE>REF(EE,1),1,0);
HS1:=CROSS(EE,SMX) AND EE>CC AND SMX>CC AND HH=1;
HS:=SUM(HS1,0) AND T1=1;{统计}
VAR1Z:=REF(CLOSE,1);
VAR2Z:=SMA(MAX(CLOSE-VAR1Z,0),7,1)/SMA(ABS(CLOSE-VAR1Z),7,1)*100;
VAR3Z:=SMA(MAX(CLOSE-VAR1Z,0),13,1)/SMA(ABS(CLOSE-VAR1Z),13,1)*100;
VAR4Z:=SMA(MAX(VAR1Z-CLOSE,0),7,1)/SMA(ABS(CLOSE-VAR1Z),7,1)*100;
VAR5Z:=SMA(MAX(VAR1Z-CLOSE,0),13,1)/SMA(ABS(CLOSE-VAR1Z),13,1)*100;
VAR6Z:=BARSCOUNT(CLOSE);
波:(T3=1 AND VAR2Z<25 AND VAR3Z<30 AND VAR6Z>35)*3,STICK, COLORSTICK,LINETHICK2;
VAR2A:=VARFREF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(CT=0 AND VAR2A AND COUNT(VAR2A,150)=1,68,'←大资金'),LINETHICK1,COLORYELLOW;
大资金:(CT=0 AND VAR2A AND COUNT(VAR2A,150)=1)*77,STICK,COLORYELLOW,LINETHICK1;
VAR31:=MA(VOL,5)>MA(VOL,60);
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
VARY1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
SD:=(C>60 AND C<100,200,100);
SF:=IF(C<40 AND C<=60,300,SD);
SG:=IF(C>10 AND C<=25,800,IF(C>25 AND C<40,1000,SF));
SH:=IF(C<5,5000,IF(C>=5 AND C<=10,1500,SG));
SJ:=IF(C>=6000,5,SH);
SK:=IF(C>1000 AND C<6000,25,SJ);
MACD:(DIF-DEA)*SK,COLORSTICK;
CA:=T1=1 AND CT=1 AND 涨幅<9.8;
DD1:= CT=0 AND CROSS(CC,SMX+0.01);
STICKLINE(FILTER(DD1=1,158)=1,0,30,10,0),LINETHICK1,COLORYELLOW;
DRAWTEXT(FILTER(DD1=1,158)=1,8,'←买不亏?'),LINETHICK1,COLORYELLOW;
VARM6:=CC>SMX AND CC>EE AND CROSS(VARM3,VARM4) AND VARM3<30 AND T1=1 AND CCT >0 AND 涨幅<8;
VARM7:=WH>70 AND T4=1 AND CROSS(SMX,CC) AND 涨幅<9.9 OR WH>80 AND T4=1 AND CROSS(EE,SMX) OR WH>80 AND T4=1 AND CROSS(VARM4,VARM3) AND VARM3>80 AND CCT>0 AND 涨幅<9.9;
VM5:=IF(VM4>=0,VM4,0),COLORFF00FF;
VM6:=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);
VM7:=EMA(VM6,5);
VM8:=(VM7-REF(VM7,3))/REF(VM7,3)*100;
VARSB1:=SMA(MAX(VARSA1-CLOSE,0),7,1)/SMA(ABS(CLOSE-VARSA1),7,1)*100;
VARSB2:=SMA(MAX(VARSA1-CLOSE,0),13,1)/SMA(ABS(CLOSE-VARSA1),13,1)*100;
VARSB3:=BARSCOUNT(CLOSE);
DESY:=100*(HHV(HIGH,33)-CLOSE)/(HHV(HIGH,33)-LLV(LOW,33))*100;
DRAWTEXT(FILTER(VARM7=1,16)=1,80,'←逃顶?'),LINETHICK1,COLORYELLOW;
STICKLINE(FILTER(VARM7=1,16)=1,70,90,10,0),LINETHICK1,COLORYELLOW;
STICKLINE(FILTER(CA=1,350)=1,0,90,10,0),LINETHICK1,COLORGREEN;
DDC:=' ★提醒:短线看跌↓本信号若消失则可能转升↑';
DRAWTEXT(FILTER(CA=1,350)=1,45,DDC),COLORGREEN;
DRAWTEXT(FILTER(CA=1,350)=1,70,'←逃顶?'),LINETHICK1,COLORYELLOW;
STICKLINE(FILTER(CA=1,350)=1,75,90,10,0),LINETHICK1,COLORYELLOW;
HYJC:=(CH=0 AND VARSB1<25 AND VARSB2<30 AND VARSB3>35)*100,COLORGREEN;
HYJJ:=ABS(VARSB1<25 AND VARSB2<30 AND VARSB3>35) AND WH>80 AND 涨幅>6;
DRAWTEXT(FILTER(HYJJ=1 AND CK=1,16)=1,90,'←逃顶XX'),LINETHICK1,COLORYELLOW;
DRAWTEXT(FILTER(HYJC=100 AND CK=1 ,32)=1,90,'←逃顶X'),LINETHICK1,COLORYELLOW;
STICKLINE(FILTER(HYJC=100 AND CK=1 ,32)=1,80,98,10,0),LINETHICK1,COLORYELLOW;
警戒:85,COLOR5AFF9E;
轴:0;





回复

举报

QQ|

GMT+8, 2024-11-18 22:30

快速回复 返回顶部 返回列表