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;
ab:=ema(((2*c+h+l)/4-llv(low,30))/(hhv(high,30)-llv(low,30))*100,8);ba:=ema(ab,5);a1{高}:=refdate(ref(hhv(h,96),5),date);b1{低}:=refdate(ref(llv(l,96),5),date);dy{中}:=((a1)+(b1))/2;中轨:=if(ab>0 and ab...