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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

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


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

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

{青龙取水}
A1:=MIN(MA(C,5),MA(C,10))>MA(C,60) AND CROSS(MA(C,5),MA(C,10));
A2:=MIN(MA(C,5),MA(C,10))/MA(C,60)<1.05;
A3:=COUNT(V6;
A1 AND A2 AND A3;

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


{东方红大阳升}
HSL:=V/CAPITAL*100;
YB:=HSL>4 AND C>REF(C,1);
A1:=COUNT(YB,13)>=3;
A2:=C/REF(C,1)>1.049 AND HSL>5;
A3:=REF(SUMBARS(V,CAPITAL),13)>89;
A4:=HIGH/C<1.021;
A5:=COUNT(C/REF(C,1)>1.04,10)<5;
A6:=IF(COUNT(HSL>4,5)>=3,0,1);
ZTJ:=A1 AND A2 AND A3 AND A4 {AND A5 AND A6};
ZTJ AND (REF(BARSLAST(ZTJ),1)>20 OR BARSSINCE( ZTJ)=0);

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


{多方叠叠炮}
A1:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)OPEN;
TJ:=A1 AND REF(BARSLAST(A1),1)<9 AND C/REF(C,10)>1.1;

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

{价托}
{N1(2,200,20)N2(2,200,40)N3(2,200,60)}
MA1:=MA(CLOSE,N1);
MA2:=MA(CLOSE,N2);
MA3:=MA(CLOSE,N3);
TUO:=COUNT(CROSS(MA1,MA2),21)=1 AND CROSS(MA2,MA3) AND
COUNT(CROSS(MA1,MA3),21)=1 AND
BARSLAST(CROSS(MA1,MA2))>BARSLAST(CROSS(MA1,MA3)) AND
BARSLAST(CROSS(MA1,MA3))>BARSLAST(CROSS(MA2,MA3)) AND
MA1>REF(MA1,1);

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

{倒挂老鸭头}
MA5 := MA(CLOSE,5);
MA10 := MA(CLOSE,10);
MA60 := MA(CLOSE,60);
PDAY1 := BARSLAST(CROSS(MA60,MA5));{5日均线下穿60日均线}
PDAY2 := BARSLAST(CROSS(MA60,MA10));{10日均线下穿60日均线,至此形成鸭颈部}
PDAY3 := BARSLAST(LOW=LLV(LOW,PDAY2));{形成头部,要反弹}
PDAY4 := BARSLAST(CROSS(MA5,MA10));{反弹后,5日均线和10日均线金叉}
PDAY5 := BARSLAST(CROSS(MA10,MA5));{反弹不久,5日均线和10日均线形成死叉,形成嘴部}
A1:= PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5<5;
A2:= COUNT(CROSS(MA10,MA5),PDAY2)=1;
A1 AND A2;

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

{轻松过头}
NDA := HHVBARS(HIGH,120); {120日内最高价的周期数}
NDAY1:= NDA-10; {最高点之后10日}
NDAY2:= NDA+10; {庄家应该在NDAY1--NDAY2之间吸纳大部分筹码}
A1 := NDA>=30;{确保高点出现的周期数大于30}
A2 := REF(SUM(VOL,20),NDAY1) > FINANCE(7) * 0.4; {吸纳40%}
VMA:=MA(VOL,40);{40日量均线}
A3:=COUNT(VOL0.9;{成交量呈现芝麻点}
A4:=CLOSE>=HHV(HIGH,120);{股价在冲击前高位}
A5:=COUNT(VOL<(MA(VOL,10)*1.3),10)>8;{近期无明显放量}
A1 AND A2 AND A3 AND A4 AND A5;

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

{闲鹤QL-DMI}
N:=7;
TR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),N,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),N,1);
PDI:=DMP*100/TR,COLORWHITE;
MDI:=DMM*100/TR,COLORYELLOW;
ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,N,1),COLORFF66FF;
ADXR:=(ADX+REF(ADX,7))/2,COLOR66FF66;
超买1:=REF(ADXR,2)>REF(ADX,2) AND REF(ADX,2)>REF(PDI,2) AND
(REF(MDI,1)>REF(PDI,1) OR REF(MDI,1)>REF(ADX,1))
AND (CROSS(PDI,MDI) AND CROSS(PDI,ADX) AND CROSS(PDI,ADXR) AND
CROSS(ADX,ADXR)) AND ADX>REF(ADX,1) AND ADXR>REF(ADXR,1) AND (MDI<20 AND PDI>20);
超买D2:=(REF(ADXR,2)>REF(ADX,2) AND REF(ADX,2)>REF(MDI,2)) AND
(EXIST(CROSS(PDI,MDI),4) AND EXIST(CROSS(PDI,ADX),4) AND
EXIST(CROSS(PDI,ADXR),4) AND PDI>ADX) AND REF(ADXR,1)>REF(ADX,1) AND PDI>REF(PDI,1)
AND PDI>MDI AND ADX>REF(ADX,1) AND CROSS(ADX,ADXR) AND (MDI<20 AND PDI>20);
超买D3:=(EXIST(CROSS(PDI,MDI),4) AND EXIST(CROSS(PDI,ADX),4) AND
EXIST(CROSS(PDI,ADXR),4) AND EXIST(CROSS(ADX,MDI),3)) AND PDI>ADX AND ADX>ADXR AND
CROSS(ADXR,MDI) AND (MDI<20 AND PDI>20);
超买5:=((PDI>MDI AND MDI<20 AND ADX>20 AND PDI>20) AND REF(PDI,1)
AND (ADX>REF(ADX,1) AND ADXR>REF(ADXR,1) AND PDI>REF(PDI,1) AND MDI
AND ((CROSS(PDI,ADX) AND CROSS(PDI,ADXR)) OR CROSS(ADX,ADXR));
超买6:=((REF(PDI,1)>REF(MDI,1) OR CROSS(REF(PDI,1),REF(MDI,1))) AND REF(ADXR,1)>REF(ADX,1) AND
ADX>REF(ADX,1)) AND PDI>REF(PDI,1) AND PDI>ADX AND MDI
CROSS(ADX,ADXR) AND (MDI<20 AND PDI>20);
超买7:=(REF(MDI,1)>REF(ADX,1) AND MDI
OR EXIST(CROSS(PDI,MDI),2)) AND (CROSS(PDI,MDI) AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI))
AND (MDI<20 AND PDI>20);
短线买:=IF(超买1 OR 超买D2 OR 超买D3 OR 超买5 OR 超买6 OR 超买7,30,5),COLORMAGENTA;
牛股起动:短线买=30;

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

{B买入选股}
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
B:(CROSS(VAR1,MA(VAR2,6)));

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

{金叉见底}
ND := 5;
DOWN := CLOSE/LLV(LOW,60)<=1.2;
PMA1 := MA(CLOSE,5);
PMA2 := MA(CLOSE,10);
VMA1 := MA(VOL,5);
VMA2 := MA(VOL,10);
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
PPDAY := BARSLAST(CROSS(PMA1,PMA2));
YDAY := BARSLAST(CROSS(VMA1,VMA2));
MACDDAY := BARSLAST(CROSS(DIFF,DEA));
SJCJD:= IF((PPDAY<=ND AND DAY<=ND AND MACDDAY<=ND),1,0);
SJCJD;

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

{双价托}
{N1(1,300,20)N2(1,300,40)N3(1,300,60)}
MA1:=MA(CLOSE,N1);
MA2:=MA(CLOSE,N2);
MA3:=MA(CLOSE,N3);
TUO:=COUNT(CROSS(MA1,MA2),21)=1 AND CROSS(MA2,MA3){COUNT(CROSS(MA2,MA3),21)=1} AND
COUNT(CROSS(MA1,MA3),21)=1 AND
BARSLAST(CROSS(MA1,MA2))>BARSLAST(CROSS(MA1,MA3)) AND
BARSLAST(CROSS(MA1,MA3))>BARSLAST(CROSS(MA2,MA3)) AND
MA1>REF(MA1,1);
A1:=TUO AND REF(BARSLAST(TUO),1)<89;

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


{猎豹出击}
M1:=MA(C,60);
A1:=COUNT(C31;
A2:=CROSS(C,M1);
A3:=C/REF(C,1)>1.045;
A1 AND A2 AND A3;

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

{金蜘蛛}
{N1(1,300,5)N2(1,300,10)N3(1,300,20)}
MA1:=MA(CLOSE,N1);
MA2:=MA(CLOSE,N2);
MA3:=MA(CLOSE,N3);
A1:=COUNT(CROSS(MA2,MA3),2)=1;
A2:=COUNT(CROSS(MA1,MA3),2)=1;
A1 AND A2;

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

{多方炮}

A1:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)OPEN;
A1;

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


{天上井地下井}
M1:=MA(C,5);
M2:=MA(C,10);
M3:=MA(C,20);
M4:=MA(C,30);
TSJ:=COUNT(CROSS(M3,M1),21)=1 AND COUNT(CROSS(M4,M1),21)>0 AND
COUNT(CROSS(M3,M2),21)>0 AND COUNT(CROSS(M4,M2),21)>0;
MM1:=MA(V,5);
MM2:=MA(V,10);
MM3:=MA(V,20);
MM4:=MA(V,30);
DXJ:=COUNT(CROSS(MM3,MM1),21)=1 AND COUNT(CROSS(MM4,MM1),21)>0 AND
COUNT(CROSS(MM3,MM2),21)>0 AND COUNT(CROSS(MM4,MM2),21)>0;
ZTJ:=COUNT(TSJ,13)>0 AND COUNT(DXJ,13)>0;
ZTJ AND (REF(BARSLAST(ZTJ),1)>20 OR BARSSINCE( ZTJ)=0);

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

{一阳上穿三角}
{N1(1,300,20)N2(1,300,40)N3(1,300,60)}
MA1:=MA(CLOSE,N1);
MA2:=MA(CLOSE,N2);
MA3:=MA(CLOSE,N3);
TUO:=COUNT(CROSS(MA1,MA2),21)=1 AND CROSS(MA2,MA3){COUNT(CROSS(MA2,MA3),21)=1} AND
COUNT(CROSS(MA1,MA3),21)=1 AND
BARSLAST(CROSS(MA1,MA2))>BARSLAST(CROSS(MA1,MA3)) AND
BARSLAST(CROSS(MA1,MA3))>BARSLAST(CROSS(MA2,MA3)) AND
MA1>REF(MA1,1);
A1:=C>MAX(MA1,MAX(MA2,MA3)) AND O
A2:=COUNT(A1,21)=1;
TUO AND A2;

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


{量顶天立地}
A1:=V=HHV(V,120);
A2:=C/OPEN>1.049;
TJ:=A1 AND A2;
TJ AND (REF(BARSLAST(TJ),1)>80 OR BARSSINCE(TJ)=0);

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


{量托}
{N1(1,100,5)N2(1,100,10)N3(1,100,20)}
MA1:=MA(V,N1);
MA2:=MA(V,N2);
MA3:=MA(V,N3);
TUO:=COUNT(CROSS(MA1,MA2),21)=1 AND CROSS(MA2,MA3){COUNT(CROSS(MA2,MA3),21)=1} AND
COUNT(CROSS(MA1,MA3),21)=1 AND
BARSLAST(CROSS(MA1,MA2))>BARSLAST(CROSS(MA1,MA3)) AND
BARSLAST(CROSS(MA1,MA3))>BARSLAST(CROSS(MA2,MA3)) AND
MA1>REF(MA1,1);
TUO;

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


{黑马草上飞}
LCZ:=(C-MA(C,60))/MA(C,60)*100;
A1:=COUNT(MA(C,60)>REF(MA(C,60),1),100)>95;
A2:=COUNT(LCZ<20,100)>95;
A3:=COUNT(C>MA(C,60),100)>80;
A4:=C/REF(C,1)>1.04;
A5:=V/CAPITAL*100>2.8;
ZTJ:=A1 AND A2 AND A3 AND A4 AND A5;
ZTJ AND (REF(BARSLAST(ZTJ),1)>20 OR BARSSINCE( ZTJ)=0);

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

{一阳穿三线A}
MA1:=MA(CLOSE,20);
MA2:=MA(CLOSE,40);
MA3:=MA(CLOSE,60);
{A1:=(OPEN
A1:=OPEN
A2:=C>MAX(MA1,MAX(MA2,MA3));
A3:=V/MA(V,30)>1.2;
A4:=C/REF(C,1)>1.049;
TJ:=A1 AND A2 AND A3 AND A4;
TJ;

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


{放量过头}
HIGHPRICE := HHV(HIGH,60); {60日内最高价}
A1:= CLOSE>HIGHPRICE;{股价在冲击前高位}
A2:= (VOL>MA(VOL,5)*2.5) OR (COUNT(VOL>MA(VOL,10),6)>4);{近期明显放量}
A1 AND A2;

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

{DIF上穿零线}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
COUNT(DIF>=0,60)=1 AND DIF>=0;
==========================================



回复

举报

QQ|

GMT+8, 2024-11-18 08:26

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