ema10:=ema(c,10);ema60:=ema(c,60);longcross(ema10,ema60,1)=1;注释:最后用的是正好当日金叉;如果加macd的话,建议先导入macd的源码,然后条件语句可改为 longcross(ema10,ema60,1)=1 and cross(macd,0)=1;
c5:=cross(c,ma(c,5));c10:=cross(c,ma(c,10));c30:=cross(c,ma(c,30));c60:=cross(c,ma(c,60));c120:=cross(c,ma(c,120));c250:=cross(c,ma(c,250));a:=c5+c10+c30+c60+c120+c250>=5;x:a and count(a,n)>=2;n...