风浪波段(通达信公式 副图 选股 源码 测试图)没未来函数 上次分享过【风浪波段】 现将编写的选股公式发上来与大家分享 下边是【风浪波段】的选股公式,源码奉上,无未来,不加密,适用于通达信软件 先发一个效果图供大家欣赏,因为给大家的是源码,所以有兴趣的朋友可以加入自己的想法来规避掉那些出票后不能走妖的个股 重要提示:选出个股后一定要注意结合其他的指标或战法 看明白个股所处的位置是否有买点出现,切不可买在卖出的点位上哦,否则买入就会被套,那样就不划算了 S6:=CAPITAL/8000000<1; S5:=IF(NAMELIKE('N'),0,1); {通达信去掉*、S、ST} S2:=IF(NAMELIKE('*'),0,1); S3:=IF(NAMELIKE('S'),0,1); {通达信去掉停牌} S4:=DYNAINFO(17)>0; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; 红箭头:=CROSS(MACD,0) AND S2 AND S3 AND S4 AND S5 AND S6; {选出的MACD都在0轴上刚金叉,修改时加入跳空向上或别的条件!!!}; 穿:=CROSS(MA(C,5),MA(C,12)) AND MA(C,12)>MA(C,30); 箭头:=红箭头 AND 穿;{如600735新华锦在19.10.10}; DIFFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEAAA:=EMA(DIFFF,9); MACD2:=2*(DIFFF-DEAAA); MID:=(7*CLOSE+LOW+OPEN+HIGH)/10; MA0:=MA(MID,40); MA6:=MA(MID,6); A6:=MA6-MA0; MA7:=MA(MID,7); A7:=MA7-MA0; MA8:=MA(MID,8); A8:=MA8-MA0; MA9:=MA(MID,9); A9:=MA9-MA0; MA10:=MA(MID,10); A10:=MA10-MA0; MA11:=MA(MID,11); A11:=MA11-MA0; MA12:=MA(MID,12); A12:=MA12-MA0; MA13:=MA(MID,13); A13:=MA13-MA0; MA14:=MA(MID,14); A14:=MA14-MA0; MA15:=MA(MID,15); A15:=MA15-MA0; MA16:=MA(MID,16); A16:=MA16-MA0; MA17:=MA(MID,17); A17:=MA17-MA0; MA18:=MA(MID,18); A18:=MA18-MA0; MA19:=MA(MID,19); A19:=MA19-MA0; MA20:=MA(MID,20); A20:=MA20-MA0; LC:=(A6+A7+A8+A9+A10+A11+A12+A13+A14+A15+A16+A17+A18+A19+A20)/15,LINETHICK0; VAR1:=LC; VAR2:=REF(LC,1); EMA5:=MA(VAR1,5); EMA10:=MA(VAR1,10); DIFF:=EMA(CLOSE,21)-EMA(CLOSE,34); DEAA:=EMA(DIFF,8); MACDD:=8*(DIFF-DEAA); MARDD:=SMA(MACDD,2,1); 突破:=C=HHV(C,20) AND V>REF(V,1); T:=BARSLAST(突破)<20; XG:=MACD2>0 AND MACDD>MARDD AND VAR1>VAR2 AND VAR1>0 AND VAR2>0 AND EMA10>=REF(EMA10,1) AND EMA5>=REF(EMA5,1) AND (REF((MACD2<0 AND MACD2>REF(MACD2,1)),1) OR REF(MACD2>0,1)) AND 突破; TT:=BARSLAST(XG); 选:TT AND CROSS(MA(C,5),MA(C,10)) AND MACD2>0 AND 箭头AND CROSS(MA(C,5),MA(C,10)); 猛龙过江之突飞猛爆: 猛龙过江之突飞猛爆,捕捉市场具有资金强拉个股的短线手法。 {猛龙过江之突飞猛爆} X1:=BARSLAST(FILTER(((REF(C,3)-C)/REF(C,3)*100>3.2),10)); X2:=MAX(MAX(REF(H,X1+2),REF(H,X1+1)),REF(H,X1)); X3:=((C-REF(C,1))/REF(C,1)*100>5)AND ((C-REF(C,90))/REF(C,90)*100<80)AND((O-X2)/X2*100<30)AND(X1<150); X4:= (V/MA(V,5)<3.5)AND (X1<150) AND ((C-LLV(L,X1))/LLV(L,X1)*100<50) AND ((C-REF(O,5))/REF(O,5)*100<30) ; X5:=((((((C-MA(C,60))/MA(C,60))<0.1)=1) AND ((((C-MA(C,10))/MA(C,10))<0.3)=1))*0.2); X6:= ((((((X5=0) AND (REF(X5,1)=0.2)) AND (REF((COUNT((X5=0.2),10)=10),1)=1))*-0.1))=-0.1) OR FILTER((X3 AND X4),15); X8:=(V/REF(V,1)>1.2 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND V/REF(V,1)>1.2); X9:=X6 AND CROSS(KDJ.K,KDJ.D) AND (C/O>1.03) AND X8 AND C/(REF(C,1))>1.08 AND MA(C,60)>MA(C,120) AND C>MA(C,20) ; STICKLINE(X9,0,1,2,0),COLORRED; 趋势副图(顶尖财经 股票学院: http://58188.com): A:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); ZDZK1:=EMA(A,6); ZDZK2:=REF(ZDZK1,1); 超短线: ((A-LLV(A,21))/(HHV(A,21)-LLV(A,21))*(4))*(25),COLORWHITE,LINETHICK1; 趋势线:IF(ZDZK1>=ZDZK2,ZDZK1+10,ZDZK2),COLORRED; 调和线:IF(ZDZK2-ZDZK1,ZDZK2,ZDZK1),COLORGREEN; 月量价:=SUM((CLOSE-OPEN)/(HIGH-LOW)*VOL,20)/10000; 周均量:=EMA(月量价,5); 趋势买点:(趋势线>调和线 AND REF(趋势线,1)=REF(调和线,1) AND (趋势线<(MA(REF(HHV(趋势线,30),1),2)+MA(REF(LLV(趋势线,30),1),2))/2) AND 月量价>周均量 AND (ZIG(3,12)>MA(ZIG(3,12),2)))*20,STICK,COLORRED; DRAWICON(趋势买点>0,趋势买点,1); STICKLINE(REF(趋势线,1)<趋势线,趋势线,REF(趋势线,1),8,1),COLORF00FF0; STICKLINE((趋势线>调和线 AND REF(趋势线,1)=REF(调和线,1)),趋势线,REF(趋势线,1),2,1),COLORRED; STICKLINE(趋势线<REF(趋势线,1) OR (AMOUNT/REF(AMOUNT,1)<0.97),趋势线,REF(趋势线,1),8,0),COLORWHITE; STICKLINE(REF(调和线,1)>调和线,调和线,REF(调和线,1),8,1),COLOR00FF00; 离场:(趋势线=调和线 AND REF(趋势线,1)>REF(调和线,1) AND 调和线>50 AND (MA(ZIG(3,12),2)> ZIG(3,12))),STICK; 出5:STICKLINE(离场,100,80,2,0),STICK,COLORGREEN,LINETHICK2; 顶:90,COLOR9DFFFF; 强弱:50,COLORGRAY; 底:10,COLORGRAY; |