svar0:=vol*close/100;svar1:=sum(if(svar0>50 and close>ref(close,1),svar0,0),0);svar2:=sum(if(svar0>50 and close(close,1),svar0,0),0);净流:=svar1-svar2;成交量:=vol;svar3:=成交量/capital*100;svar4:=(close-dyna**(55)*1.111)/(dyna**(55)*1.111)*100;svar5:=filter(svar3>0.05 and ... 20210311
用这个就行了:a1:=(dvol/c)/2;a2:=sum(if(a1>100 and close>ref(close,1),a1,0),0);a3:=sum(if(a1>100 and close<ref(close,1),a1,0),0);a4:=sum(if(a1<100 and close>ref(close,1),a1,0),0);a5:=sum(if...
va:=if(close>ref(close,1),vol,-vol);obv:=sum(if(close=ref(close,1),0,va),0);maobv:=ma(obv,30);ref(obv,2)>ref(obv,1) and obv>ref(obv,1) and ref(maobv,1)>ref(obv,1);{已测试,复制可直接引用,如果回答满意,请记得给采纳}
n:=20;dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;v1:=c>ref(c,1)*1.04 and c>0;tj1:=dif>0 and abs(macd)<0.01 and v>ma(v,n) and c>=ref(c,barslast(v1)) ;tj2:=filt...