diff:=ema(dclose,12)-ema(dclose,26);dea:=ema(diff,9),colorffff00;macd:=(diff-dea)*2;a1:=barslast(ref(cross(diff,dea),1));a2:=barslast(ref(cross(dea,diff),1));底背离:ref(close,a1+1)>close and diff>r...
公式中不含未来函数,选股如下: var3:=(close-llv(low,20))/(hhv(high,20)-llv(low,20))*100;var4:=sma(sma(var3,3,1),3,1);var5:=ema(var4,5);var7:=3*var4-2*var5;xg:cross(var7,var4)>0 and var7;