通达信常用指标源码分享第一篇。
1、主升浪启动①
图解1:省广集团
图解2:金健米业
图解3:御佳汇
图解4:昌红科技
图解5:东方财富
通达信源码:
X02:=0.7522406533*X01+0.3609454219*REF(X01,1)-0.03309329629*REF(X01,2)-
0.04241822779*REF(X01,3)-0.026737249*REF(X01,4)-0.007010041271*REF(X01,5)-
0.002652859952*REF(X01,6)-0.0008415042966*REF(X01,7)-0.0002891931964*REF
(X01,8)-0.0000956265934*REF(X01,9)-0.0000321286052*REF(X01,10)-
0.0000106773454*REF(X01,11)-0.0000035457562*REF(X01,12)-0.0000011670713*REF
(X01,13);
X03:=0.7522406533*X02+0.3609454219*REF(X02,1)-0.03309329629*REF(X02,2)-
0.04241822779*REF(X02,3)-0.026737249*REF(X02,4)-0.007010041271*REF(X02,5)-
0.002652859952*REF(X02,6)-0.0008415042966*REF(X02,7)-0.0002891931964*REF
(X02,8)-0.0000956265934*REF(X02,9)-0.0000321286052*REF(X02,10)-
0.0000106773454*REF(X02,11)-0.0000035457562*REF(X02,12)-0.0000011670713*REF
(X02,13);
AA:=((EMA((((EMA(X01,22)+EMA(X01,23))+EMA(X01,24))/3),2))+(EMA((((EMA
(X01,24)+EMA(X01,25))+EMA(X01,26))/3),2))+(EMA((((EMA(X01,26)+EMA(X01,27))
+EMA(X01,28))/3),2))+(EMA((((EMA(X01,28)+EMA(X01,29))+EMA(X01,30))/3),2))+
(EMA((((EMA(X01,30)+EMA(X01,31))+EMA(X01,32))/3),2))+(EMA((((EMA(X01,32)+EMA
(X01,33))+EMA(X01,34))/3),2)))/6;
BB1:=(X01*5+X02*3+X03*1)/9;
主升线:=EMA(AA,10)-EMA(YYU,22);
DIF:=EMA(BB1+SLOPE(BB1,10),10)-EMA(YYU+SLOPE(YYU,22),22);
DEA:=EMA(DIF+SLOPE(DIF,6),6);
XMACD1:=2*(DIF-DEA);
ASR:=(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0));
TU:=CROSS(ASR,5) OR CROSS(ASR,8);
TT:=ASRO AND C>REF(C,1) AND CROSS(0.95,ASR);
XG1:=(TU OR TT);
JD:=EMA((ATAN((WINNER(C*0.9)/REF(WINNER(C*0.9),1)-1)*100)*180/3.14115926),2)>45;
TI:=CROSS(WINNER(C*0.9),0.37) AND XMACD1>REF(XMACD1,1) AND XMACD1>0;
XG:FILTER(JD AND TI AND DIF>主升线,3);
注解说明:因为以上几支股票最近印象比较深刻,就拿来举例了,而且因为之前比较强势,所以看的比较清晰直观一些,并不是因为这个指标很厉害,只是票选的是比较强势直观的票。
因为不存在有100%完全无敌的指标,如果有也只有少数人知道,如果知道的人多了,那也就离失效不远了,所以上述指标,最好搭配其他,均线指标、背离指标等一起观察,搭配使用,以形成多指标共振时最佳。
2、主升浪启动②
图解1:省广集团
图解2:金健米业
图解3:御佳汇
图解4:昌红科技
图解5:东方财富
通达信源码:
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
小心: 3.2,COLORYELLOW;
风险: 3.5,COLORLIBLUE;
动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
STICKLINE(动力线>REF(动力线,1) ,动力线 ,REF(动力线,1),0,0),COLORLIRED;
STICKLINE(动力线<=REF(动力线,1) ,动力线 ,REF(动力线,1),0,0),COLORLIGREEN;
底部:0.2,COLORC6C600;
关注:0.5,COLORFF75FF;
DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,3);
DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,3);
强弱分界:1.75,COLORRED,DOTLINE;
趋势:MA(动力线,3);
IF(趋势>REF(趋势,1),趋势,DRAWNULL),LINETHICK1,COLORRED;