公式如下:选择的范围太大,我给你加了点限制,让你有更多的选择空间。ma30:=ma(c,30);diff:=ema(close,12)-ema(close,26); dea:=ema(diff,9); macd:=2*(diff-dea); fh1:=ref(macd,1)<ref(macd,2) and ref(macd,2)<ref(macd,3) and ref(macd,3)<ref(macd,4); fh2:=macd>=0 and count(macd>ref(macd,1),1)=1; fh3:=fh1 and fh2 and ema(c,13)>ref(ema(c,13),1); fh4:=fh1 and fh2 and abs((diff-dea)/c)<0.018; fh5:=fh1 and fh2 and macd<0.10; jy:=fh3 or fh4 or fh5;xg:ma(close,30)>=ref(ma(close,30),1) and jy; 20210311
m5:=ma(c,5);m10:=ma(c,10);m20:=ma(c,20);m60:=ma(c,60);yc5:=ppart(5)*100;yc100:=ppart(100)*100;c85:=cost(85);c15:=cost(15);b1:=c85-c15;b2:=(c85+c15)/2;b3:=b1/b2*100<15 and yc5>90 and yc100<15;...
tr:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),7);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sum(if(hd>0 and hd>ld,hd,0),7);dmm:=sum(if(ld>0 and ld>hd,ld,0),7);d...