t:=sum(cross("macd.macd",0),barslast("macd.dea"<0)); zrxf:ref("macd.dea">"macd.diff" and "macd.diff" >0,1) and "macd.macd">0 and t=1;-----------------------------------------------------------先将上面的选股公式做成副图看信号确认一下,确认了就可以放到条件选股公式里了 20210311
diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);macd:=2*(diff-dea);sx:=barslast(cross(dea,diff))+1;jx:=barslast(cross(diff,dea))+1;t1:=if(jx=1 and diff>ref(diff,ref(jx,1)+1),1,0);t2:=if(jx=1 and...
a:=cross(macd.dif,macd.dea);a and macd.dif>=macd.dea+0.01 and range(macd.dif,-0.3,0.3) 周dif:="macd.dif#week"(12,26,9);周dea:="macd.dea#week"(12,26,9);周dea>0 and cross(周dif,周dea);
dif:ema(close,12)-ema(close,26);dea:ema(dif,9);macd:(dif-dea)*2,colorstick;drawicon(dif>0 and cross(dif,dea),0,1);零轴上金叉次数:if(dif>0,sum(cross(dif,dea),if(dif>0,barslast(cross(dif,0))+1,0)),0),...