diff:=ema(close,3)-ema(close,8);dea:=ema(diff,5);macd:= 2*(diff-dea);x1:=ema(diff,5)*5;x2:=((ema(close,3)-ema(close,8)))*5;xg:cross(x2,x1) and x1<-0.25; 20210311
aobv:="obv.obv;amacd:="macd.macd;adif:="macd.dif;adea:="macd.dea;aa1:=h=hhv(aobv,120);aa2:=amacd>0 and adif>adea;aa3:=ma(c,5)>ma(c,10)>ma(c,20) 条件成立:aa1 and aa2 and aa3;
你这个要求,要求得有点不明确,obv 3天内创前期新高,这个“前期”是多少天你没说,这里暂定为30天吧。这里3天内我理解成:今天、昨天或前天obv开始创30天以来的新高。jg:=obv=hhv(obv,30);zg:=count(jg,2)=2;qg:=count(jg,3)=3;qzjg:=jg or zg or qg;jx:=ma(c,60)>ma(c,120);zx:=ref(ma(c...