第一个:f:=100*(c-ref(c,1))/ref(c,1); 今小昨:=if(c<ref(o,1) and f<0,1,0); s1:=今小昨; 今小前:=if(c<ref(o,2) and f<0,1,0); s2:=今小前; a3:=s1=0 and ref(s1,1)=1 and s2=0 and ref(s2,1)=1 and cross(zig(3,10) ...
var1:=1;var2:=((((2*close)+high)+low) / 4);var4:=llv(low,5);var5:=hhv(high,4);c1:=ema(((var2-var4)/(var5-var4))*100,4)*var1;c2:=(ema(((0.667*ref(c1,1))+(0.333*c1)),2)*var1);条件:=cross(c1,c2) and c1<...
{买预警}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)>=re...
上面两个公式由于编写的思路不一样,所以,要两个合起来用是没有意义的,你要合起来也可以,只是不可能有股票选出。jj:=(close+high+low)/3;a:=ema(jj,10);b:=ref(a,1);ma1:=ma(close,3),coloryellow;ma2:=ma(close,19),color00ff00;波段启动:=ma1>ma2 and longcross(ma1,ma2...