哪位高手帮忙设计一个通达信选股公式 ?20日均线横盘至少10天 盘子不大于10个亿

如题所述

第1个回答  2013-06-23
第一个选股器要分成很多个小的选股器才能写出来,选股的时候看你需要用哪个条件了,公式如下:

1.低位金叉
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
CROSS(DIFF,DEA) AND DIFF<-0.1;

2.二次金叉
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;

3.底背离
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);

4.顶背离
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);

第二个公式编写出来的选股公式如下:
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
A2:=BARSLAST(REF(CROSS(K,D),1));
B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS(D,K),1));
D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K);
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);
IF(B1>0,1,0) OR IF(B2>0,1,0) OR IF(B3>0,1,0) OR IF(D1>0,1,0) OR IF(D2>0,1,0) OR IF(D3>0,1,0);

你试一下吧。
第2个回答  2013-06-23
买蓝筹,不投机,不跟风,价值投资

哪位高手帮忙设计一个通达信选股公式 ?20日均线横盘至少10天 盘子...
横盘20线:(HHV(C,20)-LLV(C,20))\/REF(C,1)*100<=5 AND BARSCOUNT(C)>10 AND FINANCE(7)<1000000000;

哪位高手帮忙设计一个通达信选股公式 ?20日均线横盘至少10天 盘子...
1.低位金叉 DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);CROSS(DIFF,DEA) AND DIFF<-0.1;2.二次金叉 JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;3.底背离 A1:=BARSLAST(REF(CROSS(...

请高手帮忙编写一个通达信的选股指标!
MA2:=MA(CLOSE,20);MA3:=MA(CLOSE,95);MA4:=MA(CLOSE,375);COUNT(CROSS(C,MA2),5)>=1 AND COUNT(CROSS(C,MA3),8)>=1 AND COUNT(CROSS(C,MA4),10)>=1 AND C>MA2 AND C>MA3 AND C>MA4;选出的个股20日、20周、20月的均线的价格差看了几个都在10%以内 ...

求高手在“通达信”里帮忙编写个选股条件的公式。
CONDTION_B:=(DIF-DEA)*2>=0; { MACD>0 } CONDTION_C:=LONGCROSS(DIF,DEA,5) AND DIF<=30 AND DEA<=30; {MACD金叉,并且DIF<=30,DEA<=30} CONDTION_D:=MA(C,20)>=REF(MA(C,20),1); { MA20均线转头向上 } XG:CONDTION_A AND CONDTION_B AND CONDTION_C AND CONDTION_D...

哪位高手帮忙设置一个通达信选股公式?要5日10日20日60日四线粘合至少1...
max(max(ma(c,10),ma(c,20)),ma(c,60))\/min(min(ma(c,10),ma(c,20)),ma(c,60)) <n and max(max(ref(ma(c,10),10),ref(ma(c,20),10)),ref(ma(c,60),10))\/min(min(ref(ma(c,10),10),ref(ma(c,20),10)),ref(ma(c,60),10)) <n and CAPITAL<1000000*5...

求高手帮忙写一个通达信 选股公式源码
VALUE_A:=CROSS(MA(CLOSE,60),MA(CLOSE,120);VALUE_B:=CROSS(MA(VOL,5),MA(VOL,10));VALUE_C:BARSLAST(VALUE_A)<2 AND BARSLAST(VALUE_B)<2;

请高手帮忙修改个通达信选股指标?
选股如下:{必买出现时选股} VAR1:=EMA(EMA(CLOSE,13),13);控盘:=(VAR1-REF(VAR1,1))\/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF;无庄控盘:=控盘<0;STICKLINE(控盘>REF(控盘,1) AND 控盘>...

求高手帮忙编写一个通达信选股公式
a3:= (C-ma(c,200))\/ma(c,200)<0.12 { 相对于200天线正乖离小于20% };a4:= ifelse(c>ma(c,200),a2,a3);a1 and a4;大哥,俺是现学现卖的,不过俺写了公式后发现越复杂越不好用。所以俺现在用最简单的公式【MA(C,30)>REF(MA(C,30),5)*1.00 AND MA(C,180)>MA(C...

请问哪位高手能帮忙编写个通达信头肩底选股公式?
JC:=CROSS (MA(C,5),MA(C,10));YJ:JC AND C>REF(C,BARSLAST(JC)-1) AND REF(C,BARSLAST(JC)-1) < REF(C,BARSLAST(REF(JC,1))-1) ;

请高手帮忙编写个通达信选股公式,谢谢,悬赏10分!
1)\/2;CR:=SUM(MAX(0,HIGH-MID),26)\/SUM(MAX(0,MID-LOW),26)*100;MA1:=REF(MA(CR,11),11\/2.5+1);MA2:=REF(MA(CR,19),19\/2.5+1);XG:CROSS(VOL,VV)AND CROSS(K,D)AND CROSS(RSI1,RSI2)AND CROSS(MA1,MA2);条件如上,恐组合未必合适。{个人看法,仅供参考。} ...

相似回答