a1:=3*ema((c-llv(l,30))/(hhv(h,30)-llv(l,30))*100,5)-2*ema((c-llv(l,30))/(hhv(h,30)-llv(l,30))*100,5);a3:=llv(l,30);a4:=ema(a1,5);a5:=(hhv(h,34)-c)/(hhv(h,34)-llv(l,34))*100;diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);基础:=(diff<-0.1 and diff>dea);**买入:=cross... 20210311
dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;a1:= macd>=0 and ref(macd,1)>=0 and ref(macd,2)>=0 and ref(macd,3)>=0 and macd>ref(macd,1)and ref(macd,1)(macd,2) and ...
超长趋势线:=3*sma((close-llv(low,120))/(hhv(high,120)-llv(low,120))*100,5,1)-2*sma(sma((close-llv(low,120))/(hhv(high,120)-llv(low,120))*100,5,1),3,1);选股:超长趋势线>90 or cross(超长趋势线,90);根据你的本意,上面的公式是选出的是接近于顶部的...
var1:=(2*close+high+low+open)/5;var2:=ema(ema(ema(var1,4),4),4);sj: =(var2-ref(var2,1))/ref(var2,1)*100;sd: =ma(sj,2);sk: =ma(sj,1);var4:=cross(sk,0);var5:=cross(sk,sd) and sk>0;买二: var4 or var5;