通达信自用多年自用多年指标公式源码

2016-03-01 21:07:00来源:本站整理浏览:902

选股 预警  等有20多个 喜欢拿去试一试
复制内容到剪贴板
代码:

一.选股指标.
次日涨停
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;
紫柱:MACD<0 AND MACD>REF(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.1;
二次金叉选股
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
 DEA:=EMA(DIFF,9);
 MACD:=(DIFF-DEA)*2;
 JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=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(CLOSE*1.2,VAR2*13,VAR2/13),13);
 VAR4:=LLV(LOW,34);
 VAR5:=HHV(VAR3,34);
 VAR6:=IF(LLV(LOW,55),1,0);
 VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
 XL1:=MA(LOW,2)*0.96;
 XL2:=MA(LOW,26)*0.85;
 XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);
启动:=IF(XL3,0,VAR7*3),COLORRED;
 XG:启动>25;
(2)
BACKSET( (REF(CLOSE,1)<REF(OPEN,1) AND
 CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002),2);
 A2:=FILTER(A1<=V3,10);
 ND CAPITAL<300000000
 REF(V,1) = LLV(V,4) AND V >=REF(V,1)
 HHV(V,3)=REF(V,1) AND HHV(V,5)=REF(V,1) AND HHV(V,21)=REF(V,1)
 AND V >=REF(V,1)
 01>0 AND T02>0;
 1.三线粘合
M:=1;
 M5:=MA(CLOSE,5);
 M10:=MA(CLOSE,10);
 M20:=MA(CLOSE,20);
 K1:=MAX(MAX(M5,M10),MAX(M10,M20));
 K2:=MIN(MIN(M5,M10),MIN(M10,M20));
 A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))<1+0.03*M;
 A1:=(K1/K2-1)<0.005;
 A2:=(K1/K2-1)<0.005;
 A3:=V>REF(V,1)*1.5 AND V>MA(V,5);
 XG:A AND A1 AND A2 AND A3 AND C>O AND V> REF(V,1) AND CAPITAL<=300000000;
 2.三条线粘合
N1:=5;N2:=10;N3:=20;M:=1;
 MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);
 A3:=V>REF(V,1)*1.5 AND V>MA(V,5);
 MAX(MA1,MAX(MA2,MA3))/MIN(MA1,MIN(MA2,MA3))<1+0.01*M
 AND C>O AND V> REF(V,1) AND FINANCE(7)<=300000000
 AND A3 AND CAPITAL<=300000000;
 3.均线粘合
M:=1;
 M5:=MA(CLOSE,5);
 M10:=MA(CLOSE,10);
 M20:=MA(CLOSE,20);
 K1:=MAX(MAX(M5,M10),MAX(M10,M20));
 K2:=MIN(MIN(M5,M10),MIN(M10,M20));
 A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))<1+0.01*M;
 A1:=(K1/K2-1)<0.005;
 A2:=(K1/K2-1)<0.005;
 A3:=V>REF(V,1)*1.5 AND V>MA(V,5);
 XG:A AND A1 AND A2 AND A3 ;
 3. 金叉选股指标
 快线:=EMA(EMA(EMA(EMA(CLOSE,2),2),2),2);
慢线:=EMA(REF(快线,1),2);
 A3:=V>REF(V,1)*1.5 AND V>MA(V,5);
 XG:CROSS(快线,慢线) AND C>O AND
 V>=MA(V,21) AND V> REF(V,1) AND CAPITAL<=300000000 ;
 4.角度
MA5:=MA(C,5);
 MA10:=MA(C,10);
 MA20:=MA(C,20);
 V0:CROSS(MA5,MA10) AND CROSS(MA10,MA20) AND
 CROSS(MA5,MA20) ;
 IF(角度MA3>45 AND 角度MA5>40 AND 角度MA10>10
 AND 角度MA20>20 AND MA(C,135)>REF(MA(C,135),1),
 1,0),COLOR00FF00
 1.聚宝盆
DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
 DEA:=EMA(DIFF,M);
 MACD2:=2*(DIFF-DEA);
 HHV(MACD2,4)<0 AND MACD2>REF(MACD2,1) AND REF(MACD2,1)<REF(MACD2,2) AND REF(MACD2,2)<REF
 (MACD2,3);
 2.强势股
{SJXXG四均线选股}
MA3:=MA(C,3);
 MA5:=MA(C,5);
 MA10:=MA(C,10);
 MA20:=MA(C,20);
 V0:=MA(C,3)>REF(MA(C,3),1) AND MA(C,5)>REF(MA(C,5),1) AND C>MA(C,3)
 AND MA(C,3)>MA(C,5) ; {均线C,MA3,MA5多头排列并向上;}
角度MA3:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;
角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
角度MA10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
角度MA20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416;
选股MA20:IF(角度MA3>45 AND 角度MA5>45 AND 角度MA10>60 AND 角度MA20>45 AND MA(C,250)>REF(MA(C,250),1),
 1,0),COLOR00FF00;
 {设计思路:
1.3日均线角度大于45度;
2:5日均线角度大于45度;
3:10日均线角度大于60度;
4.20日均线角度大于45度;
5.MA250向上;};
3。紫色冲关
(1).
 CROSS( CLOSE,MA(C,30))
 AND CLOSE>MA(C,22) AND CLOSE>MA(C,30)AND
 COUNT(MA(CLOSE,13)>REF(MA(CLOSE,13),1),1)
 AND COUNT(MA(CLOSE,8)>REF(MA(CLOSE,8),1),1)
 AND COUNT(MA(CLOSE,20)>REF(MA(CLOSE,20),1),1)

[1] [2] [3] [4] [5] [6]  下一页

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式