n1:=3;n2:=5;n3:=9;n4:=13;n5:=21;n6:=34;diff:=ema(close,n3)-ema(close,n4);dea:=ema(diff,n2);a1:=diff>dea;rsv1:=(close-llv(low,n3))/(hhv(high,n3)-llv(low,n3))*100;k:=sma(rsv1,n1,1);d:=sma(k,n1,1);a2:=k>d;lc:=ref(close,1);rsi1:=(sma(max(close-lc,0),n2,1))/(sma(abs(close-lc),n2,1))*100;rsi2:=(sma(max(close-lc,0),n4,1))/(sma(abs(close-lc),n4,1))*100;a3:=rsi1>rsi2;rsv:=-(hhv(high,n4)-close)/(hhv(high,n4)-llv(low,n4))*100;lwr1:=sma(rsv,n1,1);lwr2:=sma(lwr1,n1,1);a4:=lwr1>lwr2;bbi:=(ma(close,n1)+ma(close,n2)+ma(close,n3)+ma(close,n4))/4;a5:=close>bbi;mtm:=close-ref(close,1);mms:=100*ema(ema(mtm,n2),n1)/ema(ema(abs(mtm),n2),n1);mmm:=100*ema(ema(mtm,n4),n3)/ema(ema(abs(mtm),n4),n3);a6:=mms>mmm;bias:=(c-ma(c,n2))/ma(c,n2);dif:=(bias-ref(bias,16));dbcd:=sma(dif,76,1);mm:=ma(dbcd,5);a7:=dbcd>mm;持股:=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);支撑:=llv(持股,3);下跌:=ma(持股,12);转向:=cross(持股,下跌){ and 下跌<30};ma1:=ma(持股,5);向下:=cross(ma1,持股) and ma1>80;a8:=持股>下跌;mt:=c-ref(c,1);zlgj:=100*ema(ema(mt,n3),n3)/ema(ema(abs(mt),n3),n3);mazl:=ma(zlgj,5);a9:=zlgj>mazl;pjj:=dma((high+low+close*2)/4,0.9);jj:=ref(ema(pjj,3),1);qjj:=vol/((high-low)*2-abs(close-open));xvl:=if(close>open,qjj*(high-low),if(close<open,qjj*(high-open+close-low),vol/2))+if(close>open,0-qjj*(high-close+open-low),if(close<open,0-qjj*(high-low),0-vol/2));hsl:=(xvl/20)/1.15;攻击流量:=((hsl*0.55+(ref(hsl,1)*0.33))+(ref(hsl,2)*0.22));gjj:=ema(攻击流量,8);lljx:=ema(攻击流量,3);资金流量:=lljx;a10:=资金流量>0;指导线:=(a1+a2+a3+a4+a5+a6+a7+a8+a9+a10);选股:指导线>9;时间周期自已在选股时设定就可以了,不用写在代码里,如果你要在60分钟周期,确保你的5分钟数据完整。希望能帮到你~! 20210311