a:=ma(c,30);a1:=a*1.1;a4:=a*0.9;a2:=a1-(a1-a4)*0.191;持仓:=if(high*1.01>a2 or ref(high,1)>ref(a2,1),a1,a4);生命线:=if(high*1.01>a2 or ref(high,1)>ref(a2,1),a2,a4);主升持仓:=持仓>生命线;主升1:=持仓>ref(持仓,1);主升2:=生命线>ref(生命线,1);主升:=主升1 and 主升2;主升猎股王:=(猎股大王出击 and 主升持仓 and 主升) or (猎股小王 and 主升持仓 and 主升);绝对的主升:=(主升猎股王 and 小均强) or (猎股小王 and 小均强);绝对的主升=1; 20210311
{绿线买}lc:=ref(close,1);操作线:=sma(max(close-lc,0),2,1)/sma(abs(close-lc),2,1)*100;趋势线:=sma(max(close-lc,0),14,1)/sma(abs(close-lc),14,1)*100;震仓线:=45;pp:=操作线<震仓线 and ref(操作线,1)>震仓线 ;涨停:=if(ref(c,1)...
var1:= ma(close,20)>ma(close,30) and ma(close,30)>ma(close,60);var2:= ref(close,2)>ref(ma(close,10),2) and ref(close,1)>ref(ma(close,5),1);var3:= barslast((close-ref(close,1))/ref(close,1)...
gjtj1:=100*(c-llv(l,5))/(hhv(c,5)-llv(l,5));gjtj4:=100*(c-llv(l,30))/(hhv(c,30)-llv(l,30));xg:=barslast(cross(gjtj4,gjtj1))<5 and gjtj1>gjtj4;count(xg,3)=1 and xg and c>ma(c,20);
以下是修改过的,按问题要求做的股票选股公式,用软件实际测试过能达到要求,可以使用: za1:=sma(close,2,1);za2:=ema(c,2);za3:=ema(slope(c,24)*20+c,42);bu:=cross(za2,ref(za2,1)*1.017);sel:=cross(za3,za2);zmin:bu and cross(za2,za3*1.008)and za1>...