这是网上下载的w底。提示:公式中使用了未来函数,会漂移,不宜用来选股,否则,公式在副图发出信号,但在选股时却找不出个股来。{w底选股}qdif:=ema(close,12)-ema(close,26); qdea:=ema(qdif,9); qmacd:=(qdif-qdea)*2; m5:=ma(c,5); m10:=ma(c,10); m20:=ma(c,20); dxw1:=if((zig(3,5)>ref(zig(3,5),1)) and (ref(zig(3,5),1)<=ref(zig(3,5),2)) and (ref(zig(3,5),2)<=ref(zig(3,5),3)),1,0); xh1:=if(count(dxw1,3)>0,1,0); rq1:=barslast(dxw1); rq2:=ref(rq1,rq1+1)+rq1+1; rq3:=if(rq2-rq1>6,1,0); zbw:=if(dxw1=1,qmacd<0 and open
n:=9; m1:=3; m2:=3;rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100;k:=sma(rsv,m1,1);d:=sma(k,m2,1);j:=3*k-2*d;xg:k>ref(k,1) and ref(k,1)<ref(k,2);{已经测试,复制可直接使用,满意请给予采纳}
均价:=amount/vol/100,coloryellow;ll:=c<ref(c,1) and c/均价<(1-0.03);ll1:=cross(sum(ll,0),0.5);bb1:=sum(ll1,0)*cross(count(c>ref(c,1),barslast(ll1)),0.5);cb1:=const(sum(if(bb1,ref(c,1),draw**),0))...