试试这个:mid:=(3*close+low+open+high)/6;主力:=(20*mid+19*ref(mid,1)+18*ref(mid,2)+17*ref(mid,3)+16*ref(mid,4)+15*ref(mid,5)+14*ref(mid,6)+13*ref(mid,7)+12*ref(mid,8)+11*ref(mid,9)+10*ref(mid,10)+9*ref(mid,11)+8*ref(mid,12)+7*ref(mid,13)+6*ref(mid,14)+5*ref(mid,15)+4*ref(mid,16)+3*ref(mid,17)+2*ref(mid,18)+ref(mid,20))/210,colorred;xg:ref(c,1)<主力 and cross(c,主力) ; 20210311
var1:= ma(close,20)>ma(close,30) and ma(close,30)>ma(close,60);var2:= ref(close,2)>ref(ma(close,10),2) and ref(close,1)>ref(ma(close,5),1);var3:= barslast((close-ref(close,1))/ref(close,1)...