原码如下,请收好 m5:=(c,5);m10:=(c,10);m20:=(c,20);m30:=(c,30);m60:=(c,60);m120:=(c,120);barslastcount(c>m5 and c>m10 and c>m20 and c>m30 and c>m60 and c>m120)>2; 20210311
dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;a1:=close/ref(close,1);a2:=a1>1 and a1;b1:=vol/ref(vol,1);b2:=b1>1 and b1;c1:=100*ma(vol,5)/capital;every(c>o,3)and macd(dif...