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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信1选股指标(04)


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

以下是通达信1选股指标(04)

{容维选股一}
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);
DD:=EMA(((0.667 * REF(AK1,1)) + (0.333 * AK1)),2);
VAR3:=LLV(LOW,55);
VAR4:=HHV(HIGH,34);
VAR5:=EMA((((CLOSE - VAR3) / (VAR4 - VAR3)) * 100),3);
VAR6:=((AK + VAR5) / 2);
VAR7:=EMA(((0.667 * REF(VAR5,1)) + (0.333 * AK1)),2);
VAR8:=EMA(VAR6,5);
BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * VAR8)),2);
AB:=CROSS(AK1,AK);
BB1:=(CROSS(AK1,BB) AND (BB < 30));
XG: AB;

======================================================

{容维创富红方块选股}
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);
AB:=CROSS(AK1,AK);
选股:AB;

======================================================

{5日平台整理}
ABS((HHV(CLOSE,5)-LLV(OPEN,5))/LLV(OPEN,5))*100<=1;

======================================================

{8日平台整理}
(HHV(CLOSE,8)-LLV(CLOSE,8))/LLV(CLOSE,8)<=(10/100);

======================================================

{13日平台整理}
(HHV(CLOSE,13)-LLV(CLOSE,13))/LLV(CLOSE,13)<=(10/100);

======================================================

{独特指标选股}
X1:=(C+L)/2;
X2:=MA(LLV(X1,8)*1.1,13);
X3:=EMA(X1,3);
X4:=2*X2-X3-X1*0.1;
X5:=POW((X3-X4)*5,2)/10;
X6:=X5*(-1);
X7:=IF((X3-X4)*5>0,X5,X6);
X8:=IF(X7>0,X7,-3);
X9:CROSS(X8,0) AND X1>MA(X1,8);

======================================================

{突破}

GJTJ11:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ21:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ31:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ41:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A:=BARSLAST(CROSS(GJTJ41,GJTJ11))>3 AND BARSLAST(CROSS(GJTJ11,GJTJ41))<3;
B:=BARSLAST(CROSS(GJTJ41,GJTJ21));
GJTJ15:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ25:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ35:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ45:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A4:=BARSLAST(CROSS(97,GJTJ15))<=1 AND BARSLAST(CROSS(GJTJ15,85))<=1;
B5:=BARSLAST(CROSS(97,GJTJ25))<=1 AND BARSLAST(CROSS(GJTJ25,85))<=1;
A11:=A AND B;
AA:=BARSLAST(CROSS(97,GJTJ15))<=2 AND BARSLAST(CROSS(GJTJ15,85))<=1;
BA:=BARSLAST(CROSS(97,GJTJ25))<=2 AND BARSLAST(CROSS(GJTJ25,85))<=1;
A21:=AA AND BA ;
AAA:=BARSLAST(CROSS(97,GJTJ15))<=3 AND BARSLAST(CROSS(GJTJ15,85))<=1;
BAA:=BARSLAST(CROSS(97,GJTJ25))<=3 AND BARSLAST(CROSS(GJTJ25,85))<=1;
A31:=AAA AND BAA ;
B11:=REF(A11,1);
B21:=REF(A21,1);
B31:=REF(A31,1);
D11:=GJTJ15=100 AND GJTJ25=100 AND A11 ;
D21:=GJTJ15=100 AND GJTJ25=100 AND A21 ;
D31:=GJTJ15=100 AND GJTJ25=100 AND A31 ;
突破:D11 OR D21 OR D31;

======================================================

{黄金星}

GJTJ14:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ24:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ34:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ44:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A3:=BARSLAST(CROSS(30,GJTJ14))<2 AND BARSLAST(CROSS(GJTJ14,50))<2;
B4:=BARSLAST(CROSS(GJTJ44,GJTJ14))<2 AND GJTJ14>GJTJ44;
E3:=GJTJ14>60 AND GJTJ44>70;
黄金星:A3 AND B4 AND E3;

======================================================

{启动金三角}

GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
GJTJ11:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ21:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ31:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ41:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A:=BARSLAST(CROSS(GJTJ41,GJTJ11))>3 AND BARSLAST(CROSS(GJTJ11,GJTJ41))<3;
B:=BARSLAST(CROSS(GJTJ41,GJTJ21));
GJTJ19:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ29:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ39:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ49:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A9:=GJTJ19=GJTJ29 AND GJTJ29=GJTJ39 AND GJTJ19=100 AND GJTJ49>96;
B9:=COUNT(A,2)=1;
D9:=GJTJ19<95;
YH:=INDEXC/REF(INDEXC,1)*REF(C,1);
YH1:=REF(C,1)+C-INDEXC/REF(INDEXC,1)*REF(C,1);
X1:=EMA(YH1,7);
X2:=EMA(YH1,14);
X3:=EMA(X1,14);
E9:=X1>X2 AND X2>X3;
启动金三角:B9 AND D9 AND E9;

======================================================

{投机七剑}


GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;
金三角:=COUNT(XG,3)=1 AND XG;

GJTJ11:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ21:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ31:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ41:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A:=BARSLAST(CROSS(GJTJ41,GJTJ11))>3 AND BARSLAST(CROSS(GJTJ11,GJTJ41))<3;
B:=BARSLAST(CROSS(GJTJ41,GJTJ21));
D:=GJTJ3
E:=BARSLAST(CROSS(GJTJ41,GJTJ31))>3 AND BARSLAST(CROSS(GJTJ11,GJTJ41))<3;
F:=GJTJ21
B1:=A>0 AND REF(A,1)=0 AND REF(A,2)>0;
中线黄金坑:=A AND B AND D AND E AND F;

GJTJ12:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ22:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ32:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ42:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A1:=BARSLAST(CROSS(95,GJTJ12))<=2;
B2:=BARSLAST(CROSS(95,GJTJ22))<=2;
E1:= GJTJ42
F1:=GJTJ22>50 AND GJTJ32>50;
G:=GJTJ12=100 AND GJTJ22=100;
TX:=COUNT(G,2)=1;
启动蓝三角:=A1 AND B2 AND E1 AND F1 AND TX;

GJTJ13:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ23:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ33:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ43:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A2:=GJTJ33=100;
B3:=GJTJ43<90;
银边启动:=COUNT(A2,2) = 2 AND B3;

GJTJ15:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ25:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ35:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ45:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A4:=BARSLAST(CROSS(97,GJTJ15))<=1 AND BARSLAST(CROSS(GJTJ15,85))<=1;
B5:=BARSLAST(CROSS(97,GJTJ25))<=1 AND BARSLAST(CROSS(GJTJ25,85))<=1;
A11:=A AND B;
AA:=BARSLAST(CROSS(97,GJTJ15))<=2 AND BARSLAST(CROSS(GJTJ15,85))<=1;
BA:=BARSLAST(CROSS(97,GJTJ25))<=2 AND BARSLAST(CROSS(GJTJ25,85))<=1;
A21:=AA AND BA ;
AAA:=BARSLAST(CROSS(97,GJTJ15))<=3 AND BARSLAST(CROSS(GJTJ15,85))<=1;
BAA:=BARSLAST(CROSS(97,GJTJ25))<=3 AND BARSLAST(CROSS(GJTJ25,85))<=1;
A31:=AAA AND BAA ;
B11:=REF(A11,1);
B21:=REF(A21,1);
B31:=REF(A31,1);
D11:=GJTJ15=100 AND GJTJ25=100 AND A11 ;
D21:=GJTJ15=100 AND GJTJ25=100 AND A21 ;
D31:=GJTJ15=100 AND GJTJ25=100 AND A31 ;
突破:=D11 OR D21 OR D31;

GJTJ14:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ24:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ34:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ44:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A3:=BARSLAST(CROSS(30,GJTJ14))<2 AND BARSLAST(CROSS(GJTJ14,50))<2;
B4:=BARSLAST(CROSS(GJTJ44,GJTJ14))<2 AND GJTJ14>GJTJ44;
E3:=GJTJ14>60 AND GJTJ44>70;
黄金星:=A3 AND B4 AND E3;

GJTJ19:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ29:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ39:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ49:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A9:=GJTJ19=GJTJ29 AND GJTJ29=GJTJ39 AND GJTJ19=100 AND GJTJ49>96;
B9:=COUNT(A,2)=1;
D9:=GJTJ19<95;
YH:=INDEXC/REF(INDEXC,1)*REF(C,1);
YH1:=REF(C,1)+C-INDEXC/REF(INDEXC,1)*REF(C,1);
X1:=EMA(YH1,7);
X2:=EMA(YH1,14);
X3:=EMA(X1,14);
E9:=X1>X2 AND X2>X3;
启动金三角:=B9 AND D9 AND E9;

投机七剑:金三角 OR 中线黄金坑 OR 启动蓝三角 OR 银边启动 OR 突破 OR 黄金星 OR 启动金三角;

======================================================

{小阴小阳}

AA:=EVERY(ABS(CLOSE-OPEN)/REF(CLOSE,1)<0.015,3);
BB:=EVERY(ABS(CLOSE-OPEN)/REF(CLOSE,1)<0.015,5);
CC:=EVERY(ABS(CLOSE-OPEN)/REF(CLOSE,1)<0.015,8);
XG:AA OR BB OR CC;

======================================================

{平台整理}


HF1:=DYNAINFO(11)*0.01;
HF2:=DYNAINFO(5)<=DYNAINFO(11)+HF1;
HF3:=DYNAINFO(6)>=DYNAINFO(11)-HF1;
HF4:=TIME>=100000;
HF1 AND HF2 AND HF3 AND HF4;

======================================================

{绝对牛}


VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
V1:(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));

======================================================

{小情人}

AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
CC:=EMA(AA,2);
DD:=EMA(BB,5);
TJ0:=CROSS(CC,DD);
上:=EMA(C,3);
中:=EMA(C,5);
下:=EMA(中,5);
TJ1:=CROSS(上,中);
TJ2:=上>REF(上,1);
X1:=(C+L+H)/3;
BB5:=ATAN(EMA(X1,5)-REF(EMA(X1,5),1))*3.1416*10;
EMA3:=EMA(C,3);
TJ3:=BB5>1 AND EMA(X1,5)>REF(EMA(X1,3),1);
XG:TJ1 AND TJ2 AND TJ0 AND TJ3;

======================================================

{短线快枪选股}

VAR1:=EMA(HHV(HIGH,500),21);
VAR2:=EMA(HHV(HIGH,250),21);
VAR3:=EMA(HHV(HIGH,90),21);
VAR4:=EMA(LLV(LOW,500),21);
VAR5:=EMA(LLV(LOW,250),21);
VAR6:=EMA(LLV(LOW,90),21);
VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);
VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21);
VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21);
VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);
VARB:=REF(LOW,1);
VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;
VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);
VARE:=LLV(LOW,30);
VARF:=HHV(VARD,30);
VAR10:=IF(MA(CLOSE,58),1,0);
选股:LOW<=VARE;

======================================================

{多头二次翻红}

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
FH1:=REF(MACD,1)
FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;
FH3:=EMA(C,30)>=REF(EMA(C,30),1) AND COUNT(EMA(C,5)>EMA(C,10) AND EMA(C,10)>EMA(C,30),1)=1;
FH4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);
FH5:=FH1 AND FH2 AND FH3 AND FH4;
FH6:=FH1 AND FH2 AND FH3 AND FH4 AND ABS((DIFF-DEA)/C)<0.018;
FH7:=FH1 AND FH2 AND FH3 AND FH4 AND MACD<0.10;
FH5 OR FH6 OR FH7;

======================================================

{大英雄}

VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR3<100 AND VAR4>VAR2*1.008 AND VAR2>VAR3 AND VAR3>REF(VAR3,1)*1.001 AND VAR2>REF(VAR2,1)*1 AND VAR3>REF(VAR3,1)*1 AND CLOSE>OPEN*1.15;

======================================================

{黑马易找}

VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,30);
VAR4:=MA(CLOSE,60);
VAR5:=EMA(COST(85),7);
VAR6:=EMA(COST(15),7);
VAR7:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);
VAR8:=INTPART(VAR7*100)/100;
VAR9:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);
VARA:=INTPART(VAR9*100)/100;
VARB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
VARC:=INTPART(VARB*100)/100;
VARD:=EMA(CLOSE,5)-EMA(CLOSE,10);
VARE:=EMA(VARD,9);
VARF:=(-100)*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100;
VAR10:=(-100)*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100;
VAR11:=(-100)*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100;
VAR12:=(-100)*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100;
VAR13:=REF(VARE,1);
VAR14:=VARE;
VAR15:=VAR14-VAR13;
VAR16:=REF(VARD,1);
VAR17:=VARD;
VAR18:=VAR17-VAR16;
VAR19:=OPEN;
VAR1A:=CLOSE;
黑马易找选股: VAR19<=VAR1 AND VAR19<=VAR2 AND VAR19<=VAR3 AND VAR1A>=VAR1 AND VAR1A>=VARC AND VAR15>0 AND VAR18>0;

======================================================

{波段之星}

N:=21;

VAR2:=(HIGH+LOW+CLOSE*2)/4;
VAR3:=EMA(VAR2,N);
VAR4:=STD(VAR2,N);
VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;
VAR6:=(EMA(VAR5,5)-25)*1.56;
AK:= EMA(VAR6,2)*1.22;
AD1:= EMA(AK,2);
AJ:= 3*AK-2*AD1;
买进: CROSS(AJ,AD1);

======================================================

{有庄控盘}

VAR1:=EMA(EMA(CLOSE,13),13);
控盘:= (VAR1-REF(VAR1,1))/REF(VAR1,1)*100;
有庄控盘:=控盘>REF(控盘,1) AND 控盘>0,;
选股: (有庄控盘>0 AND 有庄控盘<3 );

======================================================



回复

举报

QQ|

GMT+8, 2024-11-18 10:29

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