va:=if(close>ref(close,1),vol,-vol);obv1:=sum(if(close=ref(close,1),0,va),0);obv2:=ema(obv1,3)-ma(obv1,9);obv3:=ema(if(obv2>0,obv2,0),3);mac3:=ma(c,3);short:=12;long:=26;mid:=9;dif:=ema(close,short)-ema(close,long)coloryellow ;dea:=ema(dif,mid)colorff9900 ;macd:=(dif-dea)*2;ww:=obv3>ref(obv3,1) and mac3>ref(mac3,1);拉:=xlpl.notext拉;wxg:macd>0 and ww and 拉; 20210311
看看能否满足你的要求,测试通过。{第一组}bbi:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;upr:=bbi+3*std(bbi,10);dwn:=bbi-3*std(bbi,10);震幅:=hhv(h,8)/llv(l,8);st:=(namelike('st')=0 and namelike('*...