{买预警}varc:=(zig(3,5)>ref(zig(3,5),1)) and (ref(zig(3,5),1)<=ref(zig(3,5),2)) and (ref(zig(3,5),2)<=ref(zig(3,5),3));买:varc;{卖预警}vard:=(zig(3,5)<ref(zig(3,5),1)) and (ref(zig(3,5),1)>=ref(zig(3,5),2)) and (ref(zig(3,5),2)>=ref(zig(3,5),3));卖:vard;注意:有未来函数!!! 20210311
a1:=barslast(ref(cross("macd.diff","macd.dea"),1));b1:=ref(c,a1+1)>c and ref("macd.diff",a1+1)("macd.diff","macd.dea");macd底背:if(b1>0,10,0);起个名字,保存成条件选股公式就可以了。(如果对您有帮助请采纳答案谢谢)
b1:=ref(c,1);b2:=ref(c,2); ss:=if(c>ref(c,1) and ref(c,1)>=ref(c,2),1,if(c<ref(c,1) and ref(c,1)<=ref(c,2),-1,if(c>ref(c,2) and ref(c,2)>ref(c,1),2,if(c<ref(c,2) and ref(c,2)<r...