给你一个,30日的够了,两个月太长了,源码下面网址里有图片演示.通达信突破30日均线选股公式tj1:=(c-ref(c,1))/ref(c,1)*100>=0.1;var1:=llv(low,13);var2:=hhv(high,13);var3:=sma((close-var1)/(var2-var1)*100,5,1);var4:=sma((var2-close)/(var2-var1)*100,5,1);aa:=var3;bb:=var4;var5:=sma(max(close-ref(close,1),0),5,1)/sma(abs(close-ref(close,1)),5,1)*100;cc:=ema(var5,3);dd:=ma(c,30)>=ref(ma(c,30),1);ee:= l<=ma(c,26) and h>=ma(c,30) ;mtm:=close-ref(close,15);mamtm:=ma(mtm,8);ff:=mamtm>ref(mamtm,2);xg: cc>=ref(cc,2)and c>o and tj1 and ee and dd and ff; 20210311
n:=0.02;上方:=ma(c,5)>ma(c,120) and ma(c,10)>ma(c,120) and ma(c,20)>ma(c,120) and ma(c,30)>ma(c,120) and ma(c,60)>ma(c,120);多头:=ma(c,120)>ma(c,250);前5条最大:max(ma(c,60),max(ma(c,30),max(...
公式是选m=50日后交叉向上,你可修改日期:m:=50;ma10:=ma(c,10);ma60:=ma(c,60);xd:= o>ref(h,1) and cross(o,ma60) and c>ma60 and ma10>ref(ma10,1) and c>o;上穿:longcross(c,ma60),m) and xd;