diff:=ema(close,6)-ema(close,10);dea:=ema(diff,5);macd:=2*(diff-dea);金叉信号1:=cross(close,ma(close,34)) and cross(ma(close,3),ma(close,8));a1:=diff<ref(diff,1) and diff<0;a2:=barslast(a1) and macd>0;买入信号:filter(a2,10);同花顺指标改写成选股公式 20210311
公式可直接用于同花顺,不用做修改。改为同花顺选股指标如下var1:=((close - llv(low,15))/(hhv(high,15) - llv(low,15)))*(100);var2:=reverse(var1);var3:=sma(var1,5,1);k:=sma(var3,3,1);d:=sma(k,3,1);xg:cross(k,d) and d
diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);a2:=barslast(ref(cross(diff,dea),1));ma20:=ma(close,20);xpp1:=cross(dea,diff)and close>ma20 and ma20>ref(ma20,1)and diff>ref(diff,a2+1);ente...
天晶剑1:=(ema(close,6) - ema(close,13));天晶剑2:=ema(天晶剑1,9);天晶剑3:=barslast(cross(天晶剑1,天晶剑2));天晶剑4:=ref(天晶剑3,天晶剑3+1);天晶剑5:=天晶剑2<ref(天晶剑2,天晶剑4);天晶剑:cross(天晶剑1,天晶剑2) and 天晶剑5;