v1:=ema(close,60)-ema(close,300);v2:=ema(v1,300);v3:=(close-llv(low,8))/(hhv(high,8)-llv(low,8))*100;v4:=sma(v3,2,1);v5:=sma(v4,2,1);v6:=close/ref(close,3)>=1.1;v7:=backset(v6,3);买入:if((v7 and count(v7,3)=1),30,0),coloryellow,linethick3;drawtext(买入,35,'买入 '),coloryellow,linethick3;将公式复制到条件选股里即可。 20210311
这是不含当天收盘价的,即t-1,t-2,t-3,112只符合条件(hhv(h,3)-llv(low,3))/ref(close,3)*100<5 and abs((close-ref(close,3))/ref(close,3))*100<1.5;这是含当天收盘价的,即t,t-1,t-2,可以盘中选股,1只符合条件(hhv(h,3)-llv(low,3))/ref(close,3...
ma5:=ma(close,5);ma15:=ma(close,15);ma30:=ma(close,30);离散量30:=100*(ma5-(ma15+ma30)/2)/ma30;var4:=if(离散量30<-5 and ref(离散量30,2)>ref(离散量30,1) and 离散量30>ref(离散量30,1),1,0);反弹:if(var4,1,0);祝:马年投资顺利...