通达信选股公式

通达信选股公式,第1张

通达信选股公式:

条件选股公式源码:

年认同价:=MA(C,240);

价格中枢:=(SUM(年认同价,0)/(BARSSINCE(年认同价>0)+239));

箱顶:=价格中枢12;

箱底:=价格中枢08;

毛利润率:=FINANCE(21)/FINANCE(20);

成长价值:=年认同价(1+毛利润率);

收益价值:=年认同价+FINANCE(33);

回调认同:=EMA(EXPMA(C,20),13);

多头:=(回调认同>REF(回调认同,1))AND(成长价值>REF(成长价值,1))AND(收益价值>REF(收益价值,1))AND(DYNAINFO(7)>0);

回调条件:=COUNT(C<回调认同,5)>=3;

回调突破:=(REF(C,1)<=REF(回调认同,1))AND(C>回调认同)AND(回调条件)AND多头;

成长条件:=COUNT(C<成长价值,5)>=3;

成长突破:=(REF(C,1)<=REF(成长价值,1))AND(C>成长价值)AND(成长条件)AND多头;

收益条件:=COUNT(C<收益价值,5)>=3;

收益突破:=(REF(C,1)<=REF(收益价值,1))AND(C>收益价值)AND(收益条件)AND多头;

箱底条件:=COUNT(C<箱底,5)>=3;

箱底突破:=(REF(C,1)<=REF(箱底,1))AND(C>箱底)AND(箱底条件)AND多头;

价格条件:=COUNT(C<价格中枢,5)>=3;

价格突破:=(REF(C,1)<=REF(价格中枢,1))AND(C>价格中枢)AND(价格条件)AND多头;

箱顶条件:=COUNT(C<箱顶,5)>=3;

箱顶突破:=(REF(C,1)<=REF(箱顶,1))AND(C>箱顶)AND(箱顶条件)AND多头;

突破买点:(回调突破+成长突破+收益突破+箱底突破+价格突破+箱顶突破);

专买老鼠仓

{老鼠仓}

AA1:=AMOUNT/V;

BB1:=L<AA109;

CC1:=(C-REF(C,1))/REF(C,1)100>12;

DD1:=L<MA(C,5)0921;

EE1:=V<MA(V,5)15;

FF1:=BB1 AND CC1 AND DD1 AND EE1;

DRAWTEXT(FF1,(LOW 097),'老鼠仓'),COLOR4080FF;

老鼠仓是个很不错的指标,信号发出一般都在一个波段的底部起涨之时。

根据本人的实践,使用指标时候要注意几点:

1 该指标可以添加到任何一个主图里面去,比如MA均线什么的。

2 出现信号当天买进股票,第二天收阳继续持股,直到出阴为止。

3 第二天出阴考虑卖出,非常适合短线操作!

老鼠仓(选股公式)

AA1:=AMOUNT/V;

BB1:=L<AA109;

CC1:=(C-REF(C,1))/REF(C,1)100>12;

DD1:=L<MA(C,5)0921;

EE1:=V<MA(V,5)15;

老鼠仓:BB1AND CC1 AND DD1 AND EE1;

理想选股(选股公式)

VAR1:=MA((LOW+HIGH+CLOSE)/3,5);

VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);

VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);

VAR4:=VAR1>REF(VAR1,1) AND REF(VAR1,1)<REF(VAR1,2);

VAR5:=LOW<HHV(VAR1,13) AND HIGH>HHV(VAR1,13) AND CLOSE>REF(C,1) ANDCLOSE>OPEN;

VAR6:=VAR5 AND COUNT(VAR4,2);

VAR7:=VAR6 AND NOT(REF(VAR6,1));

VAR8:=100EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);

VAR9:=EMA(MA(C,13),13);

VAR10:=FILTER((LLV(VAR8,2)=LLV(VAR8,7) AND COUNT(VAR8<0,2) ANDCROSS(VAR8,MA(VAR8,2)))=1,5);

VAR11:=SMA(EMA((C-REF(C,1))/REF(C,1),5)100,3,1)10;

VAR12:=FILTER(((CROSS(VAR11,0) OR CROSS(C,VAR9)) AND VAR10)=1,3);

VAR13:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J:=3K-2D;

金叉:=CROSS(J,D);

死叉:=CROSS(D,J);

买1:=(VAR12OR VAR13) AND VAR10;

买2:=(VAR12OR VAR13) AND VAR3;

买3:=(VAR12OR VAR13) AND VAR2;

买4:=(VAR2AND VAR10) OR (VAR3 AND VAR10);

买5:=(金叉AND VAR3) OR (金叉 AND VAR2) OR (金叉 AND VAR10);

ST:=EXIST(C/REF(C,1)>106,50);

输出:=(买1OR 买2OR 买3OR 买4OR 买5OR VAR7) AND ST;

MA5:=MA(C,5),COLORWHITE;

X:=(3C+L+O+H)/6;

多空线:=(20X+19REF(X,1)+18REF(X,2)+17REF(X,3)+16REF(X,4)+15REF(X,5)+14REF(X,6)

+13REF(X,7)+12REF(X,8)+11REF(X,9)+10REF(X,10)+9REF(X,11)+8REF(X,12)

+7REF(X,13)+6REF(X,14)+5REF(X,15)+4REF(X,16)+3REF(X,17)+2REF(X,18)+

REF(X,20))/210,COLORFF00FF,LINETHICK1;

AB:=DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORYELLOW;

CROSS(MA5,多空线) and CROSS(C,AB) and 输出 ;

点石成金(选股公式)

KS13:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)(-100);

RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))100;

FASTK:=SMA(RSV,3,1);K:=SMA(FASTK,3,1);D:=SMA(K,5,1);

Var1:=CLOSE/MA(CLOSE,40)100<76;

Var2:=CLOSE/MA(CLOSE,60)100<74;

Var3:=HIGH>LOW1051;

Var4:=Var3 AND COUNT(Var3,5)>1;

Var4 AND (Var1 OR Var2) AND REF(KS13,1)>=10 AND REF(KS13,1)/KS13>=113AND

CLOSE/REF(CLOSE,1)>=102;

牛市绝底(选股公式)

VAR1:=REF(CLOSE,1);

VAR2:=((SMA(MAX((CLOSE - VAR1),0),7,1) / SMA(ABS((CLOSE - VAR1)),7,1)) 100);

VAR3:=((SMA(MAX((CLOSE - VAR1),0),13,1) / SMA(ABS((CLOSE - VAR1)),13,1)) 100);

VAR4:=((100 (HHV(HIGH,48) - LOW)) / HHV(HIGH,48));

VAR5:=((100 (HIGH - LLV(LOW,48))) / LLV(LOW,48));

牛市绝底:VAR2< 15 AND VAR3 < 20 AND (VAR2 + VAR3) > 20 AND VAR4 > 40 ANDBARSCOUNT(CLOSE) > 47;

飞弹一号(选股公式)

var1:=c/ma(c,40)100<78;

var2:=c/ma(c,60)100<74;

var3:=h>=l1051;

var4:=var3 and count(var3,5)>=2;

xg:var4 and (var1 or var2) and count(h=l and c=o and c<ref(c,1),3)=0

and hhv(v/capital,30)<08;

跟庄建仓源码

A01:=DYNAINFO(7);

A03:=BARSCOUNT(CLOSE);

A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) 100);

A05:=IF((A03 > 20),A04,0);

A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0009) / ((HIGH -LOW) + 0009))));

A07:=DMA(A06,(VOL / CAPITAL)) 60;

A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);

Var1:=3SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))100,5,1)-2SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))100,5,1),3,1);

Var2:=EMA(Var1,8);

Var3:=3SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))100,5,1)-2SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))100,5,1),3,1);

趋势:=EMA(Var3,3)-10;

STICKLINE(趋势>80,趋势,80,5,0);

DRAWICON(CROSS(趋势,0),0,1);

STICKLINE((A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND趋势<50)),0,A09,6,0),colorFFff00;

机构建仓区:0,LINETHICK0,colorFFFF00;

Var4:=(趋势-REF(趋势,1))/REF(趋势,1)100;

STICKLINE(趋势<=13,0,20,3,0),colorcc9900;

DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),colorcc9900;

STICKLINE(趋势<=13 AND Var4>13,0,50,2,0),color0099ff;

Var5:=FILTER((趋势<=13 AND Var4>13),10);

DRAWTEXT(Var5,60,'买入'),color0099ff;

STICKLINE(趋势>=90 AND Var4,0,30,3,0),colorgray;

Var6:=FILTER((趋势>=90 AND Var4),10);

DRAWTEXT(Var6,40,'清仓'),colorgray;

Var7:=LLV(LOW,30);

Var8:=HHV(HIGH,30);

Var9:=EMA((CLOSE-Var7)/(Var8-Var7)4,4)25;

STICKLINE(Var9>90,100,105,3,2),COLORRED;

Var10:=(Var9-LLV(Var9,4))/(HHV(Var9,4)-LLV(Var9,4))100;

DRAWTEXT(IF(CROSS(Var9,Var10) AND Var9>87,95,0),88,'险'),Color00FF00;

DRAWICON(CROSS(90,Var9),95,9);

Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)100;

Var12:=HHV(Var11,30)8;

火焰山:EMA(IF(LOW<=Var7AND 趋势<40,(Var11+Var12),0),3)/618,COLORRED,linethick2;

STICKLINE(火焰山>0,0 ,火焰山12,4,0 ),COLORRED;

Var13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;

Var14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;

趋势线:趋势,colorff0000;

Var16:=MAX(EMA(Var13,2)-EMA(Var14,5),0)200;

Var17:=EMA(Var16,5);

波浪峰:Var17,stick,colorff00ff;

STICKLINE(Var17<REF(Var17,1),0,Var17,1,0),color00ff00;

Var18:=MA(趋势线,8);

if(CROSS(Var2,Var18) AND Var2<15,50,0),COLORRED;

DRAWTEXT(CROSS(趋势线,Var2)AND 趋势线>REF(趋势线,1)AND 趋势线<50,50,'追涨'),COLORff00ff;

风险区:IF(趋势>80,趋势,80),colorff00ff;

双信号"全仓"选股(选股公式)

FF:=EMA(CLOSE,3);

MA15:=EMA(CLOSE,21);

TTJ:=CROSS(FF,MA15);

上:=EMA(C,3),COLORBLUE,LINETHICK1;

中:=EMA(C,5),COLORWHITE,LINETHICK1;

下:=EMA(中,5),COLOR00FF00,LINETHICK1;

QQ:= C<中;

MM:=上>REF(上,1)AND REF(上,1)<REF(上,2) ;

V1:=ABS((2CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);

V2:=(1-7/100)(DMA(CLOSE,V1));

V3:=(1+7/100)(DMA(CLOSE,V1));

V5:=MA((LOW+HIGH+CLOSE)/3,5);

MA1:=MEMA(CLOSE,5);

MA2:=ATAN((MA1/REF(MA1,1)-1)100)180/31416;

MA3:=IF(MA2>0,MA2,MA2);

MA5:=MA(CLOSE,5),COLOR888899;

MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;

VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))

OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND

REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND

C>=REF(C,1) AND C>=REF(C,2);

{收盘价=4日内收盘价的最高值AND 昨收>=2日前的收盘价}

VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);

{收盘价=4日内收盘价的最高值AND 昨收=4日内收盘价的最低值}

VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR

REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND

REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND

C<REF(C,1) AND C<REF(C,2);

{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}

VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND

REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);

{昨收=4日内收盘价的最低值AND 收盘价>=2日前的收盘价}

VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND

REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND

REF(C,2)>=REF(C,4) AND C<REF(C,1);

{昨收=4日内收盘价的最高值AND 收盘价<2日前的收盘价}

VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);

{今日V5向上形成拐点}

VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) ANDCLOSE>OPEN;

VAR08:=VAR07 AND COUNT(VAR06,2);

VAR09:=100EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);

VAR10:=EMA(MA(C,13),13);

VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND

CROSS(VAR09,MA(VAR09,2)))=1,5);

VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) AND

CROSS(MA(VAR09,2),VAR09))=1,1);

VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)100,3,1)10;

VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);

VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));

VAR16:=VAR08 AND NOT(REF(VAR08,1));

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J:=3K-2D;

金叉:=CROSS(J,D);

死叉:=CROSS(D,J);

买1:=(VAR14OR VAR15) AND VAR11;

买2:=(VAR14OR VAR15) AND VAR04;

买3:=(VAR14OR VAR15) AND VAR02;

买4:=(VAR02AND VAR11) OR (VAR04 AND VAR11);

买5:=(金叉AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);

TTJ0:=VAR16;

TTJ1:=买1OR 买2OR 买3OR 买4OR 买5AND MM;

XG0:=TTJ AND TTJ0;

XG1:=TTJ AND TTJ1;

XG11:=XG0 OR XG1;

{以下波浪理论浪底重叠"买底"选股原码}

PL5:=ZIG(3,5);

EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) ANDREF(ZIG(3,5),2)<=REF(ZIG(3,5),3);

EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) ANDREF(ZIG(3,5),2)>=REF(ZIG(3,5),3);

PL10:=ZIG(3,10);

EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2)AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);

EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2)AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);

PL20:=ZIG(3,20);

EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2)AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);

EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2)AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);

PL40:=ZIG(3,40);

走强1:=BARSLAST(PL5<REF(PL5,1));

走弱1:=BARSLAST(PL5>REF(PL5,1));

走强2:=BARSLAST(PL10<REF(PL10,1));

走弱2:=BARSLAST(PL10>REF(PL10,1));

走强3:=BARSLAST(PL20<REF(PL20,1));

走弱3:=BARSLAST(PL20>REF(PL20,1));

ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);

ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);

DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);

DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);

ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);

ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);

DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);

DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);

TJ11:=EN2 AND ZTJZ5=1;

TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;

TJ33:=EN2 AND DTJZ10=1;

TJ44:=EN3 AND ZTJZ10=1;

TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;

XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;

{以下二者结合共同选股}

XG:=XG11 OR XG22;

W18:EXIST(XG,1);

可以编写3到5天出现过涨停,并且涨停当日成交量是前一日2倍以上,并且收盘价一直在涨停阳线实体最低点之上选股效果如下图

2、通达信经典公式集锦

内容来自用户:6_zaq

通达信经典公式集锦[复制链接]

130个交易日内,股价跌幅达到一半的股票:

xg:(hhv(c,30)-c)/hhv(c,30)>05;

2,今天的量是5天平均的2倍以上

xg:v>ma(v,5)2;

缩量

vol/ma(vol,10)<03;

3,两天内,累计下跌等于或超过20%选股

xg:(ref(c,2)-c)/c>02;

4,股价是25天以来新低

xg:c<ref(llv(c,25),1);

5,选股:EXPMA 5日与10日金叉并且第二天的收盘价在EXPMA的5日线以上.

cross(ref(ema(c,5),1),ref(ema(c,10),1)) and c>ema(c,5);

6,请编买入公式:

1将BIAS指标的参数设置为24日,将KD指标的参数设置为9;3;3。

2 BIAS指标要小于-6,这只是确认该股超跌的初选条件。

3 KD指标产生黄金交叉,K线上穿D线。

4 KD交叉同时,KD指标中的D值要小于16。

BIAS3 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)100,colorff00ff;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))100;

K:=SMA(RSV,3,1),COLORWHITE;

D:=SMA(K,3,1),COLORYELLOW;

xg:BIAS3<-6 and cross(k,d) and d<16;

7,要求是量大、换手率达到3左右,涨幅>7个点。

xg:v/capital100>3 and (c/ref(c,1)>107;

8,个股分时图上都有一条黄线,叫做均价线

a/capital100;

9,"阴转阳"的公式(也就是昨天收阴线,今天收阳线)

xg:ref(c,1)o;

10,股价回抽20日均线选股公式

xg:ref(c,1)>ma(c,20) and cross(ma(c,20),c);

11,一

3、请公式高手编辑一个通达信适用的选股公式

10日均线满足 向上角度小于45度 向下角度大于45度区间的股票

这句话本身就有问题,均线无非是一根线,只有一个方向,你2个方向都要怎么写

4、常用选股公式招及通达信设置方法

内容来自用户:至简传媒

常用选股公式130集(通达信)

1、选股公式

CYC5:=CYC(5);

CYC13:=CYC(13);

CYC34:=CYC(34);

AA:=(HHV(H,55)-LLV(L,55))/LLV(L,55);

建仓完毕:REF(AA,1)=025ANDCYC5>CYC13ANDCYC13>CYC34,COLORYELLOW;

2、条件选股公式:

MACD,RSI,KDJ底背离选股公式:60分钟

KDJ_K:="KDJK"(9,3,3);KDJ_D:="KDJD"(9,3,3);KDJ_J:="KDJJ"(9,3,3);

买1:=CROSS(KDJ_J,0)OR(CROSS(KDJ_J,KDJ_K)ANDKDJ_D<26);

买2:=CROSS("RSIRSI1"(6,2,2),20)ORCROSS("RSIRSI1"(6,12,24),"RSIRSI2"(6,12,24));

买3:=CROSS("MACDDIF","MACDDEA")ORCROSS("MACDMACD",0);

买0:=买1+买2+买3;

买:IF(买0>1,买0,0);

3、{极品选股}

Var1:=AMOUNT/(100VOL);

Var2:=MA(Var1,13);

Var3:=MA(Var1,34);

Var4:=DMA(CLOSE,VOL/CAPITAL);

Var5:=(CLOSE-Var2)/Var2100;

Var6:=(CLOSE-Var3)/Var3100;

Var7:=(CLOSE-Var4)/Var4100;

亏损程度:IF(Var5<=-7,7,0),colorff00ff;

IF(Var5<=-10,10,0),colorwhite;

IF(Var5<=-16,16,0),color00ff00;

IF(Var5<=-20,20,0),colorred;

IF(Var5<=-25,25,0),colorffcccc;

IF(Var5<=-30,30,0),colorblue;

Var8:=COST(10)0;

Var9:=REF(HIGH,1)11;

VarA:=HIGH11;

VarB:=(VarAVOL+Var9(CAPITAL-VOL))/CAPITAL;

VarC:=REF(LOW,1)09;

VarD:=LOW09;

VarE:=(VarDVOL+VarC

5、通达信经典实用选股公式(125个常用公式源码)

内容来自用户:Kevin_sjz

通达信经典实用选股公式(125个常用公式源码)

130个交易日内,股价跌幅达到一半的股票:

xg:(hhv(c,30)-c)/hhv(c,30)>05;

2,今天的量是5天平均的2倍以上

xg:v>ma(v,5)2;

缩量

vol/ma(vol,10)<03;

3,两天内,累计下跌等于或超过20%选股

xg:(ref(c,2)-c)/c>02;

4,股价是25天以来新低

xg:c<ref(llv(c,25),1);

5,选股:EXPMA5日与10日金叉并且第二天的收盘价在EXPMA的5日线以上.

cross(ref(ema(c,5),1),ref(ema(c,10),1))andc>ema(c,5);

6,请编买入公式:

1将BIAS指标的参数设置为24日,将KD指标的参数设置为9;3;3。

2BIAS指标要小于-6,这只是确认该股超跌的初选条件。

3KD指标产生黄金交叉,K线上穿D线。

4KD交叉同时,KD指标中的D值要小于16。

BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)100,colorff00ff;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))100;

K:=SMA(RSV,3,1),COLORWHITE;

D:=SMA(K,3,1),COLORYELLOW;

xg:BIAS3<-6andcross(k,d)andd<16;

7,要求是量大、换手率达到3左右,涨幅>7个点。

xg:v/capital100>3and(c/ref(c,1)>107;

8,个股分时图上都有一条黄线,叫做均价线

a/capital100;

9,"阴转阳"的公式(也就是昨天收阴线,今天收阳线)

xg:ref(c,1)o;

10,股价回抽20日均线选股公式

xg:ref(c,1)>ma(c,20)andcross(ma(c,20),c);

11,一根大阳线,至少有5个点以上,再连着出现二根振幅不大于5的十

6、通达信怎样将这个指标公式换成选股公式?

通达信指标公式与选股公式最主要的区别是,指标公式可以有多个输出,而选股公式只能有一个输出。要把指标公式改成选股公式最简单的办法是把你不需要的输出语句改成赋值语句就可以了。 VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL); OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0); MAOBV:MA(OBV,M); RANGE((((OBV-MAOBV)/MAOBV)100),-05,05); 例如,上面是OBV指标公式,一共有三个输出,现在要改成选股公式,那么把不需要的两个语句改成赋值语句就可以了,具体是在输出指标名字后加等号就可以了,改后就是如下 VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL); OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0); MAOBV:=MA(OBV,M); RANGE((((OBV-MAOBV)/MAOBV)100),-05,05); 选股公式是要建在条件选股公式栏目里的,建好后在条件选股器里就能看到,也就能执行条件选股了。在条件预警里边就可以把选股公式加进预警里了,进行预警使用了。

7、多年来收集很多最好的选股公式通达信指标公式源码

内容来自用户:孙玲玲

多年来收集很多最好的选股公式

我们小散户做的是政策面大指标里的个股,不是整个政策面里的所有股。看业绩,看基本面,看政策都不如看个股快要拉升的时机。好指标里显示个股拉升前的习惯和成交量的数据,好指标的确像温度计一样记录了39度是发烧,0度以下要结冰的事实。熊市里有涨的可以赚钱的个股,牛市里有跌的能套人的个股。能有一个更好的指标让大家在牛市里多赚一点钱,在熊市里少赚一点钱,就值得了。

对潜水的朋友说:多回复下帖子,其实就是几个字而已,但是这几个字对于发帖人来说鼓励是很大的!行了废话少说源码奉上!一选股指标次日涨停W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));W4 AND COUNT(W4,5)=1;黄转紫选股DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)2;紫柱:MACDREF(MACD,1) AND REF(MACD,1)<REF(MACD,2);低位金叉选股DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)2;低位金叉:CROSS(DIFF,DEA) AND DIFF=0));二次金叉:CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;绝地反弹(1)VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)100;VAR3:=EMA(IF(CLOSE12,V

A1:=HHV(H,20);{20日内最高价的最高值}

A2:=BARSLAST(A1);{上次20日内最高价的最高值距今天数}

A3:=REF(C,1)<=A1;{昨收<=20日内最高价的最高值}

A4:=CROSS(H,A1);{最高价上穿20日内最高价的最高值}

A5:=V<REF(V,A2);{成交量<A2日前的成交量}

XG:A3 AND A4 AND A5;

在股市中,选股是第一步。只有选对了股票,下面的操作才有机会赚钱。

接下来,声音越大的攻略,我给大家讲解一套战术。这套选股战术就是——W底选股战术!

1W底选股策略是什么?

w底选股战术:一般发生在股价长期下跌后。此时由于股价处于低位,股票持有者认为股票基本处于底部,拒绝卖出所持股票,因此交易量逐渐萎缩。但随着抄底者和持有人补仓的增多,股价有所回升。然而,力量是有限的。反弹后继续下跌,在前期低点止跌,股价在该位置再次反弹。

总结:空方连续三根阴线,压制能量耗尽,多方发起反击。但前期密集交易区的高度受阻回落,但股价并未跌破前期低点。然后多方再次发起反击,一举突破前期阻力位,逐渐上涨。当股价从第二个底部上涨到峰值价格的3%以上时,可视为有效突破。股价的这种走势形成了双底,为后市的上涨埋下了伏笔。

w海底形态特征:

1经过长时间的回调,股价开始反弹,然后达到高点后继续回落。当股价接近前期低点时,停止下跌。而且在回调的过程中,成交量逐渐萎缩。

2再次触底后,股价在上涨,成交量逐渐放大。当股价再次到达前期反弹高点时,直接突破走强。

3当股价突破颈线时,如果有持续的量能,股价就会不断上涨,导致行情走好。但有时候突破之后,股价会在短期内回落到颈线,然后上涨。

W底(双底)的最佳买点:

1股价突破颈线时;

2当股价突破颈线并拉回颈线或30日均线上涨时。

案例1:

该股在2016年8月19日至9月1日走出双底形态,随后股价一路上涨。涨幅达到了65%

案例二:

W底技术形态出现后,股票买入,然后暴涨75%!

最后,月升攻略给大家介绍几个判断双底的要素:

下降趋势;两个底,位置左低右高,或者平;二次探底的力度较弱,缩量较剧烈;突破第一次反弹的高点,也就是颈线。投资者可以在突破颈线时买入股票,也可以在股价回破颈线时买入。激进投资者可以在第二次探底时建立适量的头寸。

(此信息仅供参考,不构成投资建议。投资的时候要仔细评估。

相关问答:相关问答:如何挖掘二次探底的股票?

二次探底,就是我们常说的w底或二重底、双重底形态的股票,指的是股票的价格和前低的价格大致相同时形成的股价走势图形。

想要挖掘w底形态的股票,在当前3000多只股票里面,每天都要一个一个去翻找,这种工作量,估计没有几个人愿意去做。现在大家都有电脑,很多人都会写指标公式进行自动化运算,从而筛选符合自己要求的股票。w底选股,网上也可以找得到。以下就是选股源码,仅供参考。

指标名称:W底选股公式 QDIF:=EMA(CLOSE,12)-EMA(CLOSE,26); QDEA:=EMA(QDIF,9); QMACD:=(QDIF-QDEA)2; M5:=MA(C,5); M10:=MA(C,10); M20:=MA(C,20); DXW1:=IF((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)),1,0); XH1:=IF(COUNT(DXW1,3)>0,1,0); RQ1:=BARSLAST(DXW1); RQ2:=REF(RQ1,RQ1+1)+RQ1+1; RQ3:=IF(RQ2-RQ1>6,1,0); ZBW:=IF(DXW1=1,QMACD<0 AND OPEN<M20 AND M5<REF(M5,1),0); WWMR:=SUM(ZBW,20); XG:IF(WWMR=2 AND RQ3 AND XH1,1,0);

这个指标使用了未来函数ZIG,不过,可以放心使用。因为这是形态选股,不需要那么精准。对于指标自动选择的股票,还需要对选出的股票,人工确认一下w底形态是否成立,毕竟电脑对形态这样模糊的条件判断可能不是很准确。

欢迎转评赞。

子豪现在每天在 微信公众号:陈天解股坚持讲解选股思路,来反馈粉丝朋友对我的支持,目前已经有很多粉丝都已经学会,近期都抓住了不少短线牛股。如果你也是操作短线的新股民,希望你发3分钟看完,之前选的牛股很多,就比如下面这只:

对于底部反弹个股一波拉升后的回踩,本人给大家讲过要注意回踩阶段的量与势,量能持续萎缩,趋势在回踩至支撑企稳,那么此股后期定有一波反弹主胜浪,上面的哈投股份是不是如此,30号盘中选出,随后一路大涨,今天更是涨停,你有没有抓住?恭喜本人的粉丝及时进场布局!

目前这种行情,很多底部个股都是走出类似行情,就如股价在回踩至5日时,本人选出讲解的海泰发展,目前已经成功上涨50%,这就是本人粉丝能够把握到的利润,你想不想抓!

本人一直在讲思路,讲技巧,就是为了提高朋友们的选股和操作能力,更好的适应股市!像九有股份、南风股份这样的短期爆发牛股,本人在选股文章会持续讲解,又到了每日竞猜时刻,看下面这只股能不能如上面一样走出短线行情:

该股走势非常明显,上升回档形态,本周经过连续阴跌回调,主力洗盘彻底,吸筹完毕,回调结束转强,量价齐升,该股后期走势和买卖时机将另行发布,想抓机会的股友留意。微信公众号:陈天解股

思路很多,牛股更多,子豪希望下一个学会此种思路抓住牛股的,就是正在阅读本文的你!当然,如果大家手中持有股票已经被套,不懂解套,不懂走势,不懂操作,都可以一同探讨,子豪看到定当鼎力相助,为大家答疑解惑。

微信公众号:陈天解股

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J:=3K-2D;

CROSS(J,0)

---------------或:

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

KD:CROSS(K,D)&&K<20;

注:------------------------系统有该公式源码。

通达信选股公式:

条件选股公式源码:

年认同价:=MA(C,240);

价格中枢:=(SUM(年认同价,0)/(BARSSINCE(年认同价>0)+239));

箱顶:=价格中枢12;

箱底:=价格中枢08;

毛利润率:=FINANCE(21)/FINANCE(20);

成长价值:=年认同价(1+毛利润率);

收益价值:=年认同价+FINANCE(33);

回调认同:=EMA(EXPMA(C,20),13);

多头:=(回调认同>REF(回调认同,1))AND(成长价值>REF(成长价值,1))AND(收益价值>REF(收益价值,1))AND(DYNAINFO(7)>0);

回调条件:=COUNT(C<回调认同,5)>=3;

回调突破:=(REF(C,1)<=REF(回调认同,1))AND(C>回调认同)AND(回调条件)AND多头;

成长条件:=COUNT(C<成长价值,5)>=3;

成长突破:=(REF(C,1)<=REF(成长价值,1))AND(C>成长价值)AND(成长条件)AND多头;

收益条件:=COUNT(C<收益价值,5)>=3;

收益突破:=(REF(C,1)<=REF(收益价值,1))AND(C>收益价值)AND(收益条件)AND多头;

箱底条件:=COUNT(C<箱底,5)>=3;

箱底突破:=(REF(C,1)<=REF(箱底,1))AND(C>箱底)AND(箱底条件)AND多头;

价格条件:=COUNT(C<价格中枢,5)>=3;

价格突破:=(REF(C,1)<=REF(价格中枢,1))AND(C>价格中枢)AND(价格条件)AND多头;

箱顶条件:=COUNT(C<箱顶,5)>=3;

箱顶突破:=(REF(C,1)<=REF(箱顶,1))AND(C>箱顶)AND(箱顶条件)AND多头;

突破买点:(回调突破+成长突破+收益突破+箱底突破+价格突破+箱顶突破);

专买老鼠仓

{老鼠仓}

AA1:=AMOUNT/V;

BB1:=L<AA109;

CC1:=(C-REF(C,1))/REF(C,1)100>12;

DD1:=L<MA(C,5)0921;

EE1:=V<MA(V,5)15;

FF1:=BB1 AND CC1 AND DD1 AND EE1;

DRAWTEXT(FF1,(LOW 097),'老鼠仓'),COLOR4080FF;

老鼠仓是个很不错的指标,信号发出一般都在一个波段的底部起涨之时。

根据本人的实践,使用指标时候要注意几点:

1 该指标可以添加到任何一个主图里面去,比如MA均线什么的。

2 出现信号当天买进股票,第二天收阳继续持股,直到出阴为止。

3 第二天出阴考虑卖出,非常适合短线操作!

老鼠仓(选股公式)

AA1:=AMOUNT/V;

BB1:=L<AA109;

CC1:=(C-REF(C,1))/REF(C,1)100>12;

DD1:=L<MA(C,5)0921;

EE1:=V<MA(V,5)15;

老鼠仓:BB1AND CC1 AND DD1 AND EE1;

理想选股(选股公式)

VAR1:=MA((LOW+HIGH+CLOSE)/3,5);

VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);

VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);

VAR4:=VAR1>REF(VAR1,1) AND REF(VAR1,1)<REF(VAR1,2);

VAR5:=LOW<HHV(VAR1,13) AND HIGH>HHV(VAR1,13) AND CLOSE>REF(C,1) ANDCLOSE>OPEN;

VAR6:=VAR5 AND COUNT(VAR4,2);

VAR7:=VAR6 AND NOT(REF(VAR6,1));

VAR8:=100EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);

VAR9:=EMA(MA(C,13),13);

VAR10:=FILTER((LLV(VAR8,2)=LLV(VAR8,7) AND COUNT(VAR8<0,2) ANDCROSS(VAR8,MA(VAR8,2)))=1,5);

VAR11:=SMA(EMA((C-REF(C,1))/REF(C,1),5)100,3,1)10;

VAR12:=FILTER(((CROSS(VAR11,0) OR CROSS(C,VAR9)) AND VAR10)=1,3);

VAR13:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J:=3K-2D;

金叉:=CROSS(J,D);

死叉:=CROSS(D,J);

买1:=(VAR12OR VAR13) AND VAR10;

买2:=(VAR12OR VAR13) AND VAR3;

买3:=(VAR12OR VAR13) AND VAR2;

买4:=(VAR2AND VAR10) OR (VAR3 AND VAR10);

买5:=(金叉AND VAR3) OR (金叉 AND VAR2) OR (金叉 AND VAR10);

ST:=EXIST(C/REF(C,1)>106,50);

输出:=(买1OR 买2OR 买3OR 买4OR 买5OR VAR7) AND ST;

MA5:=MA(C,5),COLORWHITE;

X:=(3C+L+O+H)/6;

多空线:=(20X+19REF(X,1)+18REF(X,2)+17REF(X,3)+16REF(X,4)+15REF(X,5)+14REF(X,6)

+13REF(X,7)+12REF(X,8)+11REF(X,9)+10REF(X,10)+9REF(X,11)+8REF(X,12)

+7REF(X,13)+6REF(X,14)+5REF(X,15)+4REF(X,16)+3REF(X,17)+2REF(X,18)+

REF(X,20))/210,COLORFF00FF,LINETHICK1;

AB:=DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORYELLOW;

CROSS(MA5,多空线) and CROSS(C,AB) and 输出 ;

点石成金(选股公式)

KS13:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)(-100);

RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))100;

FASTK:=SMA(RSV,3,1);K:=SMA(FASTK,3,1);D:=SMA(K,5,1);

Var1:=CLOSE/MA(CLOSE,40)100<76;

Var2:=CLOSE/MA(CLOSE,60)100<74;

Var3:=HIGH>LOW1051;

Var4:=Var3 AND COUNT(Var3,5)>1;

Var4 AND (Var1 OR Var2) AND REF(KS13,1)>=10 AND REF(KS13,1)/KS13>=113AND

CLOSE/REF(CLOSE,1)>=102;

牛市绝底(选股公式)

VAR1:=REF(CLOSE,1);

VAR2:=((SMA(MAX((CLOSE - VAR1),0),7,1) / SMA(ABS((CLOSE - VAR1)),7,1)) 100);

VAR3:=((SMA(MAX((CLOSE - VAR1),0),13,1) / SMA(ABS((CLOSE - VAR1)),13,1)) 100);

VAR4:=((100 (HHV(HIGH,48) - LOW)) / HHV(HIGH,48));

VAR5:=((100 (HIGH - LLV(LOW,48))) / LLV(LOW,48));

牛市绝底:VAR2< 15 AND VAR3 < 20 AND (VAR2 + VAR3) > 20 AND VAR4 > 40 ANDBARSCOUNT(CLOSE) > 47;

飞弹一号(选股公式)

var1:=c/ma(c,40)100<78;

var2:=c/ma(c,60)100<74;

var3:=h>=l1051;

var4:=var3 and count(var3,5)>=2;

xg:var4 and (var1 or var2) and count(h=l and c=o and c<ref(c,1),3)=0

and hhv(v/capital,30)<08;

跟庄建仓源码

A01:=DYNAINFO(7);

A03:=BARSCOUNT(CLOSE);

A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) 100);

A05:=IF((A03 > 20),A04,0);

A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0009) / ((HIGH -LOW) + 0009))));

A07:=DMA(A06,(VOL / CAPITAL)) 60;

A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);

Var1:=3SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))100,5,1)-2SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))100,5,1),3,1);

Var2:=EMA(Var1,8);

Var3:=3SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))100,5,1)-2SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))100,5,1),3,1);

趋势:=EMA(Var3,3)-10;

STICKLINE(趋势>80,趋势,80,5,0);

DRAWICON(CROSS(趋势,0),0,1);

STICKLINE((A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND趋势<50)),0,A09,6,0),colorFFff00;

机构建仓区:0,LINETHICK0,colorFFFF00;

Var4:=(趋势-REF(趋势,1))/REF(趋势,1)100;

STICKLINE(趋势<=13,0,20,3,0),colorcc9900;

DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),colorcc9900;

STICKLINE(趋势<=13 AND Var4>13,0,50,2,0),color0099ff;

Var5:=FILTER((趋势<=13 AND Var4>13),10);

DRAWTEXT(Var5,60,'买入'),color0099ff;

STICKLINE(趋势>=90 AND Var4,0,30,3,0),colorgray;

Var6:=FILTER((趋势>=90 AND Var4),10);

DRAWTEXT(Var6,40,'清仓'),colorgray;

Var7:=LLV(LOW,30);

Var8:=HHV(HIGH,30);

Var9:=EMA((CLOSE-Var7)/(Var8-Var7)4,4)25;

STICKLINE(Var9>90,100,105,3,2),COLORRED;

Var10:=(Var9-LLV(Var9,4))/(HHV(Var9,4)-LLV(Var9,4))100;

DRAWTEXT(IF(CROSS(Var9,Var10) AND Var9>87,95,0),88,'险'),Color00FF00;

DRAWICON(CROSS(90,Var9),95,9);

Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)100;

Var12:=HHV(Var11,30)8;

火焰山:EMA(IF(LOW<=Var7AND 趋势<40,(Var11+Var12),0),3)/618,COLORRED,linethick2;

STICKLINE(火焰山>0,0 ,火焰山12,4,0 ),COLORRED;

Var13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;

Var14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;

趋势线:趋势,colorff0000;

Var16:=MAX(EMA(Var13,2)-EMA(Var14,5),0)200;

Var17:=EMA(Var16,5);

波浪峰:Var17,stick,colorff00ff;

STICKLINE(Var17<REF(Var17,1),0,Var17,1,0),color00ff00;

Var18:=MA(趋势线,8);

if(CROSS(Var2,Var18) AND Var2<15,50,0),COLORRED;

DRAWTEXT(CROSS(趋势线,Var2)AND 趋势线>REF(趋势线,1)AND 趋势线<50,50,'追涨'),COLORff00ff;

风险区:IF(趋势>80,趋势,80),colorff00ff;

双信号"全仓"选股(选股公式)

FF:=EMA(CLOSE,3);

MA15:=EMA(CLOSE,21);

TTJ:=CROSS(FF,MA15);

上:=EMA(C,3),COLORBLUE,LINETHICK1;

中:=EMA(C,5),COLORWHITE,LINETHICK1;

下:=EMA(中,5),COLOR00FF00,LINETHICK1;

QQ:= C<中;

MM:=上>REF(上,1)AND REF(上,1)<REF(上,2) ;

V1:=ABS((2CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);

V2:=(1-7/100)(DMA(CLOSE,V1));

V3:=(1+7/100)(DMA(CLOSE,V1));

V5:=MA((LOW+HIGH+CLOSE)/3,5);

MA1:=MEMA(CLOSE,5);

MA2:=ATAN((MA1/REF(MA1,1)-1)100)180/31416;

MA3:=IF(MA2>0,MA2,MA2);

MA5:=MA(CLOSE,5),COLOR888899;

MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;

VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))

OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND

REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND

C>=REF(C,1) AND C>=REF(C,2);

{收盘价=4日内收盘价的最高值AND 昨收>=2日前的收盘价}

VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);

{收盘价=4日内收盘价的最高值AND 昨收=4日内收盘价的最低值}

VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR

REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND

REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND

C<REF(C,1) AND C<REF(C,2);

{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}

VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND

REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);

{昨收=4日内收盘价的最低值AND 收盘价>=2日前的收盘价}

VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND

REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND

REF(C,2)>=REF(C,4) AND C<REF(C,1);

{昨收=4日内收盘价的最高值AND 收盘价<2日前的收盘价}

VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);

{今日V5向上形成拐点}

VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) ANDCLOSE>OPEN;

VAR08:=VAR07 AND COUNT(VAR06,2);

VAR09:=100EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);

VAR10:=EMA(MA(C,13),13);

VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND

CROSS(VAR09,MA(VAR09,2)))=1,5);

VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) AND

CROSS(MA(VAR09,2),VAR09))=1,1);

VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)100,3,1)10;

VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);

VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));

VAR16:=VAR08 AND NOT(REF(VAR08,1));

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J:=3K-2D;

金叉:=CROSS(J,D);

死叉:=CROSS(D,J);

买1:=(VAR14OR VAR15) AND VAR11;

买2:=(VAR14OR VAR15) AND VAR04;

买3:=(VAR14OR VAR15) AND VAR02;

买4:=(VAR02AND VAR11) OR (VAR04 AND VAR11);

买5:=(金叉AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);

TTJ0:=VAR16;

TTJ1:=买1OR 买2OR 买3OR 买4OR 买5AND MM;

XG0:=TTJ AND TTJ0;

XG1:=TTJ AND TTJ1;

XG11:=XG0 OR XG1;

{以下波浪理论浪底重叠"买底"选股原码}

PL5:=ZIG(3,5);

EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) ANDREF(ZIG(3,5),2)<=REF(ZIG(3,5),3);

EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) ANDREF(ZIG(3,5),2)>=REF(ZIG(3,5),3);

PL10:=ZIG(3,10);

EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2)AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);

EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2)AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);

PL20:=ZIG(3,20);

EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2)AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);

EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2)AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);

PL40:=ZIG(3,40);

走强1:=BARSLAST(PL5<REF(PL5,1));

走弱1:=BARSLAST(PL5>REF(PL5,1));

走强2:=BARSLAST(PL10<REF(PL10,1));

走弱2:=BARSLAST(PL10>REF(PL10,1));

走强3:=BARSLAST(PL20<REF(PL20,1));

走弱3:=BARSLAST(PL20>REF(PL20,1));

ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);

ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);

DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);

DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);

ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);

ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);

DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);

DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);

TJ11:=EN2 AND ZTJZ5=1;

TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;

TJ33:=EN2 AND DTJZ10=1;

TJ44:=EN3 AND ZTJZ10=1;

TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;

XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;

{以下二者结合共同选股}

XG:=XG11 OR XG22;

W18:EXIST(XG,1);

欢迎分享,转载请注明来源:表白网

原文地址:https://h5.hunlipic.com/xing/2078538.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-11-20
下一篇2023-11-20

发表评论

登录后才能评论

评论列表(0条)

    保存