n:=14; mm:=6;mtr:=expmema(max(max(high-low,abs(high-ref(close,1))),abs(ref(close,1)-low)),n);hd :=high-ref(high,1);ld :=ref(low,1)-low;dmp:=expmema(if(hd>0&&hd>ld,hd,0),n);dmm:=expmema(if(ld>0&&ld>hd,ld,0),n);pdi:=dmp*100/mtr;mdi:=dmm*100/mtr;adx:=expmema(abs(mdi-pdi)/(mdi+pdi)*100,mm);adxr:=expmema(adx,mm);n1:=14; m1:=6;mtr1:= sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),n1);dmp1:= sum(if(hd>0 and hd>ld,hd,0),n1);dmm1:= sum(if(ld>0 and ld>hd,ld,0),n1);pdi1:=dmp1*100/mtr1;mdi1:=dmm1*100/mtr1;adx1:=ma(abs(mdi1-pdi1)/(mdi1+pdi1)*100,m1);adxr1:=(adx1+ref(adx1,m1))/2;cross(pdi,mdi) and cross(adx,mdi) and cross(adxr,mdi) and cross(pdi1,mdi1) and cross(adx1,mdi1) and cross(adxr1,mdi1); 20210311
今换手:=vol/capital*100;昨换手:=ref(今换手,1);xg:今换手/昨换手>=2 and 今换手>5 and v/ref(v,1)>2 and ma(c,20)>ref(ma(c,20),1) and "kdj.k"<=50 and if((c-ref(c,1))*100/ref(c,1)>=(10-0.01*100/re...
因为你的公式不全,只能改写如下: a:=winner(close+close*15/100)*100;b:=winner(close+close*0/100)*100;cc:=a-b;d:=(winner(close-close*0.1/100)-winner(close-close*15/100))*100;e:=cc(6);a2:="if(low">a1,0,if(high0 or a2...
var1:=ema(sma((close-llv(low,19))/(hhv(high,19)-llv(low,19))*100,8,1),3);w1:=c=hhv(c,20);w2:=barslast(w1);w3:=if(w2>0,ref(c,w2),ref(c,w2));w4:=cross(c,ref(w3,1));突破在即:=if(w4 and count(w4,5)=1,40,0)...