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),linethick0; s2:=今小前; a1:=s1=0 and ref(s1,1)=1 and s2=0 and ref(s2,1)=1 and cross(zig(3,3) ,ref(zig(3 ,3),1));a2:=s1=0 and ref(s1,1)=1 and s2=0 and ref(s2,1)=1 and cross(zig(3,5) ,ref(zig(3 ,5),1));a3:=s1=0 and ref(s1,1)=1 and s2=0 and ref(s2,1)=1 and cross(zig(3,10) ,ref(zig(3 ,10),1));a3=1; 注意 该指标有未来函数 从a1到a3 都有zig (之子反转) 请小心谨慎的应用 20210311
var1:=hhv(h,66);var2:=ref(c,1);var3:=ref(o,1);var4:=(var1-h)/h;var5:=(h>=var1);v**:=(var5>0 and var5<=0.025);var7:="macd.macd";最牛金牛:(c-var2)/var2>0.095 and var2>var3 and (var5...
n1:=18;n2:=50;n3:=32;cpx:=(ma(c,8)*n1/100+ma(c,30)*n2/100+ma(c,60)*n3/100);notextws:=cpx>ref(cpx,1) and ma(c,30)>ref(ma(c,30),1) and c>cpx and c>ma(c,30);notextwx:=cpx<=ref(cpx,1) and m...
根据题意,选股公式如下:dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;xg1:macd>0 and ref(macd,1)<0 and ref(macd,2)<0 and ref(macd,3)<0 and ref(macd,4)>0;